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 wielu aplikacjach, w tym w
39 Summary: Command line tools for managing Berkeley DB databases
40 Summary(pl): Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
41 Group: Applications/Databases
42 Requires: %{name} = %{version}
46 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
47 provides embedded database support for both traditional and
48 client/server applications. Berkeley DB includes B+tree, Extended
49 Linear Hashing, Fixed and Variable-length record access methods,
50 transactions, locking, logging, shared memory caching and database
51 recovery. DB supports C, C++, Java and Perl APIs.
53 This package contains command line tools for managing Berkeley DB
56 %description utils -l pl
57 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
58 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
59 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
60 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
61 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
62 dla C, C++, Javy i Perla.
64 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
68 Summary: Berkeley database library for TCL
69 Summary(pl): Biblioteka baz danych Berkeley dla TCL
70 Group: Development/Languages/Tcl
75 Berkeley database library for TCL.
77 %description tcl -l pl
78 Biblioteka baz danych Berkeley dla TCL.
81 Summary: Berkeley database library for C++
82 Summary(pl): Biblioteka baz danych Berkeley dla C++
87 Berkeley database library for C++.
89 %description cxx -l pl
90 Biblioteka baz danych Berkeley dla C++.
93 Summary: Berkeley database library for Java
94 Summary(pl): Biblioteka baz danych Berkeley dla Javy
98 Berkeley database library for Java.
100 %description java -l pl
101 Biblioteka baz danych Berkeley dla Javy.
104 Summary: Header files for Berkeley database library
105 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
106 Group: Development/Libraries
107 Requires: %{name} = %{version}
108 Requires: %{name}-cxx = %{version}
109 Requires: %{name}-tcl = %{version}
114 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
115 provides embedded database support for both traditional and
116 client/server applications. Berkeley DB includes B+tree, Extended
117 Linear Hashing, Fixed and Variable-length record access methods,
118 transactions, locking, logging, shared memory caching and database
119 recovery. DB supports C, C++, Java and Perl APIs.
121 This package contains the header files, libraries, and documentation
122 for building programs which use Berkeley DB.
124 %description devel -l pl
125 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
126 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
127 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
128 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
129 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
130 dla C, C++, Javy i Perla.
132 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
133 programów u¿ywaj±cych Berkeley DB.
136 Summary: Static libraries for Berkeley database library
137 Summary(pl): Statyczne biblioteki Berkeley Database
138 Group: Development/Libraries
139 Requires: %{name}-devel = %{version}
140 Obsoletes: db4-static
141 Obsoletes: db3-static
144 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
145 provides embedded database support for both traditional and
146 client/server applications. Berkeley DB includes B+tree, Extended
147 Linear Hashing, Fixed and Variable-length record access methods,
148 transactions, locking, logging, shared memory caching and database
149 recovery. DB supports C, C++, Java and Perl APIs.
151 This package contains the static libraries for building programs which
154 %description static -l pl
155 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
156 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
157 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
158 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
159 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
160 dla C, C++, Javy i Perla.
162 Ten pakiet zawiera statyczne biblioteki do budowania programów
163 u¿ywaj±cych Berkeley DB.
175 cp -a build_unix build_unix.static
181 CFLAGS="%{rpmcflags} -fno-implicit-templates"
182 CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
183 export CC CXX CFLAGS CXXFLAGS
186 --prefix=%{_prefix} \
193 # (temporarily?) disabled because of compilation errors:
196 %{__make} library_build
201 --prefix=%{_prefix} \
208 --with-tcl=/usr/lib \
209 %{?_with_java:--enable-java}
211 %{__make} library_build TCFLAGS='-I$(builddir) -I%{_includedir}'
214 rm -rf $RPM_BUILD_ROOT
215 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
219 %{__make} library_install \
220 prefix=$RPM_BUILD_ROOT%{_prefix}
224 %{__make} library_install \
225 prefix=$RPM_BUILD_ROOT%{_prefix} \
226 includedir=$RPM_BUILD_ROOT%{_includedir} \
227 LIB_INSTALL_FILE_LIST=""
229 (cd $RPM_BUILD_ROOT%{_libdir}
230 ln -sf libdb-4.1.so libdb4.so
231 ln -sf libdb-4.1.so libndbm.so
232 ln -sf libdb-4.1.la libdb.la
233 ln -sf libdb-4.1.la libdb4.la
234 ln -sf libdb-4.1.la libndbm.la
235 ln -sf libdb_tcl-4.1.la libdb_tcl.la
236 ln -sf libdb_cxx-4.1.la libdb_cxx.la
237 mv -f libdb.a libdb-4.1.a
238 ln -sf libdb-4.1.a libdb.a
239 ln -sf libdb-4.1.a libdb4.a
240 ln -sf libdb-4.1.a libndbm.a
241 mv -f libdb_cxx.a libdb_cxx-4.1.a
242 ln -sf libdb_cxx-4.1.a libdb_cxx.a
244 mv -f libdb-4.1.la libdb-4.1.la.tmp
245 mv -f libdb_cxx-4.1.la libdb_cxx-4.1.la.tmp
246 sed -e "s/old_library=''/old_library='libdb-4.1.a'/" libdb-4.1.la.tmp > libdb-4.1.la
247 sed -e "s/old_library=''/old_library='libdb_cxx-4.1.a'/" libdb_cxx-4.1.la.tmp > libdb_cxx-4.1.la
252 #rm -rf examples_java
253 #cp -a java/src/com/sleepycat/examples examples_java
256 rm -rf $RPM_BUILD_ROOT
258 %post -p /sbin/ldconfig
259 %postun -p /sbin/ldconfig
261 %post tcl -p /sbin/ldconfig
262 %postun tcl -p /sbin/ldconfig
264 %post cxx -p /sbin/ldconfig
265 %postun cxx -p /sbin/ldconfig
268 %defattr(644,root,root,755)
270 #%attr(755,root,root) /lib/libdb-*.so
271 %attr(755,root,root) %{_libdir}/libdb-*.so
274 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_bindir}/berkeley_db_svc
277 %attr(755,root,root) %{_bindir}/db*_archive
278 %attr(755,root,root) %{_bindir}/db*_checkpoint
279 %attr(755,root,root) %{_bindir}/db*_deadlock
280 %attr(755,root,root) %{_bindir}/db*_dump
281 #%attr(755,root,root) %{_bindir}/db*_dump185
282 %attr(755,root,root) %{_bindir}/db*_load
283 %attr(755,root,root) %{_bindir}/db*_printlog
284 %attr(755,root,root) %{_bindir}/db*_recover
285 %attr(755,root,root) %{_bindir}/db*_stat
286 %attr(755,root,root) %{_bindir}/db*_upgrade
287 %attr(755,root,root) %{_bindir}/db*_verify
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libdb_cxx-*.so
293 %if %{?_with_java:1}%{!?_with_java:0}
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/libdb_java*.so
297 %attr(644,root,root) %{_libdir}/db.jar
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
305 %defattr(644,root,root,755)
306 %doc docs/{api*,ref,index.html,sleepycat,images} examples_c*
308 %{_libdir}/libndbm.la
309 %attr(755,root,root) %{_libdir}/libdb.so
310 %attr(755,root,root) %{_libdir}/libdb4.so
311 %attr(755,root,root) %{_libdir}/libndbm.so
312 %attr(755,root,root) %{_libdir}/libdb_tcl.so
313 %attr(755,root,root) %{_libdir}/libdb_cxx.so
317 %defattr(644,root,root,755)