3 %bcond_with java # build db-java (required for openoffice)
4 %bcond_without tcl # don't build tcl bindings
6 Summary: Berkeley DB database library for C
7 Summary(pl): Biblioteka C do obs³ugi baz Berkeley DB
11 License: Sleepycat public license (GPL-like, see LICENSE)
13 # alternative site (sometimes working): http://www.berkeleydb.com/
14 #Source0Download: http://www.sleepycat.com/download/
15 Source0: http://www.sleepycat.com/update/snapshot/%{name}-%{version}.tar.gz
16 # Source0-md5: cbc77517c9278cdb47613ce8cb55779f
17 URL: http://www.sleepycat.com/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libtool
23 # but requires some Java VM - gij is not sufficient
24 %{?with_java:BuildRequires: jdk}
25 BuildRequires: libstdc++-devel
26 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.0}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
32 provides embedded database support for both traditional and
33 client/server applications. Berkeley DB is used by many applications,
34 including Python and Perl, so this should be installed on all systems.
37 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
38 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
39 klient-serwer. Berkeley db jest u¿ywana w wielu aplikacjach, w tym w
43 Summary: Header files for Berkeley database library
44 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
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.
61 %description devel -l pl
62 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
63 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
64 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
65 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
66 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
67 dla C, C++, Javy i Perla.
69 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
70 programów u¿ywaj±cych Berkeley DB.
73 Summary: Static libraries for Berkeley database library
74 Summary(pl): Statyczne biblioteki Berkeley Database
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{version}-%{release}
81 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
82 provides embedded database support for both traditional and
83 client/server applications. Berkeley DB includes B+tree, Extended
84 Linear Hashing, Fixed and Variable-length record access methods,
85 transactions, locking, logging, shared memory caching and database
86 recovery. DB supports C, C++, Java and Perl APIs.
88 This package contains the static libraries for building programs which
91 %description static -l pl
92 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
93 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
94 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
95 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
96 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
97 dla C, C++, Javy i Perla.
99 Ten pakiet zawiera statyczne biblioteki do budowania programów
100 u¿ywaj±cych Berkeley DB.
103 Summary: Berkeley database library for C++
104 Summary(pl): Biblioteka baz danych Berkeley dla C++
109 Berkeley database library for C++.
111 %description cxx -l pl
112 Biblioteka baz danych Berkeley dla C++.
115 Summary: Header files for db-cxx library
116 Summary(pl): Pliki nag³ówkowe biblioteki db-cxx
117 Group: Development/Libraries
118 Requires: %{name}-cxx = %{version}-%{release}
119 Requires: %{name}-devel = %{version}-%{release}
120 Conflicts: db-devel < 4.1.25-3
122 %description cxx-devel
123 Header files for db-cxx library.
125 %description cxx-devel -l pl
126 Pliki nag³ówkowe biblioteki db-cxx.
129 Summary: Static version of db-cxx library
130 Summary(pl): Statyczna wersja biblioteki db-cxx
131 Group: Development/Libraries
132 Requires: %{name}-cxx-devel = %{version}-%{release}
133 Conflicts: db-static < 4.2.50-1
135 %description cxx-static
136 Static version of db-cxx library.
138 %description cxx-static -l pl
139 Statyczna wersja biblioteki db-cxx.
142 Summary: Berkeley database library for Java
143 Summary(pl): Biblioteka baz danych Berkeley dla Javy
147 Berkeley database library for Java.
149 %description java -l pl
150 Biblioteka baz danych Berkeley dla Javy.
153 Summary: Berkeley database library for TCL
154 Summary(pl): Biblioteka baz danych Berkeley dla TCL
155 Group: Development/Languages/Tcl
160 Berkeley database library for TCL.
162 %description tcl -l pl
163 Biblioteka baz danych Berkeley dla TCL.
166 Summary: Development files for db-tcl library
167 Summary(pl): Pliki programistyczne biblioteki db-tcl
168 Group: Development/Languages/Tcl
170 Requires: %{name}-tcl = %{version}-%{release}
171 Conflicts: db-devel < 4.1.25-3
173 %description tcl-devel
174 Development files for db-tcl library.
176 %description tcl-devel -l pl
177 Pliki programistyczne biblioteki db-tcl.
180 Summary: Command line tools for managing Berkeley DB databases
181 Summary(pl): Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
182 Group: Applications/Databases
183 Requires: %{name} = %{version}-%{release}
187 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
188 provides embedded database support for both traditional and
189 client/server applications. Berkeley DB includes B+tree, Extended
190 Linear Hashing, Fixed and Variable-length record access methods,
191 transactions, locking, logging, shared memory caching and database
192 recovery. DB supports C, C++, Java and Perl APIs.
194 This package contains command line tools for managing Berkeley DB
197 %description utils -l pl
198 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
199 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
200 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
201 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
202 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
203 dla C, C++, Javy i Perla.
205 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
214 cp /usr/share/automake/config.sub .
215 install %{_datadir}/aclocal/libtool.m4 aclocal/libtool.ac
219 cp -a build_unix build_unix.static
225 CFLAGS="%{rpmcflags}"
226 CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
227 export CC CXX CFLAGS CXXFLAGS
236 # (temporarily?) disabled because of compilation errors:
239 %{__make} library_build
244 --prefix=%{_prefix} \
245 --libdir=%{_libdir} \
249 %{?with_tcl:--enable-tcl} \
250 %{?with_tcl:--with-tcl=/usr/lib} \
251 %{?with_java:--enable-java} \
255 %{__make} library_build \
256 TCFLAGS='-I$(builddir) -I%{_includedir}'
259 rm -rf $RPM_BUILD_ROOT
260 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
262 %{__make} -C build_unix.static library_install \
263 docdir=%{_docdir}/%{name}-%{version}-docs \
264 DESTDIR=$RPM_BUILD_ROOT
266 %{__make} -C build_unix library_install \
267 docdir=%{_docdir}/%{name}-%{version}-docs \
268 DESTDIR=$RPM_BUILD_ROOT \
269 LIB_INSTALL_FILE_LIST=""
271 cd $RPM_BUILD_ROOT%{_libdir}
272 ln -sf libdb-4.2.so libdb4.so
273 ln -sf libdb-4.2.so libndbm.so
274 ln -sf libdb-4.2.la libdb.la
275 ln -sf libdb-4.2.la libdb4.la
276 ln -sf libdb-4.2.la libndbm.la
278 ln -sf libdb_tcl-4.2.la libdb_tcl.la
280 ln -sf libdb_cxx-4.2.la libdb_cxx.la
281 mv -f libdb.a libdb-4.2.a
282 ln -sf libdb-4.2.a libdb.a
283 ln -sf libdb-4.2.a libdb4.a
284 ln -sf libdb-4.2.a libndbm.a
285 mv -f libdb_cxx.a libdb_cxx-4.2.a
286 ln -sf libdb_cxx-4.2.a libdb_cxx.a
288 mv -f libdb-4.2.la libdb-4.2.la.tmp
289 mv -f libdb_cxx-4.2.la libdb_cxx-4.2.la.tmp
290 sed -e "s/old_library=''/old_library='libdb-4.2.a'/" libdb-4.2.la.tmp > libdb-4.2.la
291 sed -e "s/old_library=''/old_library='libdb_cxx-4.2.a'/" libdb_cxx-4.2.la.tmp > libdb_cxx-4.2.la
295 rm -f examples_c*/tags
296 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
297 cp -rf examples_c/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
299 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-cxx-%{version}
300 cp -rf examples_cxx/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-cxx-%{version}
303 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-java-%{version}
304 cp -rf examples_java/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-java-%{version}
308 rm -rf $RPM_BUILD_ROOT
310 %post -p /sbin/ldconfig
311 %postun -p /sbin/ldconfig
313 %post tcl -p /sbin/ldconfig
314 %postun tcl -p /sbin/ldconfig
316 %post cxx -p /sbin/ldconfig
317 %postun cxx -p /sbin/ldconfig
320 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_libdir}/libdb-4.2.so
323 %dir %{_docdir}/%{name}-%{version}-docs
324 %{_docdir}/%{name}-%{version}-docs/sleepycat
325 %{_docdir}/%{name}-%{version}-docs/index.html
328 %defattr(644,root,root,755)
329 %{_libdir}/libdb-4.2.la
330 %{_libdir}/libdb-4.so
335 %{_libdir}/libndbm.la
336 %{_libdir}/libndbm.so
338 %{_includedir}/db_185.h
339 %{_docdir}/%{name}-%{version}-docs/api_c
340 %{_docdir}/%{name}-%{version}-docs/images
341 %{_docdir}/%{name}-%{version}-docs/ref
342 %{_examplesdir}/%{name}-%{version}
345 %defattr(644,root,root,755)
346 %{_libdir}/libdb-4.2.a
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/libdb_cxx-4.2.so
356 %defattr(644,root,root,755)
357 %{_includedir}/db_cxx.h
358 %{_libdir}/libdb_cxx-4.2.la
359 %{_libdir}/libdb_cxx-4.so
360 %{_libdir}/libdb_cxx.la
361 %{_libdir}/libdb_cxx.so
362 %{_docdir}/%{name}-%{version}-docs/api_cxx
363 %{_examplesdir}/%{name}-cxx-%{version}
366 %defattr(644,root,root,755)
367 %{_libdir}/libdb_cxx-4.2.a
368 %{_libdir}/libdb_cxx.a
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_libdir}/libdb_java*.so
375 %{_docdir}/%{name}-%{version}-docs/java
376 %{_examplesdir}/%{name}-java-%{version}
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_libdir}/libdb_tcl-4.2.so
385 %defattr(644,root,root,755)
386 %{_libdir}/libdb_tcl-4.2.la
387 %{_libdir}/libdb_tcl.la
388 %{_libdir}/libdb_tcl.so
389 %{_docdir}/%{name}-%{version}-docs/api_tcl
393 %defattr(644,root,root,755)
394 %attr(755,root,root) %{_bindir}/berkeley_db_svc
395 %attr(755,root,root) %{_bindir}/db*_archive
396 %attr(755,root,root) %{_bindir}/db*_checkpoint
397 %attr(755,root,root) %{_bindir}/db*_deadlock
398 %attr(755,root,root) %{_bindir}/db*_dump
399 #%attr(755,root,root) %{_bindir}/db*_dump185
400 %attr(755,root,root) %{_bindir}/db*_load
401 %attr(755,root,root) %{_bindir}/db*_printlog
402 %attr(755,root,root) %{_bindir}/db*_recover
403 %attr(755,root,root) %{_bindir}/db*_stat
404 %attr(755,root,root) %{_bindir}/db*_upgrade
405 %attr(755,root,root) %{_bindir}/db*_verify
406 %{_docdir}/%{name}-%{version}-docs/utility