]>
Commit | Line | Data |
---|---|---|
edda3df9 | 1 | Summary: Tools for searching and reading man pages |
e2fe89a9 | 2 | Summary(pl.UTF-8): Narzędzia do przeszukiwania i czytania stron podręcznika man |
0b7e10df | 3 | Name: man-db |
e50e19c7 JB |
4 | Version: 2.6.6 |
5 | Release: 1 | |
0b7e10df ER |
6 | # project man-db GPLv2+ |
7 | # Gnulib part GPLv3+ | |
8 | License: GPL v2+ and GPL v3+ | |
9 | Group: Base | |
7d0a163b | 10 | Source0: http://download.savannah.gnu.org/releases/man-db/%{name}-%{version}.tar.xz |
e50e19c7 | 11 | # Source0-md5: 5d65d66191080c144437a6c854e17868 |
0b7e10df ER |
12 | Source1: %{name}.daily |
13 | Source2: %{name}.sysconfig | |
14 | # Resolves: #655385 - use old format of nroff output | |
e2fe89a9 JB |
15 | Patch0: sgr.patch |
16 | URL: http://www.nongnu.org/man-db/ | |
0b7e10df | 17 | BuildRequires: gdbm-devel |
e2fe89a9 | 18 | BuildRequires: gettext-devel >= 0.18.1 |
0b7e10df ER |
19 | BuildRequires: groff |
20 | BuildRequires: less | |
e2fe89a9 JB |
21 | BuildRequires: libpipeline-devel >= 1.1.0 |
22 | BuildRequires: pkgconfig | |
e68439e0 | 23 | BuildRequires: po4a >= 0.41 |
7d0a163b ŁK |
24 | BuildRequires: tar >= 1:1.22 |
25 | BuildRequires: xz | |
0b7e10df ER |
26 | BuildRequires: zlib-devel |
27 | Requires: coreutils | |
28 | Requires: crontabs | |
29 | Requires: grep | |
30 | Requires: groff | |
31 | Requires: gzip | |
32 | Requires: less | |
e2fe89a9 | 33 | Requires: libpipeline >= 1.1.0 |
0b7e10df | 34 | Provides: man-pages-reader = %{version} |
ba7277b9 | 35 | Obsoletes: man < 1.7 |
ea928868 | 36 | Obsoletes: man-config |
5776304d | 37 | Obsoletes: man-whatis |
0b7e10df ER |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %define cache /var/cache/man | |
41 | ||
42 | %description | |
43 | The man-db package includes five tools for browsing man-pages: man, | |
e2fe89a9 JB |
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. | |
50 | ||
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 | |
59 | podręcznika. | |
60 | ||
0b7e10df ER |
61 | |
62 | %prep | |
63 | %setup -q | |
6bd3f6d0 | 64 | %patch0 -p1 |
0b7e10df ER |
65 | |
66 | %build | |
e2fe89a9 | 67 | %configure \ |
0b7e10df | 68 | --disable-setuid \ |
e2fe89a9 JB |
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" | |
0b7e10df ER |
72 | |
73 | %{__make} \ | |
74 | V=1 \ | |
75 | CC="%{__cc} %{rpmcflags}" | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | %{__make} install \ | |
80 | INSTALL='install -p' \ | |
81 | prefix=%{_prefix} \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
84 | # move the documentation to relevant place | |
85 | mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./ | |
86 | ||
0b7e10df | 87 | # remove libtool archives |
f23512fc | 88 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/man-db/*.la |
0b7e10df ER |
89 | |
90 | # install cache directory | |
91 | install -d $RPM_BUILD_ROOT%{cache} | |
92 | ||
93 | # install cron script for man-db creation/update | |
f52b433e | 94 | install -D -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/man-db.cron |
0b7e10df ER |
95 | |
96 | # config for cron script | |
97 | install -D -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db | |
98 | ||
99 | %find_lang %{name} | |
100 | %find_lang %{name}-gnulib | |
101 | cat %{name}-gnulib.lang >> %{name}.lang | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
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 | |
f52b433e | 111 | %attr(750,root,root) /etc/cron.daily/man-db.cron |
0b7e10df ER |
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 | |
f23512fc | 120 | %attr(755,root,root) %{_bindir}/zsoelim |
0b7e10df | 121 | %dir %{_libdir}/man-db |
e2fe89a9 | 122 | %attr(755,root,root) %{_libdir}/man-db/*.so |
0b7e10df ER |
123 | %{_libdir}/man-db/globbing |
124 | %{_libdir}/man-db/manconv | |
125 | %dir %{cache} | |
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* | |
f23512fc | 133 | %{_mandir}/man1/zsoelim.1* |
0b7e10df ER |
134 | %{_mandir}/man5/manpath.5* |
135 | %{_mandir}/man8/accessdb.8* | |
136 | %{_mandir}/man8/catman.8* | |
137 | %{_mandir}/man8/mandb.8* | |
e2fe89a9 | 138 | %lang(da) %{_mandir}/da/man*/* |
0b7e10df ER |
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*/* | |
e2fe89a9 | 148 | %lang(zh_CN) %{_mandir}/zh_CN/man*/* |