1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Documentation
11 url = http://savannah.nongnu.org/projects/man-db
13 summary = man-db is an on-line manual database.
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.
22 source_dl = http://download.savannah.gnu.org/releases/man-db/
23 sources = %{thisapp}.tar.xz
30 libpipeline-devel >= 1.4.0
35 configure_options += \
36 --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" \
41 # Move the libs to /usr/lib, but don't keep the symlinks so nothing
42 # will link against libman and libmandb as they are not stable.
43 mv -v %{BUILDROOT}%{libdir}/man-db/libman{,db}-%{version}.so %{BUILDROOT}%{libdir}
44 rm -rf %{BUILDROOT}%{libdir}/man-db/
46 # Remove zsoelim man page which is not part of groff
47 rm -vf %{BUILDROOT}%{datadir}/man/man*/zsoelim.*
49 # Create cache directory.
50 mkdir -pv %{BUILDROOT}/var/cache/man
68 # This package also should be known as man.
74 # Update the database right now.
75 rm -rf /var/cache/man/*
77 systemctl -q enable man-db.timer
78 systemctl start man-db.timer
82 # Update the database right now.
83 rm -rf /var/cache/man/*
85 systemctl -q enable man-db.timer
86 systemctl start man-db.timer
90 systemctl stop man-db.timer
91 systemctl -q disable man-db.timer
95 package %{name}-debuginfo