1 Summary: Tools for searching and reading man pages
2 Summary(pl.UTF-8): Narzędzia do przeszukiwania i czytania stron podręcznika man
6 # project man-db GPLv2+
8 License: GPL v2+ and GPL v3+
10 Source0: http://download.savannah.gnu.org/releases/man-db/%{name}-%{version}.tar.xz
11 # Source0-md5: ce7b697f8e8016a085d9f5975ae6c4fb
12 Source1: %{name}.daily
13 Source2: %{name}.sysconfig
14 # Resolves: #655385 - use old format of nroff output
16 URL: http://www.nongnu.org/man-db/
17 BuildRequires: gdbm-devel
18 BuildRequires: gettext-devel >= 0.18.1
21 BuildRequires: libpipeline-devel >= 1.3.0
22 BuildRequires: pkgconfig
23 BuildRequires: po4a >= 0.41
24 BuildRequires: tar >= 1:1.22
26 BuildRequires: zlib-devel
33 Requires: libpipeline >= 1.3.0
34 Provides: man-pages-reader = %{version}
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define cache /var/cache/man
43 The man-db package includes five tools for browsing man-pages: man,
44 whatis, apropos, manpath and lexgrog:
45 - man preformats and displays manual pages.
46 - whatis searches the manual page names.
47 - apropos searches the manual page names and descriptions.
48 - manpath determines search path for manual pages.
49 - lexgrog directly reads header information in manual pages.
51 %description -l pl.UTF-8
52 Pakiet man-db zawiera pięć narzędzi do przeglądania stron podręcznika
53 man (nazywanych man-pages): man, whatis, apropos, manpath i lexgrog:
54 - man wstępnie formatuje i wyświetla strony podręcznika.
55 - whatis przeszukuje nazwy stron podręcznika.
56 - apropos przeszukuje nazwy stron podręcznika oraz opisy.
57 - manpath określa ścieżkę przeszukiwania dla stron podręcznika.
58 - lexgrog bezpośrednio odczytuje informacje z nagłówka stron
69 --disable-silent-rules \
70 --with-browser=elinks \
71 --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"
75 CC="%{__cc} %{rpmcflags}"
78 rm -rf $RPM_BUILD_ROOT
80 INSTALL='install -p' \
82 DESTDIR=$RPM_BUILD_ROOT
84 # move the documentation to relevant place
85 mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
87 # remove libtool archives
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
90 # install cache directory
91 install -d $RPM_BUILD_ROOT%{cache}
93 # install cron script for man-db creation/update
94 install -D -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/man-db.cron
96 # config for cron script
97 install -D -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
100 %find_lang %{name}-gnulib
101 cat %{name}-gnulib.lang >> %{name}.lang
104 rm -rf $RPM_BUILD_ROOT
106 %files -f %{name}.lang
107 %defattr(644,root,root,755)
108 %doc README man-db-manual.txt man-db-manual.ps docs/COPYING ChangeLog NEWS
109 %config(noreplace) %{_sysconfdir}/man_db.conf
110 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/man-db
111 %attr(750,root,root) /etc/cron.daily/man-db.cron
112 %attr(755,root,root) %{_sbindir}/accessdb
113 %attr(755,root,root) %{_bindir}/man
114 %attr(755,root,root) %{_bindir}/whatis
115 %attr(755,root,root) %{_bindir}/apropos
116 %attr(755,root,root) %{_bindir}/manpath
117 %attr(755,root,root) %{_bindir}/lexgrog
118 %attr(755,root,root) %{_bindir}/catman
119 %attr(755,root,root) %{_bindir}/mandb
120 %attr(755,root,root) %{_bindir}/zsoelim
121 %dir %{_libdir}/man-db
122 %attr(755,root,root) %{_libdir}/man-db/*.so
123 %{_libdir}/man-db/globbing
124 %{_libdir}/man-db/manconv
126 # documentation and translation
127 %{_mandir}/man1/apropos.1*
128 %{_mandir}/man1/lexgrog.1*
129 %{_mandir}/man1/man.1*
130 %{_mandir}/man1/manconv.1*
131 %{_mandir}/man1/manpath.1*
132 %{_mandir}/man1/whatis.1*
133 %{_mandir}/man1/zsoelim.1*
134 %{_mandir}/man5/manpath.5*
135 %{_mandir}/man8/accessdb.8*
136 %{_mandir}/man8/catman.8*
137 %{_mandir}/man8/mandb.8*
138 %lang(da) %{_mandir}/da/man*/*
139 %lang(de) %{_mandir}/de/man*/*
140 %lang(es) %{_mandir}/es/man*/*
141 %lang(fr) %{_mandir}/fr/man*/*
142 %lang(id) %{_mandir}/id/man*/*
143 %lang(it) %{_mandir}/it/man*/*
144 %lang(ja) %{_mandir}/ja/man*/*
145 %lang(nl) %{_mandir}/nl/man*/*
146 %lang(pl) %{_mandir}/pl/man*/*
147 %lang(ru) %{_mandir}/ru/man*/*
148 %lang(zh_CN) %{_mandir}/zh_CN/man*/*