man-db/man-db.spec

340 lines
11 KiB
RPMSpec
Raw Normal View History

2010-04-15 12:53:38 +00:00
%global cache /var/cache/man
%global gnulib_ver 20140202
2010-04-15 12:53:38 +00:00
Summary: Tools for searching and reading man pages
2010-04-15 12:53:38 +00:00
Name: man-db
2014-10-08 11:03:43 +00:00
Version: 2.7.0.2
Release: 5%{?dist}
2012-10-18 19:05:15 +00:00
# GPLv2+ .. man-db
# GPLv3+ .. gnulib
2010-04-15 12:53:38 +00:00
License: GPLv2+ and GPLv3+
Group: System Environment/Base
URL: http://www.nongnu.org/man-db/
2012-10-18 19:05:15 +00:00
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
Source1: man-db.service
Source2: man-db.timer
Patch0: 1151558-switch-man-and-root-in-init-systemd-man-db.conf.patch
2010-04-15 12:53:38 +00:00
Obsoletes: man < 2.0
2010-08-30 16:04:42 +00:00
Provides: man = %{version}
Provides: man-pages-reader = %{version}
# FPC exception for gnulib - copylib - https://fedorahosted.org/fpc/ticket/174
Provides: bundled(gnulib) = %{gnulib_ver}
Requires: coreutils, grep, groff-base, gzip, less, systemd
BuildRequires: gdbm-devel, gettext, groff, less, libpipeline-devel, zlib-devel
BuildRequires: po4a, systemd
2010-04-15 12:53:38 +00:00
%description
The man-db package includes five tools for browsing man-pages:
2012-10-18 19:05:15 +00:00
man, whatis, apropos, manpath and lexgrog. man formats and displays
2010-04-15 12:53:38 +00:00
manual pages. whatis searches the manual page names. apropos searches the
manual page names and descriptions. manpath determines search path
for manual pages. lexgrog directly reads header information in
manual pages.
%prep
%autosetup -p1
2010-04-15 12:53:38 +00:00
%build
2012-10-18 19:05:15 +00:00
%configure \
--with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \
2014-02-19 09:53:49 +00:00
--disable-setuid --with-browser=elinks --with-lzip=lzip \
--with-override-dir=overrides
2010-04-15 12:53:38 +00:00
make CC="%{__cc} %{optflags}" %{?_smp_mflags} V=1
%check
make check
2010-04-15 12:53:38 +00:00
%install
2012-10-18 19:05:15 +00:00
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} INSTALL='install -p'
2010-04-15 12:53:38 +00:00
2012-10-18 19:05:15 +00:00
# move the documentation to the relevant place
2010-04-15 12:53:38 +00:00
mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
# remove zsoelim man page - part of groff package
2010-04-15 12:53:38 +00:00
rm $RPM_BUILD_ROOT%{_datadir}/man/man1/zsoelim.1
2010-11-23 14:03:43 +00:00
# remove libtool archives
rm $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
2010-04-15 12:53:38 +00:00
# install cache directory
install -d -m 0755 $RPM_BUILD_ROOT%{cache}
# install systemd service and timer files for man-db creation/update
mkdir -p %{buildroot}%{_unitdir}
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/%{name}.timer
2010-04-15 12:53:38 +00:00
# config for tmpfiles.d
install -D -p -m 0644 init/systemd/man-db.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/.
2010-04-15 12:53:38 +00:00
%find_lang %{name}
%find_lang %{name}-gnulib
# clear the old cache
%post
%{__rm} -rf %{cache}/*
# enable and start timer
systemctl -q enable man-db.timer
systemctl start man-db.timer
%preun
# stop and disable timer
if [ "$1" -eq 0 ]; then
systemctl stop man-db.timer
systemctl -q disable man-db.timer
fi
2010-04-15 12:53:38 +00:00
%files -f %{name}.lang -f %{name}-gnulib.lang
2014-07-18 20:09:36 +00:00
%{!?_licensedir:%global license %%doc}
%license docs/COPYING
%doc README man-db-manual.txt man-db-manual.ps ChangeLog NEWS
2010-04-15 12:53:38 +00:00
%config(noreplace) %{_sysconfdir}/man_db.conf
%{_unitdir}/man-db.service
%{_unitdir}/man-db.timer
%config(noreplace) /usr/lib/tmpfiles.d/man-db.conf
2010-04-15 12:53:38 +00:00
%{_sbindir}/accessdb
%{_bindir}/man
%{_bindir}/whatis
%{_bindir}/apropos
%{_bindir}/manpath
%{_bindir}/lexgrog
%{_bindir}/catman
%{_bindir}/mandb
2011-05-29 18:36:24 +00:00
%dir %{_libdir}/man-db
2010-11-23 14:03:43 +00:00
%{_libdir}/man-db/*.so
2010-04-15 12:53:38 +00:00
%dir %{_libexecdir}/man-db
%{_libexecdir}/man-db/globbing
%{_libexecdir}/man-db/manconv
%{_libexecdir}/man-db/zsoelim
%attr(0755,root,root) %dir %{cache}
2010-04-15 12:53:38 +00:00
# documentation and translation
%{_mandir}/man1/apropos.1*
%{_mandir}/man1/lexgrog.1*
%{_mandir}/man1/man.1*
%{_mandir}/man1/manconv.1*
%{_mandir}/man1/manpath.1*
%{_mandir}/man1/whatis.1*
%{_mandir}/man5/manpath.5*
%{_mandir}/man8/accessdb.8*
%{_mandir}/man8/catman.8*
%{_mandir}/man8/mandb.8*
%lang(da) %{_datadir}/man/da/man*/*
%lang(de) %{_datadir}/man/de/man*/*
2010-04-15 12:53:38 +00:00
%lang(es) %{_datadir}/man/es/man*/*
%lang(fr) %{_datadir}/man/fr/man*/*
%lang(id) %{_datadir}/man/id/man*/*
2010-04-15 12:53:38 +00:00
%lang(it) %{_datadir}/man/it/man*/*
%lang(ja) %{_datadir}/man/ja/man*/*
%lang(nl) %{_datadir}/man/nl/man*/*
%lang(pl) %{_datadir}/man/pl/man*/*
%lang(ru) %{_datadir}/man/ru/man*/*
%lang(zh_CN) %{_datadir}/man/zh_CN/man*/*
2010-04-15 12:53:38 +00:00
%changelog
* Wed Oct 15 2014 jchaloup <jchaloup@redhat.com> - 2.7.0.2-5
- switch man and root in init/systemd/man-db.conf
related: #1151558
* Mon Oct 13 2014 jchaloup <jchaloup@redhat.com> - 2.7.0.2-4
- preun missing condition on number of man-db packages installed
related: #1151558
* Sun Oct 12 2014 jchaloup <jchaloup@redhat.com> - 2.7.0.2-3
- remove executable flag for *.service and *.timer file
resolves: #1151558
* Wed Oct 08 2014 jchaloup <jchaloup@redhat.com> - 2.7.0.2-2
- replacing cron with systemd.timer
resolves: #1148559
- adding zsoelim to {_libexecdir}/man-db/zsoelim
related: #1145493
2014-10-08 11:03:43 +00:00
* Wed Oct 08 2014 jchaloup <jchaloup@redhat.com> - 2.7.0.2-1
- Update to 2.7.0.2
resolves: #1145493
* Thu Sep 18 2014 jchaloup <jchaloup@redhat.com> - 2.6.7.1-7
- resolves: #1043401
Don't store canonicalised versions of manpath elements
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.7.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-07-18 20:09:36 +00:00
* Fri Jul 18 2014 Tom Callaway <spot@fedoraproject.org> - 2.6.7.1-5
- fix license handling
* Tue Jul 01 2014 jchaloup <jchaloup@redhat.com> - 2.6.7.1-4
- related: #1110274
swapping root for man in man-db.conf
* Wed Jun 25 2014 jchaloup <jchaloup@redhat.com> - 2.6.7.1-3
- resolves: #1110274
Add systemd tmpfiles snippet to clean up old cat files after (upstream patch)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu Apr 17 2014 Peter Schiffer <pschiffe@redhat.com> - 2.6.7.1-1
- resolves: #1087279
updated to 2.6.7.1
2014-02-19 09:53:49 +00:00
* Wed Feb 19 2014 Peter Schiffer <pschiffe@redhat.com> - 2.6.6-1
- resolves: #1057495
updated to 2.6.6
* Wed Aug 07 2013 Pierre-Yves Chibon <pingou@pingoured.fr> - 2.6.5-3
- Add a missing requirement on crontabs to spec file
- Mark the cron job as config(noreplace)
2013-08-07 21:25:59 +00:00
- Fix RHBZ#989077
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-06-27 12:06:33 +00:00
* Thu Jun 27 2013 Peter Schiffer <pschiffe@redhat.com> - 2.6.5-1
- updated to 2.6.5
* Tue Jun 25 2013 Peter Schiffer <pschiffe@redhat.com> - 2.6.4-1
- resolves: #977255
updated to 2.6.4
2013-04-08 12:43:13 +00:00
* Mon Apr 8 2013 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-6
- resolves: #948695
fixed double free
- fixed certain man pages to match options with --help and --usage
2013-04-08 12:43:13 +00:00
* Thu Mar 21 2013 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-5
- temporarily disabled one unstable unit test
* Thu Mar 21 2013 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-4
- fixed some compiler warnings and memory leaks
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Oct 30 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-2
- resolves: #870680
use less as the default pager
2012-10-24 16:10:49 +00:00
* Wed Oct 24 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-1
2012-10-18 14:52:07 +00:00
- resolves: #858577
updated to 2.6.3
2012-10-18 19:05:15 +00:00
- cleaned .spec file
- resolves: #855632
fixed SIGABRT crash
2012-10-24 16:10:49 +00:00
- adds support for man-pages-overrides
2012-10-18 14:52:07 +00:00
* Tue Jul 31 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-5
- resolves: #841431
ignore cached man pages if they don't exist anymore
* Fri Jul 20 2012 Dan Horák <dan[at]danny.cz> - 2.6.2-4
- fully patch the autotools files, fixes FTBFS due updated automake
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jul 12 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-2
- resolves: #829553
clear the old man cache on install or update
* Tue Jul 10 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-1
- resolves: #833312
update to 2.6.2
- resolves: #657409
fixed warning when invoking col by the mandb program in cron
- resolves: #829935
enabled support for man pages compressed with lzip
- resolves: #821778
added virtual provides for bundled gnulib library
- resolves: #824825
apropos returns correct exit code for invalid man page
* Tue Apr 24 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-4
- related: #693458
updated patch for .so links because previous one wasn't working very well
* Tue Apr 24 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-3
- added autoconf, automake, libtool and gettext-devel to the build requires
* Tue Apr 24 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-2
- resolves: #677669
added support for wildcards in path
- resolves: #693458
fixed error with .so links
* Thu Apr 05 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-1
- resolves: #790771
update to 2.6.1
- resolves: #806086
removed hard-dependency on cron, update man db after install or update
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Oct 05 2011 Peter Schiffer <pschiffe@redhat.com> - 2.6.0.2-3
- resolves: #702904
fixed double free or corruption issue
- resolves: #739207
require groff-base instead of groff
- rebuilt for gdbm-1.9.1-1
2011-05-29 18:36:24 +00:00
* Sun May 29 2011 Ville Skyttä <ville.skytta@iki.fi> - 2.6.0.2-2
- Own the %%{_libdir}/man-db dir.
* Thu Apr 21 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 2.6.0.2-1
- update to 2.6.0.2
- remove obsolete patches
- add libpipe dependency
* Wed Mar 23 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-6
- Build with zlib support.
- Use elinks as default HTML browser.
thanks Ville Skyttä
* Wed Mar 23 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-5
* Resolves: #684977
backport upstream patch
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Jan 27 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-3
- Resolves: #659292
use ionice in man cron job
* Wed Nov 24 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-2
- Resolves: #655385 - use old format of nroff output
2010-11-23 14:03:43 +00:00
* Mon Nov 22 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-1
- update to 2.5.9
2010-10-01 13:24:41 +00:00
* Fri Oct 1 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-8
- add less buildrequire
2010-09-29 21:46:25 +00:00
* Wed Sep 29 2010 jkeating - 2.5.7-7
- Rebuilt for gcc bug 634757
* Fri Sep 24 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-6
- Resolves: #630506 (change the description)
- minor spec file changes
2010-08-30 16:04:42 +00:00
* Mon Aug 30 2010 Dennis Gilmore <dennis@ausil.us> - 2.5.7-5
- Provide Versioned man
2010-08-30 13:06:01 +00:00
* Mon Aug 16 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-4
- remove obsolete conflict flag
* Mon Aug 16 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-3
- provides man tag
- resolves: #621688
remove problematic man-pages (now in man-pages-de package)
2010-04-16 08:40:02 +00:00
* Fri Apr 16 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-2
- add conflicts tag
2010-04-15 12:53:38 +00:00
* Wed Feb 17 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-1
- initial build