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
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
20 provides embedded database support for both traditional and
21 client/server applications. Berkeley DB is used by many applications,
22 including Python and Perl, so this should be installed on all systems.
25 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
26 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
27 klient-serwer. Berkeley db jest u¿ywana wielu aplikacjach, w tym w
31 Summary: Command line tools for managing Berkeley DB databases
32 Summary(pl): Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
33 Group: Applications/Databases
34 Requires: %{name} = %{version}
38 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
39 provides embedded database support for both traditional and
40 client/server applications. Berkeley DB includes B+tree, Extended
41 Linear Hashing, Fixed and Variable-length record access methods,
42 transactions, locking, logging, shared memory caching and database
43 recovery. DB supports C, C++, Java and Perl APIs.
45 This package contains command line tools for managing Berkeley DB
48 %description utils -l pl
49 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
50 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
51 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
52 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
53 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
54 dla C, C++, Javy i Perla.
56 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
60 Summary: Berkeley database library for TCL
61 Summary(pl): Biblioteka baz danych Berkeley dla TCL
62 Group: Development/Languages/Tcl
67 Berkeley database library for TCL.
69 %description tcl -l pl
70 Biblioteka baz danych Berkeley dla TCL.
73 Summary: Berkeley database library for C++
74 Summary(pl): Biblioteka baz danych Berkeley dla C++
79 Berkeley database library for C++.
81 %description cxx -l pl
82 Biblioteka baz danych Berkeley dla C++.
85 Summary: Berkeley database library for Java
86 Summary(pl): Biblioteka baz danych Berkeley dla Javy
90 Berkeley database library for Java.
92 %description java -l pl
93 Biblioteka baz danych Berkeley dla Javy.
96 Summary: Header files for Berkeley database library
97 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
98 Group: Development/Libraries
99 Requires: %{name} = %{version}
104 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
105 provides embedded database support for both traditional and
106 client/server applications. Berkeley DB includes B+tree, Extended
107 Linear Hashing, Fixed and Variable-length record access methods,
108 transactions, locking, logging, shared memory caching and database
109 recovery. DB supports C, C++, Java and Perl APIs.
111 This package contains the header files, libraries, and documentation
112 for building programs which use Berkeley DB.
114 %description devel -l pl
115 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
116 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
117 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
118 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
119 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
120 dla C, C++, Javy i Perla.
122 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
123 programów u¿ywaj±cych Berkeley DB.
126 Summary: Static libraries for Berkeley database library
127 Summary(pl): Statyczne biblioteki Berkeley Database
128 Group: Development/Libraries
129 Requires: %{name}-devel = %{version}
130 Obsoletes: db4-static
131 Obsoletes: db3-static
134 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
135 provides embedded database support for both traditional and
136 client/server applications. Berkeley DB includes B+tree, Extended
137 Linear Hashing, Fixed and Variable-length record access methods,
138 transactions, locking, logging, shared memory caching and database
139 recovery. DB supports C, C++, Java and Perl APIs.
141 This package contains the static libraries for building programs which
144 %description static -l pl
145 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
146 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
147 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
148 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
149 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
150 dla C, C++, Javy i Perla.
152 Ten pakiet zawiera statyczne biblioteki do budowania programów
153 u¿ywaj±cych Berkeley DB.
164 cp -a build_unix build_unix.static
170 CFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates"
171 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates"
172 export CC CXX CFLAGS CXXFLAGS
175 --prefix=%{_prefix} \
182 # (temporarily?) disabled because of compilation errors:
185 %{__make} library_build
190 --prefix=%{_prefix} \
197 --with-tcl=/usr/lib \
198 %{?_with_java:--enable-java}
200 %{__make} library_build TCFLAGS='-I$(builddir) -I%{_includedir}'
203 rm -rf $RPM_BUILD_ROOT
204 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
208 %{__make} library_install \
209 prefix=$RPM_BUILD_ROOT%{_prefix}
213 %{__make} library_install \
214 prefix=$RPM_BUILD_ROOT%{_prefix} \
215 includedir=$RPM_BUILD_ROOT%{_includedir} \
216 LIB_INSTALL_FILE_LIST=""
218 (cd $RPM_BUILD_ROOT%{_libdir}
219 ln -sf libdb-4.1.so libdb4.so
220 ln -sf libdb-4.1.so libndbm.so
221 ln -sf libdb-4.1.la libdb.la
222 ln -sf libdb-4.1.la libdb4.la
223 ln -sf libdb-4.1.la libndbm.la
224 ln -sf libdb_tcl-4.1.la libdb_tcl.la
225 ln -sf libdb_cxx-4.1.la libdb_cxx.la
226 mv -f libdb.a libdb-4.1.a
227 ln -sf libdb-4.1.a libdb.a
228 ln -sf libdb-4.1.a libdb4.a
229 ln -sf libdb-4.1.a libndbm.a
230 mv -f libdb_cxx.a libdb_cxx-4.1.a
231 ln -sf libdb_cxx-4.1.a libdb_cxx.a
233 mv -f libdb-4.1.la libdb-4.1.la.tmp
234 mv -f libdb_cxx-4.1.la libdb_cxx-4.1.la.tmp
235 sed -e "s/old_library=''/old_library='libdb-4.1.a'/" libdb-4.1.la.tmp > libdb-4.1.la
236 sed -e "s/old_library=''/old_library='libdb_cxx-4.1.a'/" libdb_cxx-4.1.la.tmp > libdb_cxx-4.1.la
241 #rm -rf examples_java
242 #cp -a java/src/com/sleepycat/examples examples_java
245 rm -rf $RPM_BUILD_ROOT
247 %post -p /sbin/ldconfig
248 %postun -p /sbin/ldconfig
250 %post tcl -p /sbin/ldconfig
251 %postun tcl -p /sbin/ldconfig
253 %post cxx -p /sbin/ldconfig
254 %postun cxx -p /sbin/ldconfig
257 %defattr(644,root,root,755)
259 #%attr(755,root,root) /lib/libdb-*.so
260 %attr(755,root,root) %{_libdir}/libdb-*.so
263 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_bindir}/berkeley_db_svc
266 %attr(755,root,root) %{_bindir}/db*_archive
267 %attr(755,root,root) %{_bindir}/db*_checkpoint
268 %attr(755,root,root) %{_bindir}/db*_deadlock
269 %attr(755,root,root) %{_bindir}/db*_dump
270 #%attr(755,root,root) %{_bindir}/db*_dump185
271 %attr(755,root,root) %{_bindir}/db*_load
272 %attr(755,root,root) %{_bindir}/db*_printlog
273 %attr(755,root,root) %{_bindir}/db*_recover
274 %attr(755,root,root) %{_bindir}/db*_stat
275 %attr(755,root,root) %{_bindir}/db*_upgrade
276 %attr(755,root,root) %{_bindir}/db*_verify
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/libdb_cxx-*.so
282 %if %{?_with_java:1}%{!?_with_java:0}
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/libdb_java*.so
286 %attr(644,root,root) %{_libdir}/db.jar
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
294 %defattr(644,root,root,755)
295 %doc docs/{api*,ref,index.html,sleepycat,images} examples_c*
297 %{_libdir}/libndbm.la
298 %attr(755,root,root) %{_libdir}/libdb.so
299 %attr(755,root,root) %{_libdir}/libdb4.so
300 %attr(755,root,root) %{_libdir}/libndbm.so
301 %attr(755,root,root) %{_libdir}/libdb_tcl.so
302 %attr(755,root,root) %{_libdir}/libdb_cxx.so
306 %defattr(644,root,root,755)