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 libdb-3.1.a $RPM_BUILD_ROOT%{_libdir}/libdb.a
154 ln -sf libdb3.so $RPM_BUILD_ROOT/%{_libdir}/libndbm.so
155 ln -sf libdb3.a $RPM_BUILD_ROOT/%{_libdir}/libndbm.a
157 for i in $RPM_BUILD_ROOT%{_bindir}/db_* ; do
158 mv -f $i `echo $i | sed -e 's,/db_,/db3_,'`
161 gzip -9nf ../LICENSE ../README
164 rm -rf $RPM_BUILD_ROOT
166 %post -p /sbin/ldconfig
167 %postun -p /sbin/ldconfig
169 %post tcl -p /sbin/ldconfig
170 %postun tcl -p /sbin/ldconfig
173 %defattr(644,root,root,755)
174 %doc LICENSE.gz README.gz
175 %attr(755,root,root) /lib/libdb-*.so
178 %defattr(644,root,root,755)
180 %attr(755,root,root) %{_bindir}/berkeley_db_svc
181 %attr(755,root,root) %{_bindir}/db*_archive
182 %attr(755,root,root) %{_bindir}/db*_checkpoint
183 %attr(755,root,root) %{_bindir}/db*_deadlock
184 %attr(755,root,root) %{_bindir}/db*_dump
185 %attr(755,root,root) %{_bindir}/db*_dump185
186 %attr(755,root,root) %{_bindir}/db*_load
187 %attr(755,root,root) %{_bindir}/db*_printlog
188 %attr(755,root,root) %{_bindir}/db*_recover
189 %attr(755,root,root) %{_bindir}/db*_stat
190 %attr(755,root,root) %{_bindir}/db*_upgrade
191 %attr(755,root,root) %{_bindir}/db*_verify
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
198 %defattr(644,root,root,755)
199 %doc docs/{api*,ref,index.html,sleepycat,images} examples*
200 %attr(755,root,root) %{_libdir}/libdb*.la
201 %attr(755,root,root) %{_libdir}/libdb.so
202 %attr(755,root,root) %{_libdir}/libdb3.so
203 %attr(755,root,root) %{_libdir}/libndbm.so
204 %attr(755,root,root) %{_libdir}/libdb_tcl.so
205 %attr(755,root,root) %{_libdir}/libdb_cxx*.so
209 %defattr(644,root,root,755)