%define cache /var/cache/man Summary: Database cached manual pager suit Name: man-db Version: 2.5.7 Release: 4%{?dist} # man-db project GPLv2+ # gnulib part GPLv3+ License: GPLv2+ and GPLv3+ Group: System Environment/Base URL: http://www.nongnu.org/man-db/ Source0: http://mirrors.igsobe.com/nongnu/man-db/%{name}-%{version}.tar.gz Source1: man-db.crondaily Source2: man-db.sysconfig Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Obsoletes: man < 2.0 Provides: man = %{version} Requires: less coreutils grep groff gzip BuildRequires: gdbm-devel groff zlib-devel %description man-db package includes five tools for browsing man-pages: man, whatis, appropos, manpath and lexgrog. man preformat and display manual pages. whatis search the manual page names. apropos search the manual page names and descriptions. manpath determine search path for manual pages. lexgrog directly read header information in manual pages. %prep %setup -q %build ./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" \ --with-config-file=%{_sysconfdir}/manpath.conf \ --with-db=gdbm \ --disable-setuid \ --with-gzip=gzip \ --with-bzip2=bzip2 \ --with-lzma=xz make CC="%{__cc} %{optflags}" %{?_smp_mflags} V=1 chmod 0755 ./src/man %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} prefix=%{_prefix} # move the documentation to relevant place mv %{buildroot}%{_datadir}/doc/man-db/* ./ # remove zsoelim - part of groff package rm %{buildroot}%{_bindir}/zsoelim rm %{buildroot}%{_datadir}/man/man1/zsoelim.1 # remove translation of man pages (are in man-pages-*) rm -rf %{buildroot}%{_datadir}/man/{de,es,fr,it,ja}/* # install cache directory install -d m 0755 %{buildroot}%{cache} # install cron script for man-db creation/update install -D -p -m 0755 %{SOURCE1} %{buildroot}/etc/cron.daily/man-db.cron # config for cron script install -D -p -m 0644 %{SOURCE2} %{buildroot}/etc/sysconfig/man-db %find_lang %{name} %find_lang %{name}-gnulib %clean rm -rf %{buildroot} %files -f %{name}.lang -f %{name}-gnulib.lang %defattr(-, root, root, -) %doc README man-db-manual.txt man-db-manual.ps %config(noreplace) %{_sysconfdir}/manpath.conf %config(noreplace) %{_sysconfdir}/sysconfig/man-db %{_sysconfdir}/cron.daily/man-db.cron %{_sbindir}/accessdb %{_bindir}/man %{_bindir}/whatis %{_bindir}/apropos %{_bindir}/manpath %{_bindir}/lexgrog %{_bindir}/catman %{_bindir}/mandb %{_libexecdir}/man-db/globbing %{_libexecdir}/man-db/manconv %{_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* %attr(0755, root, root) %dir %{cache} %changelog * Fri Mar 12 2010 Terje Rosten - 2.5.7-4 - move config to /etc/manpath.conf - verbose build * Thu Mar 11 2010 Terje Rosten - 2.5.7-3 - move cron config to /etc/sysconfig/man-db - default to quiet in cron script * Wed Mar 10 2010 Terje Rosten - 2.5.7-2 - fix man_db.conf location - build with various compress support - explicit file listing - use find_lang macro - redo install part - remove all translations * Wed Feb 17 2010 Ivana Hutarova Varekova - 2.5.7-1 - initial build