1 Summary: BSD database library for C
2 Summary(pl): Biblioteka bazodanowa z BSD dla C
8 # Source0: http://www.berkeleydb.com/update/snapshot/db-2.7.7.tar.gz
9 # Taken from glibc 2.1.3
10 Source0: %{name}-glibc-2.1.3.tar.gz
11 # Patch to make it standalone
12 Patch0: %{name}-glibc-2.1.3.patch
13 Patch1: %{name}-libdb2.patch
14 URL: http://www.berkeleydb.com/
15 PreReq: /sbin/ldconfig
16 Conflicts: glibc < 2.1.90
17 BuildConflicts: glibc-db2
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
23 provides embedded database support for both traditional and
24 client/server applications. This library used to be part of the glibc
28 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
29 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
30 klient-serwer. Ta biblioteka by³a czê¶ci± glibc.
33 Summary: Header files for Berkeley database library
34 Summary(pl): Pliki nag³ówkowe do biblioteki Berkeley Database
35 Group: Development/Libraries
36 Requires: %{name} = %{version}
37 Conflicts: glibc-devel < 2.1.90
38 Obsoletes: glibc-db2-devel
41 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
42 provides embedded database support for both traditional and
43 client/server applications. Berkeley DB includes B tree, Hashing,
44 Fixed and Variable-length record access methods.
46 This package contains the header files, and documentation for building
47 programs which use Berkeley DB.
49 %description devel -l pl
50 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
51 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
52 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
53 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu.
55 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
56 programów u¿ywaj±cych Berkeley DB.
59 Summary: Static libraries for Berkeley database library
60 Summary(pl): Statyczne biblioteki Berkeley Database
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}
63 Conflicts: glibc-static < 2.1.90
64 Obsoletes: glibc-db2-static
67 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
68 provides embedded database support for both traditional and
69 client/server applications. Berkeley DB includes B tree, Hashing,
70 Fixed and Variable-length record access methods.
72 This package contains the static libraries for building programs which
75 %description static -l pl
76 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
77 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
78 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
79 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu.
81 Ten pakiet zawiera statyczne biblioteki do budowania programów
82 u¿ywaj±cych Berkeley DB.
90 %{__make} CFLAGS="%{rpmcflags} -I. -I./include -include ./compat.h"
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{/lib,%{_includedir}/db2,%{_libdir},%{_bindir}}
96 install libdb2.so.3 $RPM_BUILD_ROOT/lib/
97 install libdb2.a $RPM_BUILD_ROOT%{_libdir}
98 install db.h db_185.h $RPM_BUILD_ROOT%{_includedir}/db2
100 for p in db_archive db_checkpoint db_deadlock db_dump db_load \
101 db_printlog db_recover db_stat; do
102 q="`echo $p | sed -e 's,^db_,db2_,'`"
103 install $p $RPM_BUILD_ROOT%{_bindir}/$q
106 ln -sf ../../lib/libdb2.so.3 $RPM_BUILD_ROOT%{_libdir}/libdb2.so
109 rm -rf $RPM_BUILD_ROOT
111 %post -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
115 %defattr(644,root,root,755)
117 %attr(755,root,root) /lib/libdb2.so.3
120 %defattr(644,root,root,755)
121 %dir %{_includedir}/db2
122 %{_includedir}/db2/db.h
123 %{_includedir}/db2/db_185.h
124 %attr(755,root,root) %{_libdir}/libdb2.so
125 %attr(755,root,root) %{_bindir}/db2_archive
126 %attr(755,root,root) %{_bindir}/db2_checkpoint
127 %attr(755,root,root) %{_bindir}/db2_deadlock
128 %attr(755,root,root) %{_bindir}/db2_dump
129 %attr(755,root,root) %{_bindir}/db2_load
130 %attr(755,root,root) %{_bindir}/db2_printlog
131 %attr(755,root,root) %{_bindir}/db2_recover
132 %attr(755,root,root) %{_bindir}/db2_stat
135 %defattr(644,root,root,755)