]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - db4/db4.nm
Merge remote-tracking branch 'stevee/mesa'
[people/amarx/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 = 5
11 epoch = 1
12 thisapp = db-%{version}
13
14 maintainer = Michael Tremer <michael.tremer@ipfire.org>
15 groups = System/Libraries
16 url = http://www.oracle.com/technology/products/berkeley-db/
17 license = Proprietary
18 summary = Berkeley DB is a library that provides an embedded database.
19
20 description
21 Berkeley DB (BDB) is a computer software library that provides
22 a high-performance embedded database.
23 end
24
25 source_dl = http://download.oracle.com/berkeley-db/
26
27 build
28 requires
29 gcc-c++
30 end
31
32 build
33 cd %{DIR_APP}/build_unix
34 CC=gcc \
35 ../dist/configure \
36 %{configure_options} \
37 --enable-compat185 \
38 --enable-cxx \
39 --disable-static
40
41 %{MACRO_FIX_LIBTOOL}
42
43 make %{PARALLELISMFLAGS}
44 end
45
46 install
47 cd %{DIR_APP}/build_unix
48 make install DESTDIR=%{BUILDROOT} \
49 docdir=/usr/share/doc/%{thisapp}
50
51 # Remove unversioned libs.
52 rm -vf %{BUILDROOT}%{libdir}/libdb*-4.so
53
54 mkdir -pv %{BUILDROOT}%{includedir}/%{name}
55 mv -v %{BUILDROOT}%{includedir}/*.h %{BUILDROOT}%{includedir}/%{name}/
56 for i in db.h db_cxx.h db_185.h; do
57 ln -svf %{name}/${i} %{BUILDROOT}/%{includedir}
58 done
59 end
60 end
61
62 packages
63 # /usr/lib64/libdb_cxx.so
64
65 package db4
66
67 package db4-utils
68 summary = Command line tools for managing Berkeley DB (version 4) databases.
69 description = %{summary}
70
71 files
72 %{bindir}
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 db4-devel
86 template DEVEL
87
88 # Overwrite because of epoch != 0.
89 requires = %{name}=%{epoch}:%{thisver}
90
91 # You cannot install libdb-devel and db4-devel
92 # at the same time.
93 conflicts
94 libdb-devel
95 end
96
97 files
98 %{includedir}
99 %{libdir}/libdb.so
100 %{libdir}/libdb_cxx.so
101 end
102
103 #files += !%{libdir}/libdb-%{version_major}.so
104 end
105
106 package %{name}-debuginfo
107 template DEBUGINFO
108 end
109 end