]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - db4/db4.nm
systemd: Remove udev rules for "predictable" network device names
[people/ms/ipfire-3.x.git] / db4 / db4.nm
CommitLineData
f6d9281d 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
f6d9281d
MT
4###############################################################################
5
f1e64edd 6name = db4
01a5ebcf
MT
7version_major = 4.8
8version_minor = 30
802ea3af 9version = %{version_major}.%{version_minor}
6208ca27 10release = 5
802ea3af 11epoch = 1
f1e64edd 12thisapp = db-%{version}
f6d9281d 13
802ea3af
MT
14maintainer = Michael Tremer <michael.tremer@ipfire.org>
15groups = System/Libraries
16url = http://www.oracle.com/technology/products/berkeley-db/
17license = Proprietary
18summary = Berkeley DB is a library that provides an embedded database.
f6d9281d 19
802ea3af 20description
18c2f386 21 Berkeley DB (BDB) is a computer software library that provides
f6d9281d 22 a high-performance embedded database.
802ea3af 23end
f6d9281d 24
18c2f386 25source_dl = http://download.oracle.com/berkeley-db/
bf2de166 26
802ea3af
MT
27build
28 requires
29 gcc-c++
30 end
f6d9281d 31
802ea3af
MT
32 build
33 cd %{DIR_APP}/build_unix
f6d9281d
MT
34 CC=gcc \
35 ../dist/configure \
db327fe8 36 %{configure_options} \
f6d9281d
MT
37 --enable-compat185 \
38 --enable-cxx \
39 --disable-static
40
db327fe8
MT
41 %{MACRO_FIX_LIBTOOL}
42
802ea3af
MT
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}
8654b9c3
MT
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
802ea3af
MT
59 end
60end
f6d9281d 61
802ea3af 62packages
8654b9c3 63 # /usr/lib64/libdb_cxx.so
f1e64edd 64
8654b9c3 65 package db4
1f9bc2f0 66
802ea3af 67 package db4-utils
18c2f386
SS
68 summary = Command line tools for managing Berkeley DB (version 4) databases.
69 description = %{summary}
70
71 files
8654b9c3 72 %{bindir}
18c2f386 73 end
802ea3af 74 end
1f9bc2f0 75
802ea3af 76 package db4-cxx
18c2f386
SS
77 summary = The Berkeley DB database library (version 4) for C++.
78 description = %{summary}
79
80 files
db327fe8 81 %{libdir}/libdb_cxx-%{version_major}.so
18c2f386 82 end
802ea3af 83 end
1f9bc2f0 84
8654b9c3
MT
85 package db4-devel
86 template DEVEL
87
88 # Overwrite because of epoch != 0.
89 requires = %{name}=%{epoch}:%{thisver}
90
6208ca27
MT
91 # You cannot install libdb-devel and db4-devel
92 # at the same time.
93 conflicts
94 libdb-devel
95 end
96
8654b9c3
MT
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
1f9bc2f0
MT
106 package %{name}-debuginfo
107 template DEBUGINFO
108 end
802ea3af 109end