1 Summary: BSD database library for C
2 Summary(pl): Biblioteka C do obs³ugi baz Berkeley DB
8 # alternative site (sometimes working): http://www.berkeleydb.com/
9 Source0: http://www.sleepycat.com/update/snapshot/%{name}-%{version}.tar.gz
10 Patch0: %{name}-o_direct.patch
11 URL: http://www.sleepycat.com/
12 %{?_with_java:BuildRequires: jdk}
13 BuildRequires: gcc-c++
14 BuildRequires: tcl-devel >= 8.3.2
15 BuildRequires: libstdc++-devel
16 BuildRequires: kernel-headers
17 BuildRequires: autoconf
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
24 provides embedded database support for both traditional and
25 client/server applications. Berkeley DB is used by many applications,
26 including Python and Perl, so this should be installed on all systems.
29 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
30 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
31 klient-serwer. Berkeley db jest u¿ywana wielu aplikacjach, w tym w
35 Summary: Command line tools for managing Berkeley DB databases
36 Summary(pl): Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
37 Group: Applications/Databases
38 Requires: %{name} = %{version}
42 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
43 provides embedded database support for both traditional and
44 client/server applications. Berkeley DB includes B+tree, Extended
45 Linear Hashing, Fixed and Variable-length record access methods,
46 transactions, locking, logging, shared memory caching and database
47 recovery. DB supports C, C++, Java and Perl APIs.
49 This package contains command line tools for managing Berkeley DB
52 %description utils -l pl
53 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
54 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
55 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
56 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
57 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
58 dla C, C++, Javy i Perla.
60 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
64 Summary: Berkeley database library for TCL
65 Summary(pl): Biblioteka baz danych Berkeley dla TCL
66 Group: Development/Languages/Tcl
71 Berkeley database library for TCL.
73 %description tcl -l pl
74 Biblioteka baz danych Berkeley dla TCL.
77 Summary: Berkeley database library for C++
78 Summary(pl): Biblioteka baz danych Berkeley dla C++
83 Berkeley database library for C++.
85 %description cxx -l pl
86 Biblioteka baz danych Berkeley dla C++.
89 Summary: Berkeley database library for Java
90 Summary(pl): Biblioteka baz danych Berkeley dla Javy
94 Berkeley database library for Java.
96 %description java -l pl
97 Biblioteka baz danych Berkeley dla Javy.
100 Summary: Header files for Berkeley database library
101 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
102 Group: Development/Libraries
103 Requires: %{name} = %{version}
108 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
109 provides embedded database support for both traditional and
110 client/server applications. Berkeley DB includes B+tree, Extended
111 Linear Hashing, Fixed and Variable-length record access methods,
112 transactions, locking, logging, shared memory caching and database
113 recovery. DB supports C, C++, Java and Perl APIs.
115 This package contains the header files, libraries, and documentation
116 for building programs which use Berkeley DB.
118 %description devel -l pl
119 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
120 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
121 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
122 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
123 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
124 dla C, C++, Javy i Perla.
126 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
127 programów u¿ywaj±cych Berkeley DB.
130 Summary: Static libraries for Berkeley database library
131 Summary(pl): Statyczne biblioteki Berkeley Database
132 Group: Development/Libraries
133 Requires: %{name}-devel = %{version}
134 Obsoletes: db4-static
135 Obsoletes: db3-static
138 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
139 provides embedded database support for both traditional and
140 client/server applications. Berkeley DB includes B+tree, Extended
141 Linear Hashing, Fixed and Variable-length record access methods,
142 transactions, locking, logging, shared memory caching and database
143 recovery. DB supports C, C++, Java and Perl APIs.
145 This package contains the static libraries for building programs which
148 %description static -l pl
149 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
150 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
151 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
152 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
153 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
154 dla C, C++, Javy i Perla.
156 Ten pakiet zawiera statyczne biblioteki do budowania programów
157 u¿ywaj±cych Berkeley DB.
168 cp -a build_unix build_unix.static
174 CFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates"
175 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates"
176 export CC CXX CFLAGS CXXFLAGS
179 --prefix=%{_prefix} \
186 # (temporarily?) disabled because of compilation errors:
189 %{__make} library_build
194 --prefix=%{_prefix} \
201 --with-tcl=/usr/lib \
202 %{?_with_java:--enable-java}
204 %{__make} library_build TCFLAGS='-I$(builddir) -I%{_includedir}'
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
212 %{__make} library_install \
213 prefix=$RPM_BUILD_ROOT%{_prefix}
217 %{__make} library_install \
218 prefix=$RPM_BUILD_ROOT%{_prefix} \
219 includedir=$RPM_BUILD_ROOT%{_includedir} \
220 LIB_INSTALL_FILE_LIST=""
222 (cd $RPM_BUILD_ROOT%{_libdir}
223 ln -sf libdb-4.1.so libdb4.so
224 ln -sf libdb-4.1.so libndbm.so
225 ln -sf libdb-4.1.la libdb.la
226 ln -sf libdb-4.1.la libdb4.la
227 ln -sf libdb-4.1.la libndbm.la
228 ln -sf libdb_tcl-4.1.la libdb_tcl.la
229 ln -sf libdb_cxx-4.1.la libdb_cxx.la
230 mv -f libdb.a libdb-4.1.a
231 ln -sf libdb-4.1.a libdb.a
232 ln -sf libdb-4.1.a libdb4.a
233 ln -sf libdb-4.1.a libndbm.a
234 mv -f libdb_cxx.a libdb_cxx-4.1.a
235 ln -sf libdb_cxx-4.1.a libdb_cxx.a
237 mv -f libdb-4.1.la libdb-4.1.la.tmp
238 mv -f libdb_cxx-4.1.la libdb_cxx-4.1.la.tmp
239 sed -e "s/old_library=''/old_library='libdb-4.1.a'/" libdb-4.1.la.tmp > libdb-4.1.la
240 sed -e "s/old_library=''/old_library='libdb_cxx-4.1.a'/" libdb_cxx-4.1.la.tmp > libdb_cxx-4.1.la
245 #rm -rf examples_java
246 #cp -a java/src/com/sleepycat/examples examples_java
249 rm -rf $RPM_BUILD_ROOT
251 %post -p /sbin/ldconfig
252 %postun -p /sbin/ldconfig
254 %post tcl -p /sbin/ldconfig
255 %postun tcl -p /sbin/ldconfig
257 %post cxx -p /sbin/ldconfig
258 %postun cxx -p /sbin/ldconfig
261 %defattr(644,root,root,755)
263 #%attr(755,root,root) /lib/libdb-*.so
264 %attr(755,root,root) %{_libdir}/libdb-*.so
267 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_bindir}/berkeley_db_svc
270 %attr(755,root,root) %{_bindir}/db*_archive
271 %attr(755,root,root) %{_bindir}/db*_checkpoint
272 %attr(755,root,root) %{_bindir}/db*_deadlock
273 %attr(755,root,root) %{_bindir}/db*_dump
274 #%attr(755,root,root) %{_bindir}/db*_dump185
275 %attr(755,root,root) %{_bindir}/db*_load
276 %attr(755,root,root) %{_bindir}/db*_printlog
277 %attr(755,root,root) %{_bindir}/db*_recover
278 %attr(755,root,root) %{_bindir}/db*_stat
279 %attr(755,root,root) %{_bindir}/db*_upgrade
280 %attr(755,root,root) %{_bindir}/db*_verify
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/libdb_cxx-*.so
286 %if %{?_with_java:1}%{!?_with_java:0}
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/libdb_java*.so
290 %attr(644,root,root) %{_libdir}/db.jar
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
298 %defattr(644,root,root,755)
299 %doc docs/{api*,ref,index.html,sleepycat,images} examples_c*
301 %{_libdir}/libndbm.la
302 %attr(755,root,root) %{_libdir}/libdb.so
303 %attr(755,root,root) %{_libdir}/libdb4.so
304 %attr(755,root,root) %{_libdir}/libndbm.so
305 %attr(755,root,root) %{_libdir}/libdb_tcl.so
306 %attr(755,root,root) %{_libdir}/libdb_cxx.so
310 %defattr(644,root,root,755)