]> git.pld-linux.org Git - packages/man-db.git/blob - man-db.spec
- updated to 2.6.7.1
[packages/man-db.git] / man-db.spec
1 Summary:        Tools for searching and reading man pages
2 Summary(pl.UTF-8):      Narzędzia do przeszukiwania i czytania stron podręcznika man
3 Name:           man-db
4 Version:        2.6.7.1
5 Release:        1
6 # project man-db  GPLv2+
7 # Gnulib part     GPLv3+
8 License:        GPL v2+ and GPL v3+
9 Group:          Base
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
15 Patch0:         sgr.patch
16 URL:            http://www.nongnu.org/man-db/
17 BuildRequires:  gdbm-devel
18 BuildRequires:  gettext-devel >= 0.18.1
19 BuildRequires:  groff
20 BuildRequires:  less
21 BuildRequires:  libpipeline-devel >= 1.3.0
22 BuildRequires:  pkgconfig
23 BuildRequires:  po4a >= 0.41
24 BuildRequires:  tar >= 1:1.22
25 BuildRequires:  xz
26 BuildRequires:  zlib-devel
27 Requires:       coreutils
28 Requires:       crontabs
29 Requires:       grep
30 Requires:       groff
31 Requires:       gzip
32 Requires:       less
33 Requires:       libpipeline >= 1.3.0
34 Provides:       man-pages-reader = %{version}
35 Obsoletes:      man < 1.7
36 Obsoletes:      man-config
37 Obsoletes:      man-whatis
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,
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
61
62 %prep
63 %setup -q
64 %patch0 -p1
65
66 %build
67 %configure \
68         --disable-setuid \
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"
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
87 # remove libtool archives
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
89
90 # install cache directory
91 install -d $RPM_BUILD_ROOT%{cache}
92
93 # install cron script for man-db creation/update
94 install -D -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/man-db.cron
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
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
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*
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*/*
This page took 0.088739 seconds and 3 git commands to generate.