]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = man-db |
7bded4b0 | 7 | version = 2.7.1 |
8d49a8dd | 8 | release = 3 |
91f5b076 | 9 | |
cb7dca59 | 10 | groups = Documentation |
1e308222 | 11 | url = http://savannah.nongnu.org/projects/man-db |
802ea3af MT |
12 | license = GPL |
13 | summary = man-db is an on-line manual database. | |
91f5b076 | 14 | |
802ea3af | 15 | description |
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 |
20 | end |
21 | ||
1e308222 | 22 | source_dl = http://download.savannah.gnu.org/releases/man-db/ |
fc1c8b95 | 23 | sources = %{thisapp}.tar.xz |
802ea3af MT |
24 | |
25 | build | |
26 | requires | |
802ea3af MT |
27 | gdbm-devel |
28 | groff | |
29 | less | |
7bded4b0 MT |
30 | libpipeline-devel >= 1.4.0 |
31 | systemd-devel | |
32 | zlib-devel | |
802ea3af MT |
33 | end |
34 | ||
35 | configure_options += \ | |
9eca7db9 | 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" \ |
802ea3af | 37 | --disable-setuid \ |
9eca7db9 | 38 | --with-browser=elinks |
91f5b076 | 39 | |
435e4304 | 40 | install_cmds |
9eca7db9 MT |
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/ | |
435e4304 | 45 | |
7bded4b0 MT |
46 | # Remove zsoelim man page which is not part of groff |
47 | rm -vf %{BUILDROOT}%{datadir}/man/man*/zsoelim.* | |
9eca7db9 MT |
48 | |
49 | # Create cache directory. | |
50 | mkdir -pv %{BUILDROOT}/var/cache/man | |
802ea3af MT |
51 | end |
52 | end | |
906e47eb | 53 | |
802ea3af MT |
54 | packages |
55 | package %{name} | |
cb7dca59 MT |
56 | groups += Base |
57 | ||
802ea3af MT |
58 | requires |
59 | groff | |
60 | less | |
435e4304 | 61 | xz |
802ea3af | 62 | end |
91f5b076 | 63 | |
825eefc9 SS |
64 | conflicts |
65 | systemd <= 204 | |
66 | end | |
67 | ||
802ea3af MT |
68 | # This package also should be known as man. |
69 | provides | |
70 | man | |
71 | end | |
9eca7db9 MT |
72 | |
73 | script posttransin | |
74 | # Update the database right now. | |
7bded4b0 MT |
75 | rm -rf /var/cache/man/* |
76 | ||
77 | systemctl -q enable man-db.timer | |
78 | systemctl start man-db.timer | |
9eca7db9 MT |
79 | end |
80 | ||
81 | script posttransup | |
82 | # Update the database right now. | |
7bded4b0 MT |
83 | rm -rf /var/cache/man/* |
84 | ||
85 | systemctl -q enable man-db.timer | |
86 | systemctl start man-db.timer | |
87 | end | |
88 | ||
89 | script preun | |
90 | systemctl stop man-db.timer | |
91 | systemctl -q disable man-db.timer | |
9eca7db9 | 92 | end |
802ea3af | 93 | end |
1f9bc2f0 MT |
94 | |
95 | package %{name}-debuginfo | |
96 | template DEBUGINFO | |
97 | end | |
802ea3af | 98 | end |