]>
Commit | Line | Data |
---|---|---|
3191bb0d MT |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = compat-gdbm | |
7 | version = 1.8.3 | |
8 | release = 1 | |
9 | thisapp = gdbm-%{version} | |
10 | ||
11 | groups = Development/Tools | |
12 | url = http://www.gnu.org/software/gdbm/ | |
13 | license = GPLv2+ | |
14 | summary = The GDBM package contains the GNU Database Manager. | |
15 | ||
16 | description | |
17 | The GDBM package contains the GNU Database Manager. This is a disk file \ | |
18 | format database which stores key/data-pairs in single files. The actual \ | |
19 | data of any record being stored is indexed by a unique key, which can be \ | |
20 | retrieved in less time than if it was stored in a text file. | |
21 | end | |
22 | ||
23 | source_dl = http://ftp.gnu.org/gnu/gdbm/ | |
24 | ||
25 | build | |
26 | requires | |
27 | autoconf | |
28 | automake | |
29 | libtool | |
30 | end | |
31 | ||
32 | prepare_cmds | |
33 | libtoolize --force --copy | |
34 | aclocal | |
35 | autoconf | |
36 | ||
37 | # Don't use flock, because it doesn't work on NFS. | |
38 | # Use fcntl instead. | |
39 | echo "#undef HAVE_FLOCK" >> autoconf.h.in | |
40 | end | |
41 | ||
42 | PARALLELISMFLAGS = # Not supported. | |
43 | ||
44 | install | |
45 | make install install-compat \ | |
46 | prefix=%{BUILDROOT}%{prefix} \ | |
47 | libdir=%{BUILDROOT}%{libdir} \ | |
48 | includedir=%{BUILDROOT}%{includedir} \ | |
49 | mandir=%{BUILDROOT}%{mandir} \ | |
50 | infodir=%{BUILDROOT}%{infodir} | |
51 | ||
52 | mkdir -pv %{BUILDROOT}%{includedir}/gdbm | |
53 | ln -svf gdbm/gdbm.h %{BUILDROOT}%{includedir}/gdbm.h | |
54 | ||
55 | # Remove all man pages provided by gdbm-devel. | |
56 | rm -rfv %{BUILDROOT}%{mandir}/man3 | |
57 | end | |
58 | end | |
59 | ||
60 | packages | |
61 | package %{name} | |
62 | conflicts | |
63 | gdbm <= %{version} | |
64 | end | |
65 | end | |
66 | ||
67 | package %{name}-devel | |
68 | template DEVEL | |
69 | ||
70 | requires | |
71 | compat-gdbm = %{thisver} | |
72 | end | |
73 | ||
74 | conflicts | |
75 | gdbm-devel | |
76 | end | |
77 | end | |
78 | ||
79 | package %{name}-debuginfo | |
80 | template DEBUGINFO | |
81 | end | |
82 | end |