Bump to man-db 2.9.4 44/268844/2 sandbox/dh0128.kwak/man-db-2.9.4-20220103 submit/tizen/20220104.061248
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 4 Jan 2022 06:03:10 +0000 (15:03 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 4 Jan 2022 06:03:10 +0000 (15:03 +0900)
Change-Id: I44fcf96f30548939c2f35ea452168fe2f5529bc8

.gitignore [deleted file]
packaging/gnulib.tar.gz [new file with mode: 0644]
packaging/man-db.manifest [new file with mode: 0644]
packaging/man-db.spec [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 2b6f642..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-**/*.a
-**/*.la
-**/*.lo
-**/*.o
-**/*.so
-**/*~
-**/.libs
-**/Makefile
-**/Makefile.in
-/ABOUT-NLS
-/aclocal.m4
-/autom4te.cache
-/build-aux
-/config.h
-/config.h.in
-/config.log
-/config.status
-/config.status.lineno
-/configure
-/gl
-/gnulib
-/libtool
-/stamp-h*
-docs/INSTALL.autoconf
-include/*.h
-init/systemd/man-db.conf
-init/systemd/man-db.service
-lib/.deps
-lib/getopt.h
-libdb/.deps
-man/replace.sin
-man/replace.sed
-man/man1/*.1
-man/man5/*.5
-man/man8/*.8
-man/*/replace.sed
-man/*/man1/*.1
-man/*/man5/*.5
-man/*/man8/*.8
-man/**/*.log
-man/**/*.trs
-man/da/man1
-man/da/man5
-man/da/man8
-man/de/man1
-man/de/man5
-man/de/man8
-man/es/man1
-man/es/man5
-man/es/man8
-man/fr/man1
-man/fr/man5
-man/fr/man8
-man/id/man1
-man/id/man5
-man/id/man8
-man/ja/man1
-man/ja/man5
-man/ja/man8
-man/nl/man1
-man/nl/man5
-man/nl/man8
-man/pl/man1
-man/pl/man5
-man/pl/man8
-man/pt/man1
-man/pt/man5
-man/pt/man8
-man/pt_BR/man1
-man/pt_BR/man5
-man/pt_BR/man8
-man/ro/man1
-man/ro/man5
-man/ro/man8
-man/ru/man1
-man/ru/man5
-man/ru/man8
-man/sr/man1
-man/sr/man5
-man/sr/man8
-man/sv/man1
-man/sv/man5
-man/sv/man8
-man/tr/man1
-man/tr/man5
-man/tr/man8
-man/zh_CN/man1
-man/zh_CN/man5
-man/zh_CN/man8
-manual/man_db.cat
-manual/man_db.dvi
-manual/man_db.html
-manual/man_db.pp
-manual/man_db.ps
-manual/man_db.tps
-manual/version
-po/ChangeLog
-po/Makefile.in.in
-po/Makevars
-po/Makevars.template
-po/POTFILES
-po/Rules-quot
-po/boldquot.sed
-po/en@boldquot.header
-po/en@quot.header
-po/insert-header.sin
-po/messages.mo
-po/quot.sed
-po/remove-potcdate.sed
-po/remove-potcdate.sin
-po/stamp-po
-po/*.gmo
-src/.deps
-src/accessdb
-src/apropos
-src/catman
-src/globbing
-src/lexgrog
-src/lexgrog.c
-src/man
-src/man-recode
-src/man_db.conf
-src/manconv
-src/mandb
-src/manpath
-src/whatis
-src/wrapper
-src/zsoelim
-src/zsoelim.c
-src/tests/.deps
-src/tests/*.log
-src/tests/*.trs
-src/tests/fspause
-src/tests/tmp-*
diff --git a/packaging/gnulib.tar.gz b/packaging/gnulib.tar.gz
new file mode 100644 (file)
index 0000000..6ec80df
Binary files /dev/null and b/packaging/gnulib.tar.gz differ
diff --git a/packaging/man-db.manifest b/packaging/man-db.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/man-db.spec b/packaging/man-db.spec
new file mode 100644 (file)
index 0000000..7d552a2
--- /dev/null
@@ -0,0 +1,93 @@
+Name:           man-db
+Version:        2.9.4
+Release:        1
+License:        GPL-2.0+
+Summary:        A set of documentation tools: man, apropos and whatis
+Url:            http://man-db.nongnu.org/
+Group:          System/Base
+Source:         %{name}-%{version}.tar.gz
+Source2:        gnulib.tar.gz
+Source1001:    man-db.manifest
+
+BuildRequires:  flex
+BuildRequires:  db4-devel
+BuildRequires:  gettext
+BuildRequires:  groff
+BuildRequires:  pkgconfig(libpipeline)
+
+Requires:       bzip2
+Requires:       coreutils
+Requires:       groff >= 1.18
+Requires:       gzip
+Requires:       less
+Requires:       lzma
+Provides:       man
+
+%description
+The man package includes three tools for finding information and/or
+documentation about your Linux system: man, apropos, and whatis. The
+man system formats and displays on-line manual pages about commands or
+functions on your system. Apropos searches the whatis database
+(containing short descriptions of system commands) for a string.
+Whatis searches its own database for a complete word.
+
+The man package should be installed on your system because it is the
+primary way to find documentation on a Linux system.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS+=" -fPIC"
+export LDFLAGS+=" -pie"
+
+tar -xf %{SOURCE2}
+./bootstrap --no-git --gnulib-srcdir=gnulib
+chmod +x ./configure
+%configure --libdir=%{_libdir} \
+       --libexecdir=%{_libdir} \
+       --sysconfdir=%{_sysconfdir} \
+       --with-db=db4 \
+       --disable-setuid \
+       --enable-mandirs=GNU \
+       --enable-mb-groff \
+       --with-sections="1 n l 8 3 0 2 5 4 9 6 7"
+
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+# remove service files
+rm -f %{buildroot}/lib/systemd/system/man-db.*
+
+# remove manual files
+rm -f %{buildroot}/%{_datadir}/doc/%{name}/%{name}-manual.*
+
+%find_lang %{name} --with-man --all-name
+%lang_package
+
+%docs_package
+
+%files
+%manifest %{name}.manifest
+%license docs/COPYING
+%config(noreplace) %{_sysconfdir}/man_db.conf
+%{_bindir}/apropos
+%{_bindir}/catman
+%{_bindir}/lexgrog
+%{_bindir}/man
+%{_bindir}/mandb
+%{_bindir}/manpath
+%{_bindir}/man-recode
+%{_bindir}/whatis
+%{_sbindir}/accessdb
+%{_libdir}/man-db/libman-*.so
+%{_libdir}/man-db/libman.so
+%{_libdir}/man-db/libmandb-*.so
+%{_libdir}/man-db/libmandb.so
+%{_libdir}/man-db/globbing
+%{_libdir}/man-db/manconv
+%{_libdir}/man-db/zsoelim
+%{_libdir}/tmpfiles.d/man-db.conf