1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 version = %{version_major}.%{version_minor}
12 thisapp = db-%{version}
14 maintainer = Michael Tremer <michael.tremer@ipfire.org>
15 groups = System/Libraries
16 url = http://www.oracle.com/technology/products/berkeley-db/
18 summary = Berkeley DB is a library that provides an embedded database.
21 Berkeley DB (BDB) is a computer software library that provides
22 a high-performance embedded database.
25 source_dl = http://download.oracle.com/berkeley-db/
33 cd %{DIR_APP}/build_unix
36 %{configure_options} \
43 make %{PARALLELISMFLAGS}
47 cd %{DIR_APP}/build_unix
48 make install DESTDIR=%{BUILDROOT} \
49 docdir=/usr/share/doc/%{thisapp}
51 # Remove unversioned libs.
52 rm -vf %{BUILDROOT}%{libdir}/libdb*-4.so
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}
63 # /usr/lib64/libdb_cxx.so
68 summary = Command line tools for managing Berkeley DB (version 4) databases.
69 description = %{summary}
77 summary = The Berkeley DB database library (version 4) for C++.
78 description = %{summary}
81 %{libdir}/libdb_cxx-%{version_major}.so
88 # Overwrite because of epoch != 0.
89 requires = %{name}=%{epoch}:%{thisver}
94 %{libdir}/libdb_cxx.so
97 #files += !%{libdir}/libdb-%{version_major}.so
100 package %{name}-debuginfo