3 %bcond_with java # build db-java (required for openoffice)
4 %bcond_without tcl # don't build Tcl bindings
5 %bcond_with pmutex # use POSIX mutexes (only process-private with linuxthreads)
6 %bcond_with nptl # synonym for pmutex (NPTL provides full interface)
8 %{?with_nptl:%define with_pmutex 1}
9 Summary: Berkeley DB database library for C
10 Summary(pl): Biblioteka C do obs³ugi baz Berkeley DB
14 License: Sleepycat public license (GPL-like, see LICENSE)
16 # alternative site (sometimes working): http://www.berkeleydb.com/
17 #Source0Download: http://www.sleepycat.com/download/
18 Source0: http://www.sleepycat.com/update/snapshot/db-%{version}.tar.gz
19 # Source0-md5: cbc77517c9278cdb47613ce8cb55779f
20 Patch0: db-so-suffix.patch
21 Patch1: patch.4.2.52.1
22 Patch2: patch.4.2.52.2
23 URL: http://www.sleepycat.com/
24 BuildRequires: autoconf
25 BuildRequires: automake
27 %{?with_java:BuildRequires: jdk}
28 BuildRequires: libtool
29 BuildRequires: libstdc++-devel
30 BuildRequires: rpmbuild(macros) >= 1.164
31 BuildRequires: sed >= 4.0
32 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.0}
33 BuildRoot: %{tmpdir}/db-%{version}-root-%(id -u -n)
36 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
37 provides embedded database support for both traditional and
38 client/server applications. Berkeley DB is used by many applications,
39 including Python and Perl, so this should be installed on all systems.
42 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
43 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
44 klient-serwer. Berkeley db jest u¿ywana w wielu aplikacjach, w tym w
48 Summary: Header files for Berkeley database library
49 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
50 Group: Development/Libraries
51 Requires: db = %{epoch}:%{version}-%{release}
54 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
55 provides embedded database support for both traditional and
56 client/server applications. Berkeley DB includes B+tree, Extended
57 Linear Hashing, Fixed and Variable-length record access methods,
58 transactions, locking, logging, shared memory caching and database
59 recovery. DB supports C, C++, Java and Perl APIs.
61 This package contains the header files, libraries, and documentation
62 for building programs which use Berkeley DB.
64 %description devel -l pl
65 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
66 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
67 klient-serwer. Berkeley DB obs³uguje dostêp do bazy przez B-drzewa i
68 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
69 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
70 dla C, C++, Javy i Perla.
72 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
73 programów u¿ywaj±cych Berkeley DB.
76 Summary: Static libraries for Berkeley database library
77 Summary(pl): Statyczne biblioteki Berkeley Database
78 Group: Development/Libraries
79 Requires: db-devel = %{epoch}:%{version}-%{release}
82 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
83 provides embedded database support for both traditional and
84 client/server applications. Berkeley DB includes B+tree, Extended
85 Linear Hashing, Fixed and Variable-length record access methods,
86 transactions, locking, logging, shared memory caching and database
87 recovery. DB supports C, C++, Java and Perl APIs.
89 This package contains the static libraries for building programs which
92 %description static -l pl
93 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
94 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
95 klient-serwer. Berkeley DB obs³uguje dostêp do bazy przez B-drzewa i
96 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
97 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
98 dla C, C++, Javy i Perla.
100 Ten pakiet zawiera statyczne biblioteki do budowania programów
101 u¿ywaj±cych Berkeley DB.
104 Summary: Berkeley database library for C++
105 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: db-cxx = %{epoch}:%{version}-%{release}
119 Requires: db-devel = %{epoch}:%{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: db-cxx-devel = %{epoch}:%{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
148 Berkeley database library for Java.
150 %description java -l pl
151 Biblioteka baz danych Berkeley dla Javy.
154 Summary: Development files for db-java library
155 Summary(pl): Pliki programistyczne biblioteki db-java
156 Group: Development/Languages/Java
157 Requires: db-java = %{epoch}:%{version}-%{release}
158 Conflicts: db-devel < 4.1.25-3
160 %description java-devel
161 Development files for db-java library.
163 %description java-devel -l pl
164 Pliki programistyczne biblioteki db-java.
167 Summary: Berkeley database library for Tcl
168 Summary(pl): Biblioteka baz danych Berkeley dla Tcl
169 Group: Development/Languages/Tcl
173 Berkeley database library for Tcl.
175 %description tcl -l pl
176 Biblioteka baz danych Berkeley dla Tcl.
179 Summary: Development files for db-tcl library
180 Summary(pl): Pliki programistyczne biblioteki db-tcl
181 Group: Development/Languages/Tcl
183 Requires: db-tcl = %{epoch}:%{version}-%{release}
184 Conflicts: db-devel < 4.1.25-3
186 %description tcl-devel
187 Development files for db-tcl library.
189 %description tcl-devel -l pl
190 Pliki programistyczne biblioteki db-tcl.
193 Summary: Command line tools for managing Berkeley DB databases
194 Summary(pl): Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
195 Group: Applications/Databases
196 Requires: db = %{epoch}:%{version}-%{release}
199 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
200 provides embedded database support for both traditional and
201 client/server applications. Berkeley DB includes B+tree, Extended
202 Linear Hashing, Fixed and Variable-length record access methods,
203 transactions, locking, logging, shared memory caching and database
204 recovery. DB supports C, C++, Java and Perl APIs.
206 This package contains command line tools for managing Berkeley DB
209 %description utils -l pl
210 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
211 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
212 klient-serwer. Berkeley DB obs³uguje dostêp do bazy przez B-drzewa i
213 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
214 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
215 dla C, C++, Javy i Perla.
217 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
221 %setup -q -n db-%{version}
228 cp -f %{_datadir}/aclocal/libtool.m4 aclocal/libtool.ac
229 cp -f %{_datadir}/automake/config.sub .
230 cp -f %{_datadir}/libtool/ltmain.sh .
234 cp -a build_unix build_unix.static
240 CFLAGS="%{rpmcflags}"
241 CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
242 LDFLAGS="%{rpmldflags}"
243 export CC CXX CFLAGS CXXFLAGS LDFLAGS
250 --%{?with_pmutex:en}%{!?with_pmutex:dis}able-posixmutexes \
253 # (temporarily?) disabled because of compilation errors:
256 %{__make} library_build
261 --prefix=%{_prefix} \
262 --libdir=%{_libdir} \
265 --%{?with_pmutex:en}%{!?with_pmutex:dis}able-posixmutexes \
267 %{?with_tcl:--enable-tcl} \
268 %{?with_tcl:--with-tcl=/usr/lib} \
269 %{?with_java:--enable-java} \
273 %{__make} library_build \
274 TCFLAGS='-I$(builddir) -I%{_includedir}' \
275 LIBSO_LIBS="\$(LIBS)" \
276 LIBTSO_LIBS="\$(LIBS) -ltcl"
279 rm -rf $RPM_BUILD_ROOT
280 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir}}
282 install -d $RPM_BUILD_ROOT%{_javadir}
285 %{__make} -C build_unix.static library_install \
286 docdir=%{_docdir}/db-%{version}-docs \
287 DESTDIR=$RPM_BUILD_ROOT
289 %{__make} -C build_unix library_install \
290 docdir=%{_docdir}/db-%{version}-docs \
291 DESTDIR=$RPM_BUILD_ROOT \
292 LIB_INSTALL_FILE_LIST=""
294 sed -i "s/old_library=''/old_library='libdb-4.2.a'/" $RPM_BUILD_ROOT%{_libdir}/libdb-4.2.la
295 sed -i "s/old_library=''/old_library='libdb_cxx-4.2.a'/" $RPM_BUILD_ROOT%{_libdir}/libdb_cxx-4.2.la
297 rm -f examples_c*/tags
298 install -d $RPM_BUILD_ROOT%{_examplesdir}/db-%{version}
299 cp -rf examples_c/* $RPM_BUILD_ROOT%{_examplesdir}/db-%{version}
301 install -d $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version}
302 cp -rf examples_cxx/* $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version}
305 install -d $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version}
306 cp -rf examples_java/* $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version}
310 rm -rf $RPM_BUILD_ROOT
312 %post -p /sbin/ldconfig
313 %postun -p /sbin/ldconfig
315 %post tcl -p /sbin/ldconfig
316 %postun tcl -p /sbin/ldconfig
318 %post cxx -p /sbin/ldconfig
319 %postun cxx -p /sbin/ldconfig
322 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/libdb-4.2.so
325 %dir %{_docdir}/db-%{version}-docs
326 %{_docdir}/db-%{version}-docs/sleepycat
327 %{_docdir}/db-%{version}-docs/index.html
330 %defattr(644,root,root,755)
331 %{_libdir}/libdb-4.2.la
332 %{_libdir}/libdb-4.so
334 %{_includedir}/db_185.h
335 %{_docdir}/db-%{version}-docs/api_c
336 %{_docdir}/db-%{version}-docs/images
337 %{_docdir}/db-%{version}-docs/ref
338 %{_examplesdir}/db-%{version}
341 %defattr(644,root,root,755)
342 %{_libdir}/libdb-4.2.a
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_libdir}/libdb_cxx-4.2.so
349 %defattr(644,root,root,755)
350 %{_includedir}/db_cxx.h
351 %{_libdir}/libdb_cxx-4.2.la
352 %{_libdir}/libdb_cxx-4.so
353 %{_docdir}/db-%{version}-docs/api_cxx
354 %{_examplesdir}/db-cxx-%{version}
357 %defattr(644,root,root,755)
358 %{_libdir}/libdb_cxx-4.2.a
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_libdir}/libdb_java*.so
367 %defattr(644,root,root,755)
368 %{_libdir}/libdb_java-4.2.la
369 %{_libdir}/libdb_java.la
370 %{_libdir}/libdb_java.so
371 %{_docdir}/db-%{version}-docs/java
372 %{_examplesdir}/db-java-%{version}
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/libdb_tcl-4.2.so
381 %defattr(644,root,root,755)
382 %{_libdir}/libdb_tcl-4.2.la
383 %{_libdir}/libdb_tcl.so
384 %{_docdir}/db-%{version}-docs/api_tcl
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{_bindir}/berkeley_db_svc
390 %attr(755,root,root) %{_bindir}/db*_archive
391 %attr(755,root,root) %{_bindir}/db*_checkpoint
392 %attr(755,root,root) %{_bindir}/db*_deadlock
393 %attr(755,root,root) %{_bindir}/db*_dump
394 #%attr(755,root,root) %{_bindir}/db*_dump185
395 %attr(755,root,root) %{_bindir}/db*_load
396 %attr(755,root,root) %{_bindir}/db*_printlog
397 %attr(755,root,root) %{_bindir}/db*_recover
398 %attr(755,root,root) %{_bindir}/db*_stat
399 %attr(755,root,root) %{_bindir}/db*_upgrade
400 %attr(755,root,root) %{_bindir}/db*_verify
401 %{_docdir}/db-%{version}-docs/utility