]> git.pld-linux.org Git - packages/man-db.git/blob - man-db.spec
- rel 6
[packages/man-db.git] / man-db.spec
1 Summary:        Tools for searching and reading man pages
2 Name:           man-db
3 Version:        2.6.1
4 Release:        6
5 # project man-db  GPLv2+
6 # Gnulib part     GPLv3+
7 License:        GPL v2+ and GPL v3+
8 Group:          Base
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
16 Patch1:         sgr.patch
17 BuildRequires:  gdbm-devel
18 BuildRequires:  gettext
19 BuildRequires:  groff
20 BuildRequires:  less
21 BuildRequires:  libpipeline-devel
22 BuildRequires:  po4a
23 BuildRequires:  zlib-devel
24 Requires:       coreutils
25 Requires:       crontabs
26 Requires:       grep
27 Requires:       groff
28 Requires:       gzip
29 Requires:       less
30 Provides:       man-pages-reader = %{version}
31 Obsoletes:      man < 1.6g-3
32 Obsoletes:      man-config
33 Obsoletes:      man-whatis
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         cache   /var/cache/man
37
38 %description
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
44 pages.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49 %patch1 -p1
50
51 %build
52 %configure\
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" \
54         --disable-setuid \
55         --with-browser=elinks
56
57 %{__make} \
58         V=1 \
59         CC="%{__cc} %{rpmcflags}"
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 %{__make} install \
64         INSTALL='install -p' \
65         prefix=%{_prefix} \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 # move the documentation to relevant place
69 mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
70
71 # remove libtool archives
72 %{__rm} $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
73
74 # install cache directory
75 install -d $RPM_BUILD_ROOT%{cache}
76
77 # install cron script for man-db creation/update
78 install -D -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/man-db.cron
79
80 # config for cron script
81 install -D -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
82
83 %find_lang %{name}
84 %find_lang %{name}-gnulib
85 cat %{name}-gnulib.lang >> %{name}.lang
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
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
109 %dir %{cache}
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*/*
This page took 0.334621 seconds and 4 git commands to generate.