1 Summary: BSD database library for C
10 Source0: http://www.sleepycat.com/update/%{version}/db-%{version}.tar.gz
11 Patch0: %{name}-static.patch
12 BuildRequires: db1-static
13 BuildRequires: glibc-static
14 BuildRequires: tcl-devel >= 8.3.2
15 URL: http://www.sleepycat.com/
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
20 provides embedded database support for both traditional and
21 client/server applications. Berkeley DB is used by many applications,
22 including Python and Perl, so this should be installed on all systems.
25 Summary: Command line tools for managing Berkeley DB databases.
26 Group: Applications/Databases
27 Group(pl): Aplikacje/Bazy danych
28 Requires: %{name} = %{version}
31 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
32 provides embedded database support for both traditional and
33 client/server applications. Berkeley DB includes B+tree, Extended
34 Linear Hashing, Fixed and Variable-length record access methods,
35 transactions, locking, logging, shared memory caching and database
36 recovery. DB supports C, C++, Java and Perl APIs.
38 This package contains command line tools for managing Berkeley DB
42 Summary: Berkeley database library for TCL
43 Group: Development/Languages/Tcl
44 Group(de): Entwicklung/Sprachen/Tcl
45 Group(pl): Programowanie/Jêzyki/Tcl
46 Requires: %{name} = %{version}
49 Berkeley database library for TCL.
52 Summary: Development libraries and header files for Berkeley database library
53 Group: Development/Libraries
54 Group(de): Entwicklung/Libraries
55 Group(fr): Development/Librairies
56 Group(pl): Programowanie/Biblioteki
57 Requires: %{name} = %{version}
60 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
61 provides embedded database support for both traditional and
62 client/server applications. Berkeley DB includes B+tree, Extended
63 Linear Hashing, Fixed and Variable-length record access methods,
64 transactions, locking, logging, shared memory caching and database
65 recovery. DB supports C, C++, Java and Perl APIs.
67 This package contains the header files, libraries, and documentation
68 for building programs which use Berkeley DB.
71 Summary: Static libraries for Berkeley database library
72 Group: Development/Libraries
73 Group(de): Entwicklung/Libraries
74 Group(fr): Development/Librairies
75 Group(pl): Programowanie/Biblioteki
76 Requires: %{name}-devel = %{version}
79 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
80 provides embedded database support for both traditional and
81 client/server applications. Berkeley DB includes B+tree, Extended
82 Linear Hashing, Fixed and Variable-length record access methods,
83 transactions, locking, logging, shared memory caching and database
84 recovery. DB supports C, C++, Java and Perl APIs.
86 This package contains the static libraries for building programs which
90 %setup -q -n db-%{version}
94 cp -a build_unix build_unix.static
98 CXXFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -fno-rtti -fno-implicit-templates"
100 --prefix=%{_prefix} \
108 %{__make} static db_dump185
113 --prefix=%{_prefix} \
121 %{__make} TCFLAGS='-I$(builddir) -I%{_includedir}'
124 rm -rf $RPM_BUILD_ROOT
125 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
129 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} \
133 install db_dump185 $RPM_BUILD_ROOT%{_bindir}
138 prefix=$RPM_BUILD_ROOT%{_prefix} \
139 includedir=$RPM_BUILD_ROOT%{_includedir} \
142 install_dynamic_cxx \
146 mv -f $RPM_BUILD_ROOT%{_libdir}/libdb-*.so $RPM_BUILD_ROOT/lib
147 ln -sf ../../lib/libdb-3.1.so $RPM_BUILD_ROOT%{_libdir}/libdb.so
148 ln -sf ../../lib/libdb-3.1.so $RPM_BUILD_ROOT%{_libdir}/libdb3.so
149 ln -sf libdb-3.1.a $RPM_BUILD_ROOT%{_libdir}/libdb3.a
150 ln -sf libdb-3.1.a $RPM_BUILD_ROOT%{_libdir}/libdb.a
151 ln -sf libdb3.so $RPM_BUILD_ROOT/%{_libdir}/libndbm.so
152 ln -sf libdb3.a $RPM_BUILD_ROOT/%{_libdir}/libndbm.a
154 for i in $RPM_BUILD_ROOT%{_bindir}/db_* ; do
155 mv -f $i `echo $i | sed -e 's,/db_,/db3_,'`
158 gzip -9nf ../LICENSE ../README
161 rm -rf $RPM_BUILD_ROOT
163 %post -p /sbin/ldconfig
164 %postun -p /sbin/ldconfig
166 %post tcl -p /sbin/ldconfig
167 %postun tcl -p /sbin/ldconfig
170 %defattr(644,root,root,755)
171 %doc LICENSE.gz README.gz
172 %attr(755,root,root) /lib/libdb-*.so
175 %defattr(644,root,root,755)
177 %attr(755,root,root) %{_bindir}/berkeley_db_svc
178 %attr(755,root,root) %{_bindir}/db*_archive
179 %attr(755,root,root) %{_bindir}/db*_checkpoint
180 %attr(755,root,root) %{_bindir}/db*_deadlock
181 %attr(755,root,root) %{_bindir}/db*_dump
182 %attr(755,root,root) %{_bindir}/db*_dump185
183 %attr(755,root,root) %{_bindir}/db*_load
184 %attr(755,root,root) %{_bindir}/db*_printlog
185 %attr(755,root,root) %{_bindir}/db*_recover
186 %attr(755,root,root) %{_bindir}/db*_stat
187 %attr(755,root,root) %{_bindir}/db*_upgrade
188 %attr(755,root,root) %{_bindir}/db*_verify
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
195 %defattr(644,root,root,755)
196 %doc docs/{api*,ref,index.html,sleepycat,images} examples*
197 %attr(755,root,root) %{_libdir}/libdb*.la
198 %attr(755,root,root) %{_libdir}/libdb.so
199 %attr(755,root,root) %{_libdir}/libdb3.so
200 %attr(755,root,root) %{_libdir}/libndbm.so
201 %attr(755,root,root) %{_libdir}/libdb_tcl.so
202 %attr(755,root,root) %{_libdir}/libdb_cxx*.so
206 %defattr(644,root,root,755)