]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - libdb/libdb.nm
dosfstools: Update to 3.0.26.
[people/ms/ipfire-3.x.git] / libdb / libdb.nm
CommitLineData
ab6c9f35
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = libdb
7version_major = 5
8version_minor = 2
9version_patch = 36
10version = %{version_major}.%{version_minor}.%{version_patch}
6208ca27 11release = 3
ab6c9f35
MT
12thisapp = db-%{version}
13
14soversion = %{version_major}.%{version_minor}
15
16maintainer = Michael Tremer <michael.tremer@ipfire.org>
17groups = System/Libraries
18url = http://www.oracle.com/technology/products/berkeley-db/
19license = Proprietary
20summary = Berkeley DB is a library that provides an embedded database.
21
22description
23 Berkeley DB (BDB) is a computer software library that provides
24 a high-performance embedded database.
25end
26
27source_dl = http://download.oracle.com/berkeley-db/
28
29build
30 requires
31 chrpath
32 gcc-c++
33 libtool
34 perl
35 end
36
37 CFLAGS += -fno-strict-aliasing
38
39 DIR_APP = %{DIR_SRC}/%{thisapp}/dist/dist-tls
40
41 prepare_cmds
42 mkdir %{DIR_APP} && cd %{DIR_APP}
43 ln -s ../configure .
44 end
45
46 MACRO_FIX_LIBTOOL
47 # Remove libtool predep_objects and postdep_objects wonkiness so that
48 # building without -nostdlib doesn't include them twice. Because we
49 # already link with g++, weird stuff happens if you don't let the
50 # compiler handle this.
51 perl -pi -e 's/^predep_objects=".*$/predep_objects=""/' libtool
52 perl -pi -e 's/^postdep_objects=".*$/postdep_objects=""/' libtool
53 perl -pi -e 's/-shared -nostdlib/-shared/' libtool
54 end
55
56 configure_options += \
57 -C \
58 --enable-compat185 \
59 --enable-cxx \
60 --enable-sql \
61 --disable-static \
62 --disable-rpath
63
64 install_cmds
65 # Remove RPATH in all binaries.
66 for i in %{BUILDROOT}%{bindir}/*; do
67 chrpath --delete ${i}
68 done
69
70 # Remove documentation which is very big.
867e9a49 71 rm -rf %{BUILDROOT}%{prefix}/docs
ab6c9f35
MT
72
73 # Remove unversioned libs.
74 rm -vf %{BUILDROOT}%{libdir}/libdb*-%{version_major}.so
75
76 mkdir -pv %{BUILDROOT}%{includedir}/%{name}
77 mv -v %{BUILDROOT}%{includedir}/*.h %{BUILDROOT}%{includedir}/%{name}/
78 for i in db.h db_cxx.h db_185.h; do
79 ln -svf %{name}/${i} %{BUILDROOT}/%{includedir}
80 done
81 end
82end
83
84packages
85 package %{name}
86
87 package %{name}-devel
88 template DEVEL
89
6208ca27
MT
90 # You cannot install libdb-devel and db4-devel
91 # at the same time.
92 conflicts
93 db4-devel
94 end
95
ab6c9f35
MT
96 files += !%{libdir}/libdb-%{soversion}.so
97 files += !%{libdir}/libdb_sql-%{soversion}.so
98 end
99
100 package %{name}-utils
101 summary = Command line tools for managing Berkeley DB (version 4) databases.
102 description = %{summary}
103
104 files
105 /usr/bin
106 end
107 end
108
109 package %{name}-cxx
110 summary = The Berkeley DB database library (version 4) for C++.
111 description = %{summary}
112
113 files
114 %{libdir}/libdb_cxx-%{soversion}.so
115 end
116 end
117
118 package %{name}-debuginfo
119 template DEBUGINFO
120 end
121end