]> git.ipfire.org Git - ipfire-3.x.git/blob - man-db/man-db.nm
Merge remote-tracking branch 'stevee/perl-update'
[ipfire-3.x.git] / man-db / man-db.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = man-db
7 version = 2.7.1
8 release = 2
9
10 groups = Documentation
11 url = http://savannah.nongnu.org/projects/man-db
12 license = GPL
13 summary = man-db is an on-line manual database.
14
15 description
16 man-db is an implementation of the standard Unix documentation \
17 system accessed using the man command. It uses a Berkeley DB database \
18 in place of the traditional flat-text whatis databases. man-db is \
19 used by several popular GNU/Linux distributions.
20 end
21
22 source_dl = http://download.savannah.gnu.org/releases/man-db/
23 sources = %{thisapp}.tar.xz
24
25 build
26 requires
27 db4-devel
28 gdbm-devel
29 groff
30 less
31 libpipeline-devel >= 1.4.0
32 systemd-devel
33 zlib-devel
34 end
35
36 configure_options += \
37 --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" \
38 --disable-setuid \
39 --with-browser=elinks
40
41 install_cmds
42 # Move the libs to /usr/lib, but don't keep the symlinks so nothing
43 # will link against libman and libmandb as they are not stable.
44 mv -v %{BUILDROOT}%{libdir}/man-db/libman{,db}-%{version}.so %{BUILDROOT}%{libdir}
45 rm -rf %{BUILDROOT}%{libdir}/man-db/
46
47 # Remove zsoelim man page which is not part of groff
48 rm -vf %{BUILDROOT}%{datadir}/man/man*/zsoelim.*
49
50 # Create cache directory.
51 mkdir -pv %{BUILDROOT}/var/cache/man
52 end
53 end
54
55 packages
56 package %{name}
57 groups += Base
58
59 requires
60 groff
61 less
62 xz
63 end
64
65 conflicts
66 systemd <= 204
67 end
68
69 # This package also should be known as man.
70 provides
71 man
72 end
73
74 script posttransin
75 # Update the database right now.
76 rm -rf /var/cache/man/*
77
78 systemctl -q enable man-db.timer
79 systemctl start man-db.timer
80 end
81
82 script posttransup
83 # Update the database right now.
84 rm -rf /var/cache/man/*
85
86 systemctl -q enable man-db.timer
87 systemctl start man-db.timer
88 end
89
90 script preun
91 systemctl stop man-db.timer
92 systemctl -q disable man-db.timer
93 end
94 end
95
96 package %{name}-debuginfo
97 template DEBUGINFO
98 end
99 end