1 Summary: BSD database library for C
9 URL: http://www.sleepycat.com
10 Source0: http://www.sleepycat.com/update/%{version}/db-%{version}.tar.gz
11 #Patch0: http://www.sleepycat.com/update/%{version}/patch.3.0.55.1
12 Patch0: %{name}-align.patch
13 Patch1: %{name}-linux-threads.patch
14 Patch2: %{name}-shmget.patch
15 Patch3: %{name}-static.patch
16 Patch4: http://www.sleepycat.com/update/3.1.14/patch.3.1.14.1
17 PreReq: /sbin/ldconfig
18 BuildRequires: db1-static
19 BuildRequires: tcl-devel
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 Summary: Command line tools for managing Berkeley DB databases.
30 Group: Applications/Databases
31 Group(pl): Aplikacje/Bazy danych
32 Requires: %{name} = %{version}
35 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
36 provides embedded database support for both traditional and
37 client/server applications. Berkeley DB includes B+tree, Extended
38 Linear Hashing, Fixed and Variable-length record access methods,
39 transactions, locking, logging, shared memory caching and database
40 recovery. DB supports C, C++, Java and Perl APIs.
42 This package contains command line tools for managing Berkeley DB
46 Summary: Berkeley database library for TCL
47 Group: Development/Languages/Tcl
48 Group(pl): Programowanie/Jêzyki/Tcl
49 Requires: %{name} = %{version}
52 Berkeley database library for TCL.
55 Summary: Development libraries and header files for Berkeley database library
56 Group: Development/Libraries
57 Group(fr): Development/Librairies
58 Group(pl): Programowanie/Biblioteki
59 Requires: %{name} = %{version}
62 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
63 provides embedded database support for both traditional and
64 client/server applications. Berkeley DB includes B+tree, Extended
65 Linear Hashing, Fixed and Variable-length record access methods,
66 transactions, locking, logging, shared memory caching and database
67 recovery. DB supports C, C++, Java and Perl APIs.
69 This package contains the header files, libraries, and documentation
70 for building programs which use Berkeley DB.
73 Summary: Static libraries for Berkeley database library
74 Group: Development/Libraries
75 Group(fr): Development/Librairies
76 Group(pl): Programowanie/Biblioteki
77 Requires: %{name}-devel = %{version}
80 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
81 provides embedded database support for both traditional and
82 client/server applications. Berkeley DB includes B+tree, Extended
83 Linear Hashing, Fixed and Variable-length record access methods,
84 transactions, locking, logging, shared memory caching and database
85 recovery. DB supports C, C++, Java and Perl APIs.
87 This package contains the static libraries for building programs which
91 %setup -q -n db-%{version}
100 cp -a build_unix build_unix.static
105 CFLAGS="$RPM_OPT_FLAGS" \
106 CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-implicit-templates" \
108 --prefix=%{_prefix} \
109 --with-tcl=%{_libdir} \
117 %{__make} static db_dump185
122 CFLAGS="$RPM_OPT_FLAGS" \
123 CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-implicit-templates" \
125 --prefix=%{_prefix} \
133 %{__make} TCFLAGS='-I$(builddir) -I%{_includedir}'
136 rm -rf $RPM_BUILD_ROOT
137 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
141 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} \
145 install db_dump185 $RPM_BUILD_ROOT%{_bindir}
150 prefix=$RPM_BUILD_ROOT%{_prefix} \
151 includedir=$RPM_BUILD_ROOT%{_includedir}/db3 \
154 install_dynamic_cxx \
158 mv -f $RPM_BUILD_ROOT%{_libdir}/libdb-*.so $RPM_BUILD_ROOT/lib
159 ln -s ../../lib/libdb-3.1.so $RPM_BUILD_ROOT%{_libdir}/libdb3.so
160 ln -s libdb-3.1.a $RPM_BUILD_ROOT%{_libdir}/libdb3.a
161 rm -f $RPM_BUILD_ROOT%{_libdir}/libdb.so
163 for i in $RPM_BUILD_ROOT%{_bindir}/db_* ; do
164 mv -f $i `echo $i | sed -e 's,/db_,/db3_,'`
167 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/*
168 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so
170 gzip -9nf ../LICENSE ../README
173 rm -rf $RPM_BUILD_ROOT
175 %post -p /sbin/ldconfig
176 %postun -p /sbin/ldconfig
178 %post tcl -p /sbin/ldconfig
179 %postun tcl -p /sbin/ldconfig
182 %defattr(644,root,root,755)
183 %doc LICENSE.gz README.gz
184 %attr(755,root,root) /lib/libdb-*.so
187 %defattr(644,root,root,755)
189 %attr(755,root,root) %{_bindir}/berkeley_db_svc
190 %attr(755,root,root) %{_bindir}/db*_archive
191 %attr(755,root,root) %{_bindir}/db*_checkpoint
192 %attr(755,root,root) %{_bindir}/db*_deadlock
193 %attr(755,root,root) %{_bindir}/db*_dump
194 %attr(755,root,root) %{_bindir}/db*_dump185
195 %attr(755,root,root) %{_bindir}/db*_load
196 %attr(755,root,root) %{_bindir}/db*_printlog
197 %attr(755,root,root) %{_bindir}/db*_recover
198 %attr(755,root,root) %{_bindir}/db*_stat
199 %attr(755,root,root) %{_bindir}/db*_upgrade
200 %attr(755,root,root) %{_bindir}/db*_verify
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
207 %defattr(644,root,root,755)
208 %doc docs/{api*,ref,index.html,sleepycat,images} examples*
209 %attr(755,root,root) %{_libdir}/libdb*.la
210 %attr(755,root,root) %{_libdir}/libdb3.so
211 %attr(755,root,root) %{_libdir}/libdb_tcl.so
212 %attr(755,root,root) %{_libdir}/libdb_cxx*.so
216 %defattr(644,root,root,755)