1 Summary: BSD database library for C
9 URL: http://www.sleepycat.com
10 Source0: http://www.sleepycat.com/update/%{version}/db-%{version}.tar.gz
11 #Patch0: http://www.sleepycat.com/update/%{version}/patch.3.0.55.1
12 Patch0: %{name}-align.patch
13 Patch1: %{name}-linux-threads.patch
14 Patch2: %{name}-shmget.patch
15 Patch3: %{name}-static.patch
16 PreReq: /sbin/ldconfig
17 BuildRequires: db1-static
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
22 provides embedded database support for both traditional and
23 client/server applications. Berkeley DB is used by many applications,
24 including Python and Perl, so this should be installed on all systems.
27 Summary: Command line tools for managing Berkeley DB databases.
28 Group: Applications/Databases
29 Group(pl): Aplikacje/Bazy danych
30 Requires: %{name} = %{version}
33 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
34 provides embedded database support for both traditional and
35 client/server applications. Berkeley DB includes B+tree, Extended
36 Linear Hashing, Fixed and Variable-length record access methods,
37 transactions, locking, logging, shared memory caching and database
38 recovery. DB supports C, C++, Java and Perl APIs.
40 This package contains command line tools for managing Berkeley DB
44 Summary: Development libraries and header files for Berkeley database library
45 Group: Development/Libraries
46 Group(fr): Development/Librairies
47 Group(pl): Programowanie/Biblioteki
48 Requires: %{name} = %{version}
51 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
52 provides embedded database support for both traditional and
53 client/server applications. Berkeley DB includes B+tree, Extended
54 Linear Hashing, Fixed and Variable-length record access methods,
55 transactions, locking, logging, shared memory caching and database
56 recovery. DB supports C, C++, Java and Perl APIs.
58 This package contains the header files, libraries, and documentation
59 for building programs which use Berkeley DB.
62 Summary: Static libraries for Berkeley database library
63 Group: Development/Libraries
64 Group(fr): Development/Librairies
65 Group(pl): Programowanie/Biblioteki
66 Requires: %{name}-devel = %{version}
69 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
70 provides embedded database support for both traditional and
71 client/server applications. Berkeley DB includes B+tree, Extended
72 Linear Hashing, Fixed and Variable-length record access methods,
73 transactions, locking, logging, shared memory caching and database
74 recovery. DB supports C, C++, Java and Perl APIs.
76 This package contains the static libraries for building programs which
80 %setup -q -n db-%{version}
88 cp -a build_unix build_unix.static
93 CFLAGS="$RPM_OPT_FLAGS" \
94 CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-implicit-templates" \
104 %{__make} static db_dump185
109 CFLAGS="$RPM_OPT_FLAGS" \
110 CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-implicit-templates" \
112 --prefix=%{_prefix} \
120 %{__make} TCFLAGS='-I$(builddir) -I%{_includedir}'
123 rm -rf $RPM_BUILD_ROOT
124 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
128 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} \
132 install db_dump185 $RPM_BUILD_ROOT%{_bindir}
137 prefix=$RPM_BUILD_ROOT%{_prefix} \
138 includedir=$RPM_BUILD_ROOT%{_includedir}/db3 \
141 install_dynamic_cxx \
145 mv -f $RPM_BUILD_ROOT%{_libdir}/libdb-*.so $RPM_BUILD_ROOT/lib
146 ln -s ../../lib/libdb-3.1.so $RPM_BUILD_ROOT%{_libdir}/libdb3.so
147 ln -s libdb-3.1.a $RPM_BUILD_ROOT%{_libdir}/libdb3.a
148 rm -f $RPM_BUILD_ROOT%{_libdir}/libdb.so
150 for i in $RPM_BUILD_ROOT%{_bindir}/db_* ; do
151 mv -f $i `echo $i | sed -e 's,/db_,/db3_,'`
154 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/*
155 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so
157 gzip -9nf ../LICENSE ../README
160 rm -rf $RPM_BUILD_ROOT
162 %post -p /sbin/ldconfig
163 %postun -p /sbin/ldconfig
166 %defattr(644,root,root,755)
167 %doc LICENSE.gz README.gz
168 %attr(755,root,root) /lib/libdb-*.so
171 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
174 %attr(755,root,root) %{_bindir}/berkeley_db_svc
175 %attr(755,root,root) %{_bindir}/db*_archive
176 %attr(755,root,root) %{_bindir}/db*_checkpoint
177 %attr(755,root,root) %{_bindir}/db*_deadlock
178 %attr(755,root,root) %{_bindir}/db*_dump
179 %attr(755,root,root) %{_bindir}/db*_dump185
180 %attr(755,root,root) %{_bindir}/db*_load
181 %attr(755,root,root) %{_bindir}/db*_printlog
182 %attr(755,root,root) %{_bindir}/db*_recover
183 %attr(755,root,root) %{_bindir}/db*_stat
184 %attr(755,root,root) %{_bindir}/db*_upgrade
185 %attr(755,root,root) %{_bindir}/db*_verify
188 %defattr(644,root,root,755)
189 %doc docs/{api*,ref,index.html,sleepycat,images} examples*
190 %attr(755,root,root) %{_libdir}/libdb*.la
191 %attr(755,root,root) %{_libdir}/libdb3.so
192 %attr(755,root,root) %{_libdir}/libdb_tcl.so
193 %attr(755,root,root) %{_libdir}/libdb_cxx*.so
197 %defattr(644,root,root,755)