3 # _with_java - build db-java (required for openoffice)
5 Summary: BSD database library for C
6 Summary(pl): Biblioteka C do obs³ugi baz Berkeley DB
12 # alternative site (sometimes working): http://www.berkeleydb.com/
13 Source0: http://www.sleepycat.com/update/snapshot/%{name}-%{version}.tar.gz
14 # Source0-md5: df71961002b552c0e72c6e4e358f27e1
15 Patch0: %{name}-o_direct.patch
16 Patch1: http://www.sleepycat.com/update/4.1.25/patch.4.1.25.1
17 URL: http://www.sleepycat.com/
18 BuildRequires: autoconf
20 %{?_with_java:BuildRequires: jdk}
21 BuildRequires: libstdc++-devel
22 BuildRequires: tcl-devel >= 8.3.2
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
28 provides embedded database support for both traditional and
29 client/server applications. Berkeley DB is used by many applications,
30 including Python and Perl, so this should be installed on all systems.
33 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
34 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
35 klient-serwer. Berkeley db jest u¿ywana w wielu aplikacjach, w tym w
39 Summary: Header files for Berkeley database library
40 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
41 Group: Development/Libraries
42 Requires: %{name} = %{version}
47 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
48 provides embedded database support for both traditional and
49 client/server applications. Berkeley DB includes B+tree, Extended
50 Linear Hashing, Fixed and Variable-length record access methods,
51 transactions, locking, logging, shared memory caching and database
52 recovery. DB supports C, C++, Java and Perl APIs.
54 This package contains the header files, libraries, and documentation
55 for building programs which use Berkeley DB.
57 %description devel -l pl
58 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
59 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
60 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
61 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
62 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
63 dla C, C++, Javy i Perla.
65 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
66 programów u¿ywaj±cych Berkeley DB.
69 Summary: Static libraries for Berkeley database library
70 Summary(pl): Statyczne biblioteki Berkeley Database
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}
77 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
78 provides embedded database support for both traditional and
79 client/server applications. Berkeley DB includes B+tree, Extended
80 Linear Hashing, Fixed and Variable-length record access methods,
81 transactions, locking, logging, shared memory caching and database
82 recovery. DB supports C, C++, Java and Perl APIs.
84 This package contains the static libraries for building programs which
87 %description static -l pl
88 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
89 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
90 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
91 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
92 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
93 dla C, C++, Javy i Perla.
95 Ten pakiet zawiera statyczne biblioteki do budowania programów
96 u¿ywaj±cych Berkeley DB.
99 Summary: Berkeley database library for C++
100 Summary(pl): Biblioteka baz danych Berkeley dla C++
105 Berkeley database library for C++.
107 %description cxx -l pl
108 Biblioteka baz danych Berkeley dla C++.
111 Summary: Berkeley database library for C++
112 Summary(pl): Biblioteka baz danych Berkeley dla C++
114 Requires: %{name}-cxx = %{version}
115 Obsoletes: %{name}-devel < 4.1.25-3
118 %description cxx-devel
119 Berkeley database library for C++.
121 %description cxx-devel -l pl
122 Biblioteka baz danych Berkeley dla C++.
125 Summary: Berkeley database library for Java
126 Summary(pl): Biblioteka baz danych Berkeley dla Javy
130 Berkeley database library for Java.
132 %description java -l pl
133 Biblioteka baz danych Berkeley dla Javy.
136 Summary: Berkeley database library for TCL
137 Summary(pl): Biblioteka baz danych Berkeley dla TCL
138 Group: Development/Languages/Tcl
143 Berkeley database library for TCL.
145 %description tcl -l pl
146 Biblioteka baz danych Berkeley dla TCL.
149 Summary: Berkeley database library for TCL
150 Summary(pl): Biblioteka baz danych Berkeley dla TCL
151 Group: Development/Languages/Tcl
153 Requires: %{name}-tcl = %{version}
154 Obsoletes: %{name}-devel < 4.1.25-3
157 %description tcl-devel
158 Berkeley database library for TCL.
160 %description tcl-devel -l pl
161 Biblioteka baz danych Berkeley dla TCL.
164 Summary: Command line tools for managing Berkeley DB databases
165 Summary(pl): Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
166 Group: Applications/Databases
167 Requires: %{name} = %{version}
171 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
172 provides embedded database support for both traditional and
173 client/server applications. Berkeley DB includes B+tree, Extended
174 Linear Hashing, Fixed and Variable-length record access methods,
175 transactions, locking, logging, shared memory caching and database
176 recovery. DB supports C, C++, Java and Perl APIs.
178 This package contains command line tools for managing Berkeley DB
181 %description utils -l pl
182 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
183 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
184 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
185 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
186 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
187 dla C, C++, Javy i Perla.
189 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
202 cp -a build_unix build_unix.static
208 CFLAGS="%{rpmcflags} -fno-implicit-templates"
209 CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
210 export CC CXX CFLAGS CXXFLAGS
213 --prefix=%{_prefix} \
220 # (temporarily?) disabled because of compilation errors:
223 %{__make} library_build
228 --prefix=%{_prefix} \
235 --with-tcl=/usr/lib \
236 %{?_with_java:--enable-java}
238 %{__make} library_build TCFLAGS='-I$(builddir) -I%{_includedir}'
241 rm -rf $RPM_BUILD_ROOT
242 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
246 %{__make} library_install \
247 prefix=$RPM_BUILD_ROOT%{_prefix}
251 %{__make} library_install \
252 prefix=$RPM_BUILD_ROOT%{_prefix} \
253 includedir=$RPM_BUILD_ROOT%{_includedir} \
254 LIB_INSTALL_FILE_LIST=""
256 (cd $RPM_BUILD_ROOT%{_libdir}
257 ln -sf libdb-4.1.so libdb4.so
258 ln -sf libdb-4.1.so libndbm.so
259 ln -sf libdb-4.1.la libdb.la
260 ln -sf libdb-4.1.la libdb4.la
261 ln -sf libdb-4.1.la libndbm.la
262 ln -sf libdb_tcl-4.1.la libdb_tcl.la
263 ln -sf libdb_cxx-4.1.la libdb_cxx.la
264 mv -f libdb.a libdb-4.1.a
265 ln -sf libdb-4.1.a libdb.a
266 ln -sf libdb-4.1.a libdb4.a
267 ln -sf libdb-4.1.a libndbm.a
268 mv -f libdb_cxx.a libdb_cxx-4.1.a
269 ln -sf libdb_cxx-4.1.a libdb_cxx.a
271 mv -f libdb-4.1.la libdb-4.1.la.tmp
272 mv -f libdb_cxx-4.1.la libdb_cxx-4.1.la.tmp
273 sed -e "s/old_library=''/old_library='libdb-4.1.a'/" libdb-4.1.la.tmp > libdb-4.1.la
274 sed -e "s/old_library=''/old_library='libdb_cxx-4.1.a'/" libdb_cxx-4.1.la.tmp > libdb_cxx-4.1.la
279 #rm -rf examples_java
280 #cp -a java/src/com/sleepycat/examples examples_java
283 rm -rf $RPM_BUILD_ROOT
285 %post -p /sbin/ldconfig
286 %postun -p /sbin/ldconfig
288 %post tcl -p /sbin/ldconfig
289 %postun tcl -p /sbin/ldconfig
291 %post cxx -p /sbin/ldconfig
292 %postun cxx -p /sbin/ldconfig
295 %defattr(644,root,root,755)
297 #%attr(755,root,root) /lib/libdb-*.so
298 %attr(755,root,root) %{_libdir}/libdb-*.so
301 %defattr(644,root,root,755)
302 %doc docs/{api*,ref,index.html,sleepycat,images} examples_c*
304 %{_includedir}/db_185.h
305 %{_libdir}/libdb-4.1.la
310 %{_libdir}/libndbm.la
311 %{_libdir}/libndbm.so
314 %defattr(644,root,root,755)
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_libdir}/libdb_cxx-*.so
322 %defattr(644,root,root,755)
323 %{_includedir}/cxx_common.h
324 %{_includedir}/cxx_except.h
325 %{_includedir}/db_cxx.h
326 %{_libdir}/libdb_cxx-4.1.la
327 %{_libdir}/libdb_cxx.la
328 %{_libdir}/libdb_cxx.so
330 %if %{?_with_java:1}%{!?_with_java:0}
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/libdb_java*.so
334 %attr(644,root,root) %{_libdir}/db.jar
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
342 %defattr(644,root,root,755)
343 %{_libdir}/libdb_tcl-4.1.la
344 %{_libdir}/libdb_tcl.la
345 %{_libdir}/libdb_tcl.so
348 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_bindir}/berkeley_db_svc
351 %attr(755,root,root) %{_bindir}/db*_archive
352 %attr(755,root,root) %{_bindir}/db*_checkpoint
353 %attr(755,root,root) %{_bindir}/db*_deadlock
354 %attr(755,root,root) %{_bindir}/db*_dump
355 #%attr(755,root,root) %{_bindir}/db*_dump185
356 %attr(755,root,root) %{_bindir}/db*_load
357 %attr(755,root,root) %{_bindir}/db*_printlog
358 %attr(755,root,root) %{_bindir}/db*_recover
359 %attr(755,root,root) %{_bindir}/db*_stat
360 %attr(755,root,root) %{_bindir}/db*_upgrade
361 %attr(755,root,root) %{_bindir}/db*_verify