From a27cd65b68c649f2063c6a9e068d451f3978b1d9 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 06:54:46 +0100 Subject: [PATCH] automatic version update by autodist [release 2.6.7.1-1mamba;Tue Apr 15 2014] --- README.md | 2 + man-db.spec | 161 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100644 man-db.spec diff --git a/README.md b/README.md index 6ce939a..868c1e6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # man-db +The man package includes three tools for finding information and/or documentation about your Linux system. + diff --git a/man-db.spec b/man-db.spec new file mode 100644 index 0000000..9d042fc --- /dev/null +++ b/man-db.spec @@ -0,0 +1,161 @@ +%define usecache 0 +%define cache /var/cache/man +%define man_gid 21 + +Name: man-db +Version: 2.6.7.1 +Release: 1mamba +Summary: A set of documentation tools: man, apropos and whatis +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: http://www.nongnu.org/man-db/ +Source: http://download.savannah.gnu.org/releases/man-db/man-db-%{version}.tar.xz +License: GPL +Obsoletes: man +Provides: man +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgdbm-devel +BuildRequires: libpipeline-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Requires: groff +Requires: less +Requires: gzip +Requires: bzip2 +Requires: xz +Requires: ncompress +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The man package includes three tools for finding information and/or documentation about your Linux system. + +%prep +%setup -q + +%build +%configure \ + --with-device=latin1 \ + --enable-mb-groff \ + --with-bzip2=bzip2 \ + --with-compress=compress \ + --with-gzip=gzip \ + --with-lzma=xz \ + --with-sections='1 1p 2 3 3p 4 4x 5 6 7 8 9 m n 0p' +# --with-browser= + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -d %{buildroot}%{cache}/{local,X11R6} +for i in 1 2 3 4 5 6 7 8 9 n; do + install -d %{buildroot}%{cache}/cat$i + install -d %{buildroot}%{cache}/local/cat$i + install -d %{buildroot}%{cache}/X11R6/cat$i +done + +%find_lang %{name} +%find_lang man-db-gnulib +cat man-db-gnulib.lang >> %{name}.lang + +rm -f %{buildroot}%{_docdir}/man-db/man-db-manual.* +rm -f %{buildroot}%{_bindir}/zsoelim +rm -f %{buildroot}%{_mandir}/man1/zsoelim.* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%pre +/usr/sbin/groupadd -g %{man_gid} man 2>/dev/null || : + +%preun +if [ $1 -eq 0 ]; then + rm -f %{cache}/cat[123456789n]/* 2>/dev/null + rm -f %{cache}/local/cat[123456789n]/* 2>/dev/null + rm -f %{cache}/X11R6/cat[123456789n]/* 2>/dev/null + rm -f %{cache}/whatis 2>/dev/null + /usr/sbin/groupdel man 2>/dev/null +fi +exit 0 + +%files -f %{name}.lang +%defattr(-,root,root) +%{_sysconfdir}/man_db.conf +%if %{usecache} +%attr(2755,root,man) %{_bindir}/man +%else +%attr(0755,root,root) %{_bindir}/man +%endif +%{_bindir}/apropos +%{_bindir}/catman +%{_bindir}/lexgrog +%{_bindir}/mandb +%{_bindir}/manpath +%{_bindir}/whatis +%{_sbindir}/accessdb +%{_libdir}/man-db/libman* +%dir %{_libexecdir}/man-db +%{_libexecdir}/man-db/globbing +%{_libexecdir}/man-db/manconv +%{_mandir}/man1/apropos.* +%{_mandir}/man1/lexgrog.* +%{_mandir}/man1/man.* +%{_mandir}/man1/manconv.* +%{_mandir}/man1/manpath.* +%{_mandir}/man1/whatis.* +%{_mandir}/man5/manpath.* +%{_mandir}/man8/accessdb.* +%{_mandir}/man8/catman.* +%{_mandir}/man8/mandb.* +%lang(es) %{_mandir}/es/man?/* +%lang(it) %{_mandir}/it/man?/* +%ifarch %{ix86} +# FIXME: not present in x86_64 and arm +%lang(da) %{_mandir}/da/man?/* +%lang(de) %{_mandir}/de/man?/* +%lang(fr) %{_mandir}/fr/man?/* +%lang(id) %{_mandir}/id/man?/* +%lang(ja) %{_mandir}/ja/man?/* +%lang(nl) %{_mandir}/nl/man?/* +%lang(pl) %{_mandir}/pl/man?/* +%lang(ru) %{_mandir}/ru/man?/* +%lang(zh_CN) %{_mandir}/zh_CN/man?/* +%endif +#%doc ChangeLog NEWS README + +%changelog +* Tue Apr 15 2014 Automatic Build System 2.6.7.1-1mamba +- automatic version update by autodist + +* Sun Feb 02 2014 Automatic Build System 2.6.6-1mamba +- automatic version update by autodist + +* Sun Jun 30 2013 Automatic Build System 2.6.5-1mamba +- automatic version update by autodist + +* Tue Jun 25 2013 Automatic Build System 2.6.4-1mamba +- automatic version update by autodist + +* Thu Oct 18 2012 Automatic Build System 2.6.3-1mamba +- update to 2.6.3 + +* Thu Aug 09 2012 Automatic Build System 2.6.2-1mamba +- automatic version update by autodist + +* Sun Feb 26 2012 Silvan Calarco 2.6.1-1mamba +- update to 2.6.1 +- added requirement for less, gzip, bzip2, xz, ncompress + +* Wed Feb 09 2011 Automatic Build System 2.5.9-1mamba +- automatic update by autodist + +* Thu May 13 2010 Silvan Calarco 2.5.7-2mamba +- added requirement for groff + +* Tue Feb 23 2010 Davide Madrisan 2.5.7-1mamba +- package created by autospec