1 Summary: BSD database library for C
10 URL: http://www.sleepycat.com
11 Source0: http://www.sleepycat.com/update/%{version}/db-%{version}.tar.gz
12 Patch0: %{name}-linux-threads.patch
13 Patch1: %{name}-static.patch
14 PreReq: /sbin/ldconfig
15 BuildRequires: db1-static
16 BuildRequires: glibc-static
17 BuildRequires: tcl-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
22 provides embedded database support for both traditional and
23 client/server applications. Berkeley DB is used by many applications,
24 including Python and Perl, so this should be installed on all systems.
27 Summary: Command line tools for managing Berkeley DB databases.
28 Group: Applications/Databases
29 Group(pl): Aplikacje/Bazy danych
30 Requires: %{name} = %{version}
33 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
34 provides embedded database support for both traditional and
35 client/server applications. Berkeley DB includes B+tree, Extended
36 Linear Hashing, Fixed and Variable-length record access methods,
37 transactions, locking, logging, shared memory caching and database
38 recovery. DB supports C, C++, Java and Perl APIs.
40 This package contains command line tools for managing Berkeley DB
44 Summary: Berkeley database library for TCL
45 Group: Development/Languages/Tcl
46 Group(de): Entwicklung/Sprachen/Tcl
47 Group(pl): Programowanie/Jêzyki/Tcl
48 Requires: %{name} = %{version}
51 Berkeley database library for TCL.
54 Summary: Development libraries and header files for Berkeley database library
55 Group: Development/Libraries
56 Group(de): Entwicklung/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(de): Entwicklung/Libraries
76 Group(fr): Development/Librairies
77 Group(pl): Programowanie/Biblioteki
78 Requires: %{name}-devel = %{version}
81 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
82 provides embedded database support for both traditional and
83 client/server applications. Berkeley DB includes B+tree, Extended
84 Linear Hashing, Fixed and Variable-length record access methods,
85 transactions, locking, logging, shared memory caching and database
86 recovery. DB supports C, C++, Java and Perl APIs.
88 This package contains the static libraries for building programs which
92 %setup -q -n db-%{version}
97 cp -a build_unix build_unix.static
101 CXXFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -fno-rtti -fno-implicit-templates"
103 --prefix=%{_prefix} \
111 %{__make} static db_dump185
116 --prefix=%{_prefix} \
124 %{__make} TCFLAGS='-I$(builddir) -I%{_includedir}'
127 rm -rf $RPM_BUILD_ROOT
128 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
132 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} \
136 install db_dump185 $RPM_BUILD_ROOT%{_bindir}
141 prefix=$RPM_BUILD_ROOT%{_prefix} \
142 includedir=$RPM_BUILD_ROOT%{_includedir} \
145 install_dynamic_cxx \
149 mv -f $RPM_BUILD_ROOT%{_libdir}/libdb-*.so $RPM_BUILD_ROOT/lib
150 ln -sf ../../lib/libdb-3.1.so $RPM_BUILD_ROOT%{_libdir}/libdb.so
151 ln -sf ../../lib/libdb-3.1.so $RPM_BUILD_ROOT%{_libdir}/libdb3.so
152 ln -sf libdb-3.1.a $RPM_BUILD_ROOT%{_libdir}/libdb3.a
153 ln -sf libdb3.so $RPM_BUILD_ROOT/%{_libdir}/libndbm.so
154 ln -sf libdb3.a $RPM_BUILD_ROOT/%{_libdir}/libndbm.a
156 for i in $RPM_BUILD_ROOT%{_bindir}/db_* ; do
157 mv -f $i `echo $i | sed -e 's,/db_,/db3_,'`
160 gzip -9nf ../LICENSE ../README
163 rm -rf $RPM_BUILD_ROOT
165 %post -p /sbin/ldconfig
166 %postun -p /sbin/ldconfig
168 %post tcl -p /sbin/ldconfig
169 %postun tcl -p /sbin/ldconfig
172 %defattr(644,root,root,755)
173 %doc LICENSE.gz README.gz
174 %attr(755,root,root) /lib/libdb-*.so
177 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_bindir}/berkeley_db_svc
180 %attr(755,root,root) %{_bindir}/db*_archive
181 %attr(755,root,root) %{_bindir}/db*_checkpoint
182 %attr(755,root,root) %{_bindir}/db*_deadlock
183 %attr(755,root,root) %{_bindir}/db*_dump
184 %attr(755,root,root) %{_bindir}/db*_dump185
185 %attr(755,root,root) %{_bindir}/db*_load
186 %attr(755,root,root) %{_bindir}/db*_printlog
187 %attr(755,root,root) %{_bindir}/db*_recover
188 %attr(755,root,root) %{_bindir}/db*_stat
189 %attr(755,root,root) %{_bindir}/db*_upgrade
190 %attr(755,root,root) %{_bindir}/db*_verify
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
197 %defattr(644,root,root,755)
198 %doc docs/{api*,ref,index.html,sleepycat,images} examples*
199 %attr(755,root,root) %{_libdir}/libdb*.la
200 %attr(755,root,root) %{_libdir}/libdb.so
201 %attr(755,root,root) %{_libdir}/libdb3.so
202 %attr(755,root,root) %{_libdir}/libndbm.so
203 %attr(755,root,root) %{_libdir}/libdb_tcl.so
204 %attr(755,root,root) %{_libdir}/libdb_cxx*.so
208 %defattr(644,root,root,755)