]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - db4/db4.nm
db4: Make package work on x86_64.
[people/ms/ipfire-3.x.git] / db4 / db4.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = db4
7 version_major = 4.8
8 version_minor = 30
9 version = %{version_major}.%{version_minor}
10 release = 3
11 epoch = 1
12 thisapp = db-%{version}
13
14 # Never update this to major version 5.
15
16 maintainer = Michael Tremer <michael.tremer@ipfire.org>
17 groups = System/Libraries
18 url = http://www.oracle.com/technology/products/berkeley-db/
19 license = Proprietary
20 summary = Berkeley DB is a library that provides an embedded database.
21
22 description
23 Berkeley DB (BDB) is a computer software library that provides
24 a high-performance embedded database.
25 end
26
27 source_dl = http://download.oracle.com/berkeley-db/
28
29 build
30 requires
31 gcc-c++
32 end
33
34 build
35 cd %{DIR_APP}/build_unix
36 CC=gcc \
37 ../dist/configure \
38 %{configure_options} \
39 --enable-compat185 \
40 --enable-cxx \
41 --disable-static
42
43 %{MACRO_FIX_LIBTOOL}
44
45 make %{PARALLELISMFLAGS}
46 end
47
48 install
49 cd %{DIR_APP}/build_unix
50 make install DESTDIR=%{BUILDROOT} \
51 docdir=/usr/share/doc/%{thisapp}
52 end
53 end
54
55 packages
56 package db4
57
58 package db4-devel
59 template DEVEL
60
61 # Overwrite because of epoch != 0.
62 requires = %{name}=%{epoch}:%{thisver}
63
64 files += !%{libdir}/libdb-%{version_major}.so
65 end
66
67 package db4-utils
68 summary = Command line tools for managing Berkeley DB (version 4) databases.
69 description = %{summary}
70
71 files
72 /usr/bin
73 end
74 end
75
76 package db4-cxx
77 summary = The Berkeley DB database library (version 4) for C++.
78 description = %{summary}
79
80 files
81 %{libdir}/libdb_cxx-%{version_major}.so
82 end
83 end
84
85 package %{name}-debuginfo
86 template DEBUGINFO
87 end
88 end