1 Summary: Tools for searching and reading man pages
5 # project man-db GPLv2+
7 License: GPL v2+ and GPL v3+
9 URL: http://www.nongnu.org/man-db/
10 Source0: http://download.savannah.gnu.org/releases/man-db/%{name}-%{version}.tar.gz
11 # Source0-md5: 79658e8695c7b9b3be1ee340d78a4692
12 Source1: %{name}.daily
13 Source2: %{name}.sysconfig
14 Patch0: so-include.patch
15 # Resolves: #655385 - use old format of nroff output
17 BuildRequires: gdbm-devel
18 BuildRequires: gettext
21 BuildRequires: libpipeline-devel
23 BuildRequires: zlib-devel
30 Provides: man-pages-reader = %{version}
31 Obsoletes: man < 1.6g-3
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define cache /var/cache/man
39 The man-db package includes five tools for browsing man-pages: man,
40 whatis, apropos, manpath and lexgrog. man preformats and displays
41 manual pages. whatis searches the manual page names. apropos searches
42 the manual page names and descriptions. manpath determines search path
43 for manual pages. lexgrog directly reads header information in manual
53 --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" \
59 CC="%{__cc} %{rpmcflags}"
62 rm -rf $RPM_BUILD_ROOT
64 INSTALL='install -p' \
66 DESTDIR=$RPM_BUILD_ROOT
68 # move the documentation to relevant place
69 mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
71 # remove libtool archives
72 %{__rm} $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
74 # install cache directory
75 install -d $RPM_BUILD_ROOT%{cache}
77 # install cron script for man-db creation/update
78 install -D -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/man-db.cron
80 # config for cron script
81 install -D -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
84 %find_lang %{name}-gnulib
85 cat %{name}-gnulib.lang >> %{name}.lang
88 rm -rf $RPM_BUILD_ROOT
90 %files -f %{name}.lang
91 %defattr(644,root,root,755)
92 %doc README man-db-manual.txt man-db-manual.ps docs/COPYING ChangeLog NEWS
93 %config(noreplace) %{_sysconfdir}/man_db.conf
94 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/man-db
95 %attr(750,root,root) /etc/cron.daily/man-db.cron
96 %attr(755,root,root) %{_sbindir}/accessdb
97 %attr(755,root,root) %{_bindir}/man
98 %attr(755,root,root) %{_bindir}/whatis
99 %attr(755,root,root) %{_bindir}/apropos
100 %attr(755,root,root) %{_bindir}/manpath
101 %attr(755,root,root) %{_bindir}/lexgrog
102 %attr(755,root,root) %{_bindir}/catman
103 %attr(755,root,root) %{_bindir}/mandb
104 %attr(755,root,root) %{_bindir}/zsoelim
105 %dir %{_libdir}/man-db
106 %{_libdir}/man-db/*.so
107 %{_libdir}/man-db/globbing
108 %{_libdir}/man-db/manconv
110 # documentation and translation
111 %{_mandir}/man1/apropos.1*
112 %{_mandir}/man1/lexgrog.1*
113 %{_mandir}/man1/man.1*
114 %{_mandir}/man1/manconv.1*
115 %{_mandir}/man1/manpath.1*
116 %{_mandir}/man1/whatis.1*
117 %{_mandir}/man1/zsoelim.1*
118 %{_mandir}/man5/manpath.5*
119 %{_mandir}/man8/accessdb.8*
120 %{_mandir}/man8/catman.8*
121 %{_mandir}/man8/mandb.8*
122 %lang(de) %{_mandir}/de/man*/*
123 %lang(es) %{_mandir}/es/man*/*
124 %lang(fr) %{_mandir}/fr/man*/*
125 %lang(id) %{_mandir}/id/man*/*
126 %lang(it) %{_mandir}/it/man*/*
127 %lang(ja) %{_mandir}/ja/man*/*
128 %lang(nl) %{_mandir}/nl/man*/*
129 %lang(pl) %{_mandir}/pl/man*/*
130 %lang(ru) %{_mandir}/ru/man*/*