]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - man-db/man-db.nm
kernel: udpate to 5.2
[ipfire-3.x.git] / man-db / man-db.nm
index 2d6ad4cc43ee05db373de698f821a3b0d51a8fc3..590349e9ab63a6aef40cbf851462bbd82eebb0d0 100644 (file)
@@ -4,11 +4,11 @@
 ###############################################################################
 
 name       = man-db
-version    = 2.6.0.2
-release    = 2
+version    = 2.7.1
+release    = 3
 
-groups     = Base Documentation
-url        = http://bzr.savannah.gnu.org/r/man-db/
+groups     = Documentation
+url        = http://savannah.nongnu.org/projects/man-db
 license    = GPL
 summary    = man-db is an on-line manual database.
 
@@ -19,51 +19,80 @@ description
        used by several popular GNU/Linux distributions.
 end
 
-source_dl  =
+source_dl  = http://download.savannah.gnu.org/releases/man-db/
+sources    = %{thisapp}.tar.xz
 
 build
        requires
-               db4-devel
                gdbm-devel
                groff
                less
-               libpipeline-devel
+               libpipeline-devel >= 1.4.0
+               systemd-devel
+               zlib-devel
        end
 
        configure_options += \
-               --libexecdir=/usr/lib \
-               --sysconfdir=/etc \
+               --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" \
                --disable-setuid \
-               --with-browser=/usr/bin/lynx \
-               --with-col=/usr/bin/col \
-               --with-vgrind=/usr/bin/vgrind \
-               --with-grap=/usr/bin/grap
-
-       prepare_cmds
-               sed -i -e '\%\t/usr/man%d' -e '\%\t/usr/local/man%d' \
-                       src/man_db.conf.in
-       end
-end
+               --with-browser=elinks
+
+       install_cmds
+               # Move the libs to /usr/lib, but don't keep the symlinks so nothing
+               # will link against libman and libmandb as they are not stable.
+               mv -v %{BUILDROOT}%{libdir}/man-db/libman{,db}-%{version}.so %{BUILDROOT}%{libdir}
+               rm -rf %{BUILDROOT}%{libdir}/man-db/
 
-# This package installs a lib in /usr/lib/man-db and links all binaries
-# against it. Seems as if the ABI is not stable, yet and so we need to
-# accept that.
-quality-agent
-       whitelist_rpath
-               /usr/lib/man-db
+               # Remove zsoelim man page which is not part of groff
+               rm -vf %{BUILDROOT}%{datadir}/man/man*/zsoelim.*
+
+               # Create cache directory.
+               mkdir -pv %{BUILDROOT}/var/cache/man
        end
 end
 
 packages
        package %{name}
+               groups += Base
+
                requires
                        groff
                        less
+                       xz
+               end
+
+               conflicts
+                       systemd <= 204
                end
 
                # This package also should be known as man.
                provides
                        man
                end
+
+               script posttransin
+                       # Update the database right now.
+                       rm -rf /var/cache/man/*
+
+                       systemctl -q enable man-db.timer
+                       systemctl start man-db.timer
+               end
+
+               script posttransup
+                       # Update the database right now.
+                       rm -rf /var/cache/man/*
+
+                       systemctl -q enable man-db.timer
+                       systemctl start man-db.timer
+               end
+
+               script preun
+                       systemctl stop man-db.timer
+                       systemctl -q disable man-db.timer
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
        end
 end