]> git.ipfire.org Git - ipfire-3.x.git/blame - man-db/man-db.nm
man-db: Update to 2.11.2
[ipfire-3.x.git] / man-db / man-db.nm
CommitLineData
91f5b076 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
91f5b076
MT
4###############################################################################
5
802ea3af 6name = man-db
c1de5a4b
SS
7version = 2.11.2
8release = 1
91f5b076 9
cb7dca59 10groups = Documentation
1e308222 11url = http://savannah.nongnu.org/projects/man-db
802ea3af
MT
12license = GPL
13summary = man-db is an on-line manual database.
91f5b076 14
802ea3af 15description
91f5b076
MT
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.
802ea3af
MT
20end
21
1e308222 22source_dl = http://download.savannah.gnu.org/releases/man-db/
fc1c8b95 23sources = %{thisapp}.tar.xz
802ea3af
MT
24
25build
26 requires
802ea3af
MT
27 gdbm-devel
28 groff
29 less
c1de5a4b 30 libpipeline-devel >= 1.5.0
7bded4b0
MT
31 systemd-devel
32 zlib-devel
802ea3af
MT
33 end
34
c1de5a4b
SS
35 prepare_cmds
36 %{create_user}
37 end
38
802ea3af 39 configure_options += \
9eca7db9 40 --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" \
802ea3af 41 --disable-setuid \
9eca7db9 42 --with-browser=elinks
91f5b076 43
435e4304 44 install_cmds
9eca7db9
MT
45 # Move the libs to /usr/lib, but don't keep the symlinks so nothing
46 # will link against libman and libmandb as they are not stable.
47 mv -v %{BUILDROOT}%{libdir}/man-db/libman{,db}-%{version}.so %{BUILDROOT}%{libdir}
48 rm -rf %{BUILDROOT}%{libdir}/man-db/
435e4304 49
7bded4b0
MT
50 # Remove zsoelim man page which is not part of groff
51 rm -vf %{BUILDROOT}%{datadir}/man/man*/zsoelim.*
9eca7db9
MT
52
53 # Create cache directory.
54 mkdir -pv %{BUILDROOT}/var/cache/man
c1de5a4b
SS
55
56 # Own the cache directory to the man user/group.
57 chown man:man %{BUILDROOT}/var/cache/man
802ea3af
MT
58 end
59end
906e47eb 60
c1de5a4b
SS
61create_user
62 getent group man >/dev/null || groupadd -r -g 15 man
63 getent passwd man >/dev/null || useradd -r -g 15 \
64 -c "Manpage cache user" -d /var/cache/man -s /sbin/nologin man
65end
66
802ea3af
MT
67packages
68 package %{name}
cb7dca59
MT
69 groups += Base
70
802ea3af
MT
71 requires
72 groff
73 less
435e4304 74 xz
802ea3af 75 end
91f5b076 76
825eefc9
SS
77 conflicts
78 systemd <= 204
79 end
80
802ea3af
MT
81 # This package also should be known as man.
82 provides
83 man
84 end
9eca7db9 85
c1de5a4b
SS
86 script prein
87 %{create_user}
88 end
89
9eca7db9
MT
90 script posttransin
91 # Update the database right now.
7bded4b0
MT
92 rm -rf /var/cache/man/*
93
94 systemctl -q enable man-db.timer
95 systemctl start man-db.timer
9eca7db9
MT
96 end
97
98 script posttransup
99 # Update the database right now.
7bded4b0
MT
100 rm -rf /var/cache/man/*
101
102 systemctl -q enable man-db.timer
103 systemctl start man-db.timer
104 end
105
106 script preun
107 systemctl stop man-db.timer
108 systemctl -q disable man-db.timer
9eca7db9 109 end
802ea3af 110 end
1f9bc2f0
MT
111
112 package %{name}-debuginfo
113 template DEBUGINFO
114 end
802ea3af 115end