2 # _with java build db-java (required for openoffice)
3 Summary: BSD database library for C
4 Summary(pl): Biblioteka C do obs³ugi baz Berkeley DB
10 # alternative site (sometimes working): http://www.berkeleydb.com/
11 Source0: http://www.sleepycat.com/update/snapshot/%{name}-%{version}.tar.gz
12 Patch0: %{name}-o_direct.patch
13 Patch1: http://www.sleepycat.com/update/4.1.25/patch.4.1.25.1
14 URL: http://www.sleepycat.com/
15 BuildRequires: autoconf
17 %{?_with_java:BuildRequires: jdk}
18 BuildRequires: libstdc++-devel
19 BuildRequires: tcl-devel >= 8.3.2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
25 provides embedded database support for both traditional and
26 client/server applications. Berkeley DB is used by many applications,
27 including Python and Perl, so this should be installed on all systems.
30 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
31 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
32 klient-serwer. Berkeley db jest u¿ywana wielu aplikacjach, w tym w
36 Summary: Command line tools for managing Berkeley DB databases
37 Summary(pl): Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
38 Group: Applications/Databases
39 Requires: %{name} = %{version}
43 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
44 provides embedded database support for both traditional and
45 client/server applications. Berkeley DB includes B+tree, Extended
46 Linear Hashing, Fixed and Variable-length record access methods,
47 transactions, locking, logging, shared memory caching and database
48 recovery. DB supports C, C++, Java and Perl APIs.
50 This package contains command line tools for managing Berkeley DB
53 %description utils -l pl
54 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
55 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
56 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
57 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
58 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
59 dla C, C++, Javy i Perla.
61 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
65 Summary: Berkeley database library for TCL
66 Summary(pl): Biblioteka baz danych Berkeley dla TCL
67 Group: Development/Languages/Tcl
72 Berkeley database library for TCL.
74 %description tcl -l pl
75 Biblioteka baz danych Berkeley dla TCL.
78 Summary: Berkeley database library for C++
79 Summary(pl): Biblioteka baz danych Berkeley dla C++
84 Berkeley database library for C++.
86 %description cxx -l pl
87 Biblioteka baz danych Berkeley dla C++.
90 Summary: Berkeley database library for Java
91 Summary(pl): Biblioteka baz danych Berkeley dla Javy
95 Berkeley database library for Java.
97 %description java -l pl
98 Biblioteka baz danych Berkeley dla Javy.
101 Summary: Header files for Berkeley database library
102 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
103 Group: Development/Libraries
104 Requires: %{name} = %{version}
109 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
110 provides embedded database support for both traditional and
111 client/server applications. Berkeley DB includes B+tree, Extended
112 Linear Hashing, Fixed and Variable-length record access methods,
113 transactions, locking, logging, shared memory caching and database
114 recovery. DB supports C, C++, Java and Perl APIs.
116 This package contains the header files, libraries, and documentation
117 for building programs which use Berkeley DB.
119 %description devel -l pl
120 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
121 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
122 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
123 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
124 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
125 dla C, C++, Javy i Perla.
127 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
128 programów u¿ywaj±cych Berkeley DB.
131 Summary: Static libraries for Berkeley database library
132 Summary(pl): Statyczne biblioteki Berkeley Database
133 Group: Development/Libraries
134 Requires: %{name}-devel = %{version}
135 Obsoletes: db4-static
136 Obsoletes: db3-static
139 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
140 provides embedded database support for both traditional and
141 client/server applications. Berkeley DB includes B+tree, Extended
142 Linear Hashing, Fixed and Variable-length record access methods,
143 transactions, locking, logging, shared memory caching and database
144 recovery. DB supports C, C++, Java and Perl APIs.
146 This package contains the static libraries for building programs which
149 %description static -l pl
150 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
151 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
152 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
153 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
154 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
155 dla C, C++, Javy i Perla.
157 Ten pakiet zawiera statyczne biblioteki do budowania programów
158 u¿ywaj±cych Berkeley DB.
170 cp -a build_unix build_unix.static
176 CFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates"
177 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates"
178 export CC CXX CFLAGS CXXFLAGS
181 --prefix=%{_prefix} \
188 # (temporarily?) disabled because of compilation errors:
191 %{__make} library_build
196 --prefix=%{_prefix} \
203 --with-tcl=/usr/lib \
204 %{?_with_java:--enable-java}
206 %{__make} library_build TCFLAGS='-I$(builddir) -I%{_includedir}'
209 rm -rf $RPM_BUILD_ROOT
210 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
214 %{__make} library_install \
215 prefix=$RPM_BUILD_ROOT%{_prefix}
219 %{__make} library_install \
220 prefix=$RPM_BUILD_ROOT%{_prefix} \
221 includedir=$RPM_BUILD_ROOT%{_includedir} \
222 LIB_INSTALL_FILE_LIST=""
224 (cd $RPM_BUILD_ROOT%{_libdir}
225 ln -sf libdb-4.1.so libdb4.so
226 ln -sf libdb-4.1.so libndbm.so
227 ln -sf libdb-4.1.la libdb.la
228 ln -sf libdb-4.1.la libdb4.la
229 ln -sf libdb-4.1.la libndbm.la
230 ln -sf libdb_tcl-4.1.la libdb_tcl.la
231 ln -sf libdb_cxx-4.1.la libdb_cxx.la
232 mv -f libdb.a libdb-4.1.a
233 ln -sf libdb-4.1.a libdb.a
234 ln -sf libdb-4.1.a libdb4.a
235 ln -sf libdb-4.1.a libndbm.a
236 mv -f libdb_cxx.a libdb_cxx-4.1.a
237 ln -sf libdb_cxx-4.1.a libdb_cxx.a
239 mv -f libdb-4.1.la libdb-4.1.la.tmp
240 mv -f libdb_cxx-4.1.la libdb_cxx-4.1.la.tmp
241 sed -e "s/old_library=''/old_library='libdb-4.1.a'/" libdb-4.1.la.tmp > libdb-4.1.la
242 sed -e "s/old_library=''/old_library='libdb_cxx-4.1.a'/" libdb_cxx-4.1.la.tmp > libdb_cxx-4.1.la
247 #rm -rf examples_java
248 #cp -a java/src/com/sleepycat/examples examples_java
251 rm -rf $RPM_BUILD_ROOT
253 %post -p /sbin/ldconfig
254 %postun -p /sbin/ldconfig
256 %post tcl -p /sbin/ldconfig
257 %postun tcl -p /sbin/ldconfig
259 %post cxx -p /sbin/ldconfig
260 %postun cxx -p /sbin/ldconfig
263 %defattr(644,root,root,755)
265 #%attr(755,root,root) /lib/libdb-*.so
266 %attr(755,root,root) %{_libdir}/libdb-*.so
269 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_bindir}/berkeley_db_svc
272 %attr(755,root,root) %{_bindir}/db*_archive
273 %attr(755,root,root) %{_bindir}/db*_checkpoint
274 %attr(755,root,root) %{_bindir}/db*_deadlock
275 %attr(755,root,root) %{_bindir}/db*_dump
276 #%attr(755,root,root) %{_bindir}/db*_dump185
277 %attr(755,root,root) %{_bindir}/db*_load
278 %attr(755,root,root) %{_bindir}/db*_printlog
279 %attr(755,root,root) %{_bindir}/db*_recover
280 %attr(755,root,root) %{_bindir}/db*_stat
281 %attr(755,root,root) %{_bindir}/db*_upgrade
282 %attr(755,root,root) %{_bindir}/db*_verify
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_libdir}/libdb_cxx-*.so
288 %if %{?_with_java:1}%{!?_with_java:0}
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libdb_java*.so
292 %attr(644,root,root) %{_libdir}/db.jar
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
300 %defattr(644,root,root,755)
301 %doc docs/{api*,ref,index.html,sleepycat,images} examples_c*
303 %{_libdir}/libndbm.la
304 %attr(755,root,root) %{_libdir}/libdb.so
305 %attr(755,root,root) %{_libdir}/libdb4.so
306 %attr(755,root,root) %{_libdir}/libndbm.so
307 %attr(755,root,root) %{_libdir}/libdb_tcl.so
308 %attr(755,root,root) %{_libdir}/libdb_cxx.so
312 %defattr(644,root,root,755)