3 %bcond_with java # build db-java (required for openoffice)
4 %bcond_without tcl # don't build tcl bindings
5 %bcond_with nptl # enable posix mutexes
7 Summary: Berkeley DB database library for C
8 Summary(pl): Biblioteka C do obs³ugi baz Berkeley DB
13 License: Sleepycat public license (GPL-like, see LICENSE)
15 # alternative site (sometimes working): http://www.berkeleydb.com/
16 #Source0Download: http://www.sleepycat.com/download/
17 Source0: http://www.sleepycat.com/update/snapshot/%{name}-%{version}.tar.gz
18 # Source0-md5: cbc77517c9278cdb47613ce8cb55779f
19 URL: http://www.sleepycat.com/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: libtool
25 # but requires some Java VM - gij is not sufficient
26 %{?with_java:BuildRequires: jdk}
27 BuildRequires: libstdc++-devel
28 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.0}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 is used by many applications,
36 including Python and Perl, so this should be installed on all systems.
39 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
40 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
41 klient-serwer. Berkeley db jest u¿ywana w wielu aplikacjach, w tym w
45 Summary: Header files for Berkeley database library
46 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
47 Group: Development/Libraries
48 Requires: %{name} = %{epoch}:%{version}-%{release}
53 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
54 provides embedded database support for both traditional and
55 client/server applications. Berkeley DB includes B+tree, Extended
56 Linear Hashing, Fixed and Variable-length record access methods,
57 transactions, locking, logging, shared memory caching and database
58 recovery. DB supports C, C++, Java and Perl APIs.
60 This package contains the header files, libraries, and documentation
61 for building programs which use Berkeley DB.
63 %description devel -l pl
64 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
65 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
66 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
67 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
68 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
69 dla C, C++, Javy i Perla.
71 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
72 programów u¿ywaj±cych Berkeley DB.
75 Summary: Static libraries for Berkeley database library
76 Summary(pl): Statyczne biblioteki Berkeley Database
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
83 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
84 provides embedded database support for both traditional and
85 client/server applications. Berkeley DB includes B+tree, Extended
86 Linear Hashing, Fixed and Variable-length record access methods,
87 transactions, locking, logging, shared memory caching and database
88 recovery. DB supports C, C++, Java and Perl APIs.
90 This package contains the static libraries for building programs which
93 %description static -l pl
94 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
95 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
96 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
97 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
98 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
99 dla C, C++, Javy i Perla.
101 Ten pakiet zawiera statyczne biblioteki do budowania programów
102 u¿ywaj±cych Berkeley DB.
105 Summary: Berkeley database library for C++
106 Summary(pl): Biblioteka baz danych Berkeley dla C++
111 Berkeley database library for C++.
113 %description cxx -l pl
114 Biblioteka baz danych Berkeley dla C++.
117 Summary: Header files for db-cxx library
118 Summary(pl): Pliki nag³ówkowe biblioteki db-cxx
119 Group: Development/Libraries
120 Requires: %{name}-cxx = %{epoch}:%{version}-%{release}
121 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
122 Conflicts: db-devel < 4.1.25-3
124 %description cxx-devel
125 Header files for db-cxx library.
127 %description cxx-devel -l pl
128 Pliki nag³ówkowe biblioteki db-cxx.
131 Summary: Static version of db-cxx library
132 Summary(pl): Statyczna wersja biblioteki db-cxx
133 Group: Development/Libraries
134 Requires: %{name}-cxx-devel = %{epoch}:%{version}-%{release}
135 Conflicts: db-static < 4.2.50-1
137 %description cxx-static
138 Static version of db-cxx library.
140 %description cxx-static -l pl
141 Statyczna wersja biblioteki db-cxx.
144 Summary: Berkeley database library for Java
145 Summary(pl): Biblioteka baz danych Berkeley dla Javy
149 Berkeley database library for Java.
151 %description java -l pl
152 Biblioteka baz danych Berkeley dla Javy.
155 Summary: Berkeley database library for TCL
156 Summary(pl): Biblioteka baz danych Berkeley dla TCL
157 Group: Development/Languages/Tcl
162 Berkeley database library for TCL.
164 %description tcl -l pl
165 Biblioteka baz danych Berkeley dla TCL.
168 Summary: Development files for db-tcl library
169 Summary(pl): Pliki programistyczne biblioteki db-tcl
170 Group: Development/Languages/Tcl
172 Requires: %{name}-tcl = %{epoch}:%{version}-%{release}
173 Conflicts: db-devel < 4.1.25-3
175 %description tcl-devel
176 Development files for db-tcl library.
178 %description tcl-devel -l pl
179 Pliki programistyczne biblioteki db-tcl.
182 Summary: Command line tools for managing Berkeley DB databases
183 Summary(pl): Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
184 Group: Applications/Databases
185 Requires: %{name} = %{epoch}:%{version}-%{release}
189 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
190 provides embedded database support for both traditional and
191 client/server applications. Berkeley DB includes B+tree, Extended
192 Linear Hashing, Fixed and Variable-length record access methods,
193 transactions, locking, logging, shared memory caching and database
194 recovery. DB supports C, C++, Java and Perl APIs.
196 This package contains command line tools for managing Berkeley DB
199 %description utils -l pl
200 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
201 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
202 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
203 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
204 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
205 dla C, C++, Javy i Perla.
207 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
216 cp /usr/share/automake/config.sub .
217 install %{_datadir}/aclocal/libtool.m4 aclocal/libtool.ac
221 cp -a build_unix build_unix.static
227 CFLAGS="%{rpmcflags}"
228 CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
229 LDFLAGS="%{rpmldflags} %{?with_nptl:-lpthread}"
230 export CC CXX CFLAGS CXXFLAGS LDFLAGS
237 %{?with_nptl:--enable-posixmutexes} \
240 # (temporarily?) disabled because of compilation errors:
243 %{__make} library_build
248 --prefix=%{_prefix} \
249 --libdir=%{_libdir} \
252 %{?with_nptl:--enable-posixmutexes} \
254 %{?with_tcl:--enable-tcl} \
255 %{?with_tcl:--with-tcl=/usr/lib} \
256 %{?with_java:--enable-java} \
260 %{__make} library_build \
261 TCFLAGS='-I$(builddir) -I%{_includedir}'
264 rm -rf $RPM_BUILD_ROOT
265 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
267 %{__make} -C build_unix.static library_install \
268 docdir=%{_docdir}/%{name}-%{version}-docs \
269 DESTDIR=$RPM_BUILD_ROOT
271 %{__make} -C build_unix library_install \
272 docdir=%{_docdir}/%{name}-%{version}-docs \
273 DESTDIR=$RPM_BUILD_ROOT \
274 LIB_INSTALL_FILE_LIST=""
276 cd $RPM_BUILD_ROOT%{_libdir}
277 ln -sf libdb-4.2.so libdb4.so
278 ln -sf libdb-4.2.so libndbm.so
279 ln -sf libdb-4.2.la libdb.la
280 ln -sf libdb-4.2.la libdb4.la
281 ln -sf libdb-4.2.la libndbm.la
283 ln -sf libdb_tcl-4.2.la libdb_tcl.la
285 ln -sf libdb_cxx-4.2.la libdb_cxx.la
286 mv -f libdb.a libdb-4.2.a
287 ln -sf libdb-4.2.a libdb.a
288 ln -sf libdb-4.2.a libdb4.a
289 ln -sf libdb-4.2.a libndbm.a
290 mv -f libdb_cxx.a libdb_cxx-4.2.a
291 ln -sf libdb_cxx-4.2.a libdb_cxx.a
293 mv -f libdb-4.2.la libdb-4.2.la.tmp
294 mv -f libdb_cxx-4.2.la libdb_cxx-4.2.la.tmp
295 sed -e "s/old_library=''/old_library='libdb-4.2.a'/" libdb-4.2.la.tmp > libdb-4.2.la
296 sed -e "s/old_library=''/old_library='libdb_cxx-4.2.a'/" libdb_cxx-4.2.la.tmp > libdb_cxx-4.2.la
300 rm -f examples_c*/tags
301 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
302 cp -rf examples_c/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
304 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-cxx-%{version}
305 cp -rf examples_cxx/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-cxx-%{version}
308 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-java-%{version}
309 cp -rf examples_java/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-java-%{version}
313 rm -rf $RPM_BUILD_ROOT
315 %post -p /sbin/ldconfig
316 %postun -p /sbin/ldconfig
318 %post tcl -p /sbin/ldconfig
319 %postun tcl -p /sbin/ldconfig
321 %post cxx -p /sbin/ldconfig
322 %postun cxx -p /sbin/ldconfig
325 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_libdir}/libdb-4.2.so
328 %dir %{_docdir}/%{name}-%{version}-docs
329 %{_docdir}/%{name}-%{version}-docs/sleepycat
330 %{_docdir}/%{name}-%{version}-docs/index.html
333 %defattr(644,root,root,755)
334 %{_libdir}/libdb-4.2.la
335 %{_libdir}/libdb-4.so
340 %{_libdir}/libndbm.la
341 %{_libdir}/libndbm.so
343 %{_includedir}/db_185.h
344 %{_docdir}/%{name}-%{version}-docs/api_c
345 %{_docdir}/%{name}-%{version}-docs/images
346 %{_docdir}/%{name}-%{version}-docs/ref
347 %{_examplesdir}/%{name}-%{version}
350 %defattr(644,root,root,755)
351 %{_libdir}/libdb-4.2.a
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/libdb_cxx-4.2.so
361 %defattr(644,root,root,755)
362 %{_includedir}/db_cxx.h
363 %{_libdir}/libdb_cxx-4.2.la
364 %{_libdir}/libdb_cxx-4.so
365 %{_libdir}/libdb_cxx.la
366 %{_libdir}/libdb_cxx.so
367 %{_docdir}/%{name}-%{version}-docs/api_cxx
368 %{_examplesdir}/%{name}-cxx-%{version}
371 %defattr(644,root,root,755)
372 %{_libdir}/libdb_cxx-4.2.a
373 %{_libdir}/libdb_cxx.a
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/libdb_java*.so
380 %{_docdir}/%{name}-%{version}-docs/java
381 %{_examplesdir}/%{name}-java-%{version}
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/libdb_tcl-4.2.so
390 %defattr(644,root,root,755)
391 %{_libdir}/libdb_tcl-4.2.la
392 %{_libdir}/libdb_tcl.la
393 %{_libdir}/libdb_tcl.so
394 %{_docdir}/%{name}-%{version}-docs/api_tcl
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_bindir}/berkeley_db_svc
400 %attr(755,root,root) %{_bindir}/db*_archive
401 %attr(755,root,root) %{_bindir}/db*_checkpoint
402 %attr(755,root,root) %{_bindir}/db*_deadlock
403 %attr(755,root,root) %{_bindir}/db*_dump
404 #%attr(755,root,root) %{_bindir}/db*_dump185
405 %attr(755,root,root) %{_bindir}/db*_load
406 %attr(755,root,root) %{_bindir}/db*_printlog
407 %attr(755,root,root) %{_bindir}/db*_recover
408 %attr(755,root,root) %{_bindir}/db*_stat
409 %attr(755,root,root) %{_bindir}/db*_upgrade
410 %attr(755,root,root) %{_bindir}/db*_verify
411 %{_docdir}/%{name}-%{version}-docs/utility