]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - man-db/man-db.nm
man-db: Update to 2.7.1
[people/ms/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
7bded4b0 7version = 2.7.1
fc1c8b95 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
27 db4-devel
28 gdbm-devel
29 groff
30 less
7bded4b0
MT
31 libpipeline-devel >= 1.4.0
32 systemd-devel
33 zlib-devel
802ea3af
MT
34 end
35
36 configure_options += \
9eca7db9 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" \
802ea3af 38 --disable-setuid \
9eca7db9 39 --with-browser=elinks
91f5b076 40
435e4304 41 install_cmds
9eca7db9
MT
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/
435e4304 46
7bded4b0
MT
47 # Remove zsoelim man page which is not part of groff
48 rm -vf %{BUILDROOT}%{datadir}/man/man*/zsoelim.*
9eca7db9
MT
49
50 # Create cache directory.
51 mkdir -pv %{BUILDROOT}/var/cache/man
802ea3af
MT
52 end
53end
906e47eb 54
802ea3af
MT
55packages
56 package %{name}
cb7dca59
MT
57 groups += Base
58
802ea3af
MT
59 requires
60 groff
61 less
435e4304 62 xz
802ea3af 63 end
91f5b076 64
802ea3af
MT
65 # This package also should be known as man.
66 provides
67 man
68 end
9eca7db9
MT
69
70 script posttransin
71 # Update the database right now.
7bded4b0
MT
72 rm -rf /var/cache/man/*
73
74 systemctl -q enable man-db.timer
75 systemctl start man-db.timer
9eca7db9
MT
76 end
77
78 script posttransup
79 # Update the database right now.
7bded4b0
MT
80 rm -rf /var/cache/man/*
81
82 systemctl -q enable man-db.timer
83 systemctl start man-db.timer
84 end
85
86 script preun
87 systemctl stop man-db.timer
88 systemctl -q disable man-db.timer
9eca7db9 89 end
802ea3af 90 end
1f9bc2f0
MT
91
92 package %{name}-debuginfo
93 template DEBUGINFO
94 end
802ea3af 95end