|
|
1be407 |
%global cache /var/cache/man
|
|
|
1be407 |
%global gnulib_ver 20120404-stable
|
|
|
1be407 |
|
|
|
1be407 |
Summary: Tools for searching and reading man pages
|
|
|
1be407 |
Name: man-db
|
|
|
1be407 |
Version: 2.6.3
|
|
|
c086d8 |
Release: 9%{?dist}
|
|
|
1be407 |
# GPLv2+ .. man-db
|
|
|
1be407 |
# GPLv3+ .. gnulib
|
|
|
1be407 |
License: GPLv2+ and GPLv3+
|
|
|
1be407 |
Group: System Environment/Base
|
|
|
1be407 |
URL: http://www.nongnu.org/man-db/
|
|
|
1be407 |
|
|
|
1be407 |
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
|
|
|
1be407 |
Source1: man-db.crondaily
|
|
|
1be407 |
Source2: man-db.sysconfig
|
|
|
1be407 |
|
|
|
1be407 |
# resolves: #655385
|
|
|
1be407 |
Patch0: man-db-2.5.9-sgr.patch
|
|
|
1be407 |
# resolves: #677669
|
|
|
1be407 |
Patch1: man-db-2.6.1-wildcards.patch
|
|
|
1be407 |
# resolves: #693458
|
|
|
1be407 |
Patch2: man-db-2.6.1-so-links.patch
|
|
|
1be407 |
# resolves: #657409
|
|
|
1be407 |
Patch3: man-db-2.6.1-locale-fallback.patch
|
|
|
1be407 |
# resolves: #841431
|
|
|
1be407 |
Patch4: man-db-2.6.2-invalid-cache.patch
|
|
|
1be407 |
# adds support for man-pages-overrides
|
|
|
1be407 |
Patch5: man-db-2.6.3-overrides.patch
|
|
|
1be407 |
# fixed some compiler warnings
|
|
|
1be407 |
Patch6: man-db-2.6.3-gcc.patch
|
|
|
1be407 |
# fixed memory leaks detected by valgrind
|
|
|
1be407 |
Patch7: man-db-2.6.3-valgrind.patch
|
|
|
1be407 |
# fixed certain man pages to match options with --help and --usage
|
|
|
1be407 |
Patch8: man-db-2.6.3-man-options.patch
|
|
|
1be407 |
|
|
|
1be407 |
Obsoletes: man < 2.0
|
|
|
1be407 |
Provides: man = %{version}
|
|
|
1be407 |
Provides: man-pages-reader = %{version}
|
|
|
1be407 |
# FPC exception for gnulib - copylib - https://fedorahosted.org/fpc/ticket/174
|
|
|
1be407 |
Provides: bundled(gnulib) = %{gnulib_ver}
|
|
|
1be407 |
|
|
|
1be407 |
Requires: coreutils, grep, groff-base, gzip, less
|
|
|
1be407 |
BuildRequires: gdbm-devel, gettext, groff, less, libpipeline-devel, zlib-devel
|
|
|
1be407 |
|
|
|
1be407 |
%description
|
|
|
1be407 |
The man-db package includes five tools for browsing man-pages:
|
|
|
1be407 |
man, whatis, apropos, manpath and lexgrog. man formats and displays
|
|
|
1be407 |
manual pages. whatis searches the manual page names. apropos searches the
|
|
|
1be407 |
manual page names and descriptions. manpath determines search path
|
|
|
1be407 |
for manual pages. lexgrog directly reads header information in
|
|
|
1be407 |
manual pages.
|
|
|
1be407 |
|
|
|
1be407 |
%prep
|
|
|
1be407 |
%setup -q
|
|
|
1be407 |
%patch0 -p1 -b .sgr
|
|
|
1be407 |
%patch1 -p1 -b .wildcards
|
|
|
1be407 |
%patch2 -p1 -b .so-links
|
|
|
1be407 |
%patch3 -p1 -b .locale-fallback
|
|
|
1be407 |
%patch4 -p1 -b .invalid-cache
|
|
|
1be407 |
%patch5 -p1 -b .overrides
|
|
|
1be407 |
%patch6 -p1 -b .gcc
|
|
|
1be407 |
%patch7 -p1 -b .valgrind-mem
|
|
|
1be407 |
%patch8 -p1 -b .man-options
|
|
|
1be407 |
|
|
|
1be407 |
%build
|
|
|
1be407 |
%configure \
|
|
|
1be407 |
--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" \
|
|
|
1be407 |
--disable-setuid --with-browser=elinks --with-lzip=lzip
|
|
|
1be407 |
make CC="%{__cc} %{optflags}" %{?_smp_mflags} V=1
|
|
|
1be407 |
|
|
|
1be407 |
%check
|
|
|
1be407 |
make check
|
|
|
1be407 |
|
|
|
1be407 |
%install
|
|
|
1be407 |
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} INSTALL='install -p'
|
|
|
1be407 |
|
|
|
1be407 |
# move the documentation to the relevant place
|
|
|
1be407 |
mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
|
|
|
1be407 |
|
|
|
1be407 |
# remove zsoelim - part of groff package
|
|
|
1be407 |
rm $RPM_BUILD_ROOT%{_bindir}/zsoelim
|
|
|
1be407 |
rm $RPM_BUILD_ROOT%{_datadir}/man/man1/zsoelim.1
|
|
|
1be407 |
|
|
|
1be407 |
# remove libtool archives
|
|
|
1be407 |
rm $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
|
|
|
1be407 |
|
|
|
1be407 |
# install cache directory
|
|
|
1be407 |
install -d -m 0755 $RPM_BUILD_ROOT%{cache}
|
|
|
1be407 |
|
|
|
1be407 |
# install cron script for man-db creation/update
|
|
|
1be407 |
install -D -p -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/man-db.cron
|
|
|
1be407 |
|
|
|
1be407 |
# config for cron script
|
|
|
1be407 |
install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
|
|
|
1be407 |
|
|
|
1be407 |
%find_lang %{name}
|
|
|
1be407 |
%find_lang %{name}-gnulib
|
|
|
1be407 |
|
|
|
1be407 |
# clear the old cache
|
|
|
1be407 |
%post
|
|
|
1be407 |
%{__rm} -rf %{cache}/*
|
|
|
1be407 |
|
|
|
1be407 |
%files -f %{name}.lang -f %{name}-gnulib.lang
|
|
|
1be407 |
%doc README man-db-manual.txt man-db-manual.ps docs/COPYING ChangeLog NEWS
|
|
|
1be407 |
%config(noreplace) %{_sysconfdir}/man_db.conf
|
|
|
1be407 |
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
|
|
1be407 |
%{_sysconfdir}/cron.daily/man-db.cron
|
|
|
1be407 |
%{_sbindir}/accessdb
|
|
|
1be407 |
%{_bindir}/man
|
|
|
1be407 |
%{_bindir}/whatis
|
|
|
1be407 |
%{_bindir}/apropos
|
|
|
1be407 |
%{_bindir}/manpath
|
|
|
1be407 |
%{_bindir}/lexgrog
|
|
|
1be407 |
%{_bindir}/catman
|
|
|
1be407 |
%{_bindir}/mandb
|
|
|
1be407 |
%dir %{_libdir}/man-db
|
|
|
1be407 |
%{_libdir}/man-db/*.so
|
|
|
1be407 |
%dir %{_libexecdir}/man-db
|
|
|
1be407 |
%{_libexecdir}/man-db/globbing
|
|
|
1be407 |
%{_libexecdir}/man-db/manconv
|
|
|
1be407 |
%attr(0755,root,root) %dir %{cache}
|
|
|
1be407 |
# documentation and translation
|
|
|
1be407 |
%{_mandir}/man1/apropos.1*
|
|
|
1be407 |
%{_mandir}/man1/lexgrog.1*
|
|
|
1be407 |
%{_mandir}/man1/man.1*
|
|
|
1be407 |
%{_mandir}/man1/manconv.1*
|
|
|
1be407 |
%{_mandir}/man1/manpath.1*
|
|
|
1be407 |
%{_mandir}/man1/whatis.1*
|
|
|
1be407 |
%{_mandir}/man5/manpath.5*
|
|
|
1be407 |
%{_mandir}/man8/accessdb.8*
|
|
|
1be407 |
%{_mandir}/man8/catman.8*
|
|
|
1be407 |
%{_mandir}/man8/mandb.8*
|
|
|
1be407 |
%lang(es) %{_datadir}/man/es/man*/*
|
|
|
1be407 |
%lang(it) %{_datadir}/man/it/man*/*
|
|
|
1be407 |
|
|
|
1be407 |
%changelog
|
|
|
c086d8 |
* Mon Mar 17 2014 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-9
|
|
|
c086d8 |
- resolves: #1067085
|
|
|
c086d8 |
fixed crash when running man with -M parameter
|
|
|
c086d8 |
|
|
|
c086d8 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.6.3-8
|
|
|
c086d8 |
- Mass rebuild 2014-01-24
|
|
|
c086d8 |
|
|
|
c086d8 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.6.3-7
|
|
|
c086d8 |
- Mass rebuild 2013-12-27
|
|
|
c086d8 |
|
|
|
1be407 |
* Mon Apr 8 2013 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-6
|
|
|
1be407 |
- resolves: #948695
|
|
|
1be407 |
fixed double free
|
|
|
1be407 |
- fixed certain man pages to match options with --help and --usage
|
|
|
1be407 |
|
|
|
1be407 |
* Thu Mar 21 2013 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-5
|
|
|
1be407 |
- temporarily disabled one unstable unit test
|
|
|
1be407 |
|
|
|
1be407 |
* Thu Mar 21 2013 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-4
|
|
|
1be407 |
- fixed some compiler warnings and memory leaks
|
|
|
1be407 |
|
|
|
1be407 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-3
|
|
|
1be407 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
1be407 |
|
|
|
1be407 |
* Tue Oct 30 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-2
|
|
|
1be407 |
- resolves: #870680
|
|
|
1be407 |
use less as the default pager
|
|
|
1be407 |
|
|
|
1be407 |
* Wed Oct 24 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-1
|
|
|
1be407 |
- resolves: #858577
|
|
|
1be407 |
updated to 2.6.3
|
|
|
1be407 |
- cleaned .spec file
|
|
|
1be407 |
- resolves: #855632
|
|
|
1be407 |
fixed SIGABRT crash
|
|
|
1be407 |
- adds support for man-pages-overrides
|
|
|
1be407 |
|
|
|
1be407 |
* Tue Jul 31 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-5
|
|
|
1be407 |
- resolves: #841431
|
|
|
1be407 |
ignore cached man pages if they don't exist anymore
|
|
|
1be407 |
|
|
|
1be407 |
* Fri Jul 20 2012 Dan Horák <dan[at]danny.cz> - 2.6.2-4
|
|
|
1be407 |
- fully patch the autotools files, fixes FTBFS due updated automake
|
|
|
1be407 |
|
|
|
1be407 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-3
|
|
|
1be407 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1be407 |
|
|
|
1be407 |
* Thu Jul 12 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-2
|
|
|
1be407 |
- resolves: #829553
|
|
|
1be407 |
clear the old man cache on install or update
|
|
|
1be407 |
|
|
|
1be407 |
* Tue Jul 10 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.2-1
|
|
|
1be407 |
- resolves: #833312
|
|
|
1be407 |
update to 2.6.2
|
|
|
1be407 |
- resolves: #657409
|
|
|
1be407 |
fixed warning when invoking col by the mandb program in cron
|
|
|
1be407 |
- resolves: #829935
|
|
|
1be407 |
enabled support for man pages compressed with lzip
|
|
|
1be407 |
- resolves: #821778
|
|
|
1be407 |
added virtual provides for bundled gnulib library
|
|
|
1be407 |
- resolves: #824825
|
|
|
1be407 |
apropos returns correct exit code for invalid man page
|
|
|
1be407 |
|
|
|
1be407 |
* Tue Apr 24 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-4
|
|
|
1be407 |
- related: #693458
|
|
|
1be407 |
updated patch for .so links because previous one wasn't working very well
|
|
|
1be407 |
|
|
|
1be407 |
* Tue Apr 24 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-3
|
|
|
1be407 |
- added autoconf, automake, libtool and gettext-devel to the build requires
|
|
|
1be407 |
|
|
|
1be407 |
* Tue Apr 24 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-2
|
|
|
1be407 |
- resolves: #677669
|
|
|
1be407 |
added support for wildcards in path
|
|
|
1be407 |
- resolves: #693458
|
|
|
1be407 |
fixed error with .so links
|
|
|
1be407 |
|
|
|
1be407 |
* Thu Apr 05 2012 Peter Schiffer <pschiffe@redhat.com> - 2.6.1-1
|
|
|
1be407 |
- resolves: #790771
|
|
|
1be407 |
update to 2.6.1
|
|
|
1be407 |
- resolves: #806086
|
|
|
1be407 |
removed hard-dependency on cron, update man db after install or update
|
|
|
1be407 |
|
|
|
1be407 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0.2-4
|
|
|
1be407 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
1be407 |
|
|
|
1be407 |
* Wed Oct 05 2011 Peter Schiffer <pschiffe@redhat.com> - 2.6.0.2-3
|
|
|
1be407 |
- resolves: #702904
|
|
|
1be407 |
fixed double free or corruption issue
|
|
|
1be407 |
- resolves: #739207
|
|
|
1be407 |
require groff-base instead of groff
|
|
|
1be407 |
- rebuilt for gdbm-1.9.1-1
|
|
|
1be407 |
|
|
|
1be407 |
* Sun May 29 2011 Ville Skyttä <ville.skytta@iki.fi> - 2.6.0.2-2
|
|
|
1be407 |
- Own the %%{_libdir}/man-db dir.
|
|
|
1be407 |
|
|
|
1be407 |
* Thu Apr 21 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 2.6.0.2-1
|
|
|
1be407 |
- update to 2.6.0.2
|
|
|
1be407 |
- remove obsolete patches
|
|
|
1be407 |
- add libpipe dependency
|
|
|
1be407 |
|
|
|
1be407 |
* Wed Mar 23 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-6
|
|
|
1be407 |
- Build with zlib support.
|
|
|
1be407 |
- Use elinks as default HTML browser.
|
|
|
1be407 |
thanks Ville Skyttä
|
|
|
1be407 |
|
|
|
1be407 |
* Wed Mar 23 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-5
|
|
|
1be407 |
* Resolves: #684977
|
|
|
1be407 |
backport upstream patch
|
|
|
1be407 |
|
|
|
1be407 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.9-4
|
|
|
1be407 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
1be407 |
|
|
|
1be407 |
* Thu Jan 27 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-3
|
|
|
1be407 |
- Resolves: #659292
|
|
|
1be407 |
use ionice in man cron job
|
|
|
1be407 |
|
|
|
1be407 |
* Wed Nov 24 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-2
|
|
|
1be407 |
- Resolves: #655385 - use old format of nroff output
|
|
|
1be407 |
|
|
|
1be407 |
* Mon Nov 22 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.9-1
|
|
|
1be407 |
- update to 2.5.9
|
|
|
1be407 |
|
|
|
1be407 |
* Fri Oct 1 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-8
|
|
|
1be407 |
- add less buildrequire
|
|
|
1be407 |
|
|
|
1be407 |
* Wed Sep 29 2010 jkeating - 2.5.7-7
|
|
|
1be407 |
- Rebuilt for gcc bug 634757
|
|
|
1be407 |
|
|
|
1be407 |
* Fri Sep 24 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-6
|
|
|
1be407 |
- Resolves: #630506 (change the description)
|
|
|
1be407 |
- minor spec file changes
|
|
|
1be407 |
|
|
|
1be407 |
* Mon Aug 30 2010 Dennis Gilmore <dennis@ausil.us> - 2.5.7-5
|
|
|
1be407 |
- Provide Versioned man
|
|
|
1be407 |
|
|
|
1be407 |
* Mon Aug 16 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-4
|
|
|
1be407 |
- remove obsolete conflict flag
|
|
|
1be407 |
|
|
|
1be407 |
* Mon Aug 16 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-3
|
|
|
1be407 |
- provides man tag
|
|
|
1be407 |
- resolves: #621688
|
|
|
1be407 |
remove problematic man-pages (now in man-pages-de package)
|
|
|
1be407 |
|
|
|
1be407 |
* Fri Apr 16 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-2
|
|
|
1be407 |
- add conflicts tag
|
|
|
1be407 |
|
|
|
1be407 |
* Wed Feb 17 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 2.5.7-1
|
|
|
1be407 |
- initial build
|