1 Summary: BSD database library for C
2 Summary(pl.UTF-8): Biblioteka bazodanowa z BSD dla C
8 # alternative site (sometimes working): http://www.berkeleydb.com/
9 # Source0Download: http://dev.sleepycat.com/downloads/releasehistorybdb.html
10 # Source0: http://downloads.sleepycat.com/db-2.7.7.tar.gz
11 # Taken from glibc 2.1.3
12 Source0: %{name}-glibc-2.1.3.tar.gz
13 # Source0-md5: 6e48a57b362f2324831a1751c618c875
14 # Patch to make it standalone
15 Patch0: %{name}-glibc-2.1.3.patch
16 Patch1: %{name}-libdb2.patch
17 URL: http://www.sleepycat.com/
18 BuildConflicts: glibc-db2
20 Conflicts: glibc < 2.1.90
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
25 provides embedded database support for both traditional and
26 client/server applications. This library used to be part of the glibc
29 %description -l pl.UTF-8
30 Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
31 zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
32 klient-serwer. Ta biblioteka była częścią glibc.
35 Summary: Header files for Berkeley database library
36 Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki Berkeley Database
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Obsoletes: glibc-db2-devel
40 Conflicts: glibc-devel < 2.1.90
43 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
44 provides embedded database support for both traditional and
45 client/server applications. Berkeley DB includes B tree, Hashing,
46 Fixed and Variable-length record access methods.
48 This package contains the header files, and documentation for building
49 programs which use Berkeley DB.
51 %description devel -l pl.UTF-8
52 Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
53 zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
54 klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
55 funkcje mieszające ze stałą lub zmienną wielkością rekordu.
57 Ten pakiet zawiera pliki nagłówkowe i dokumentację do budowania
58 programów używających Berkeley DB.
61 Summary: Static libraries for Berkeley database library
62 Summary(pl.UTF-8): Statyczne biblioteki Berkeley Database
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
65 Obsoletes: glibc-db2-static
66 Conflicts: glibc-static < 2.1.90
69 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
70 provides embedded database support for both traditional and
71 client/server applications. Berkeley DB includes B tree, Hashing,
72 Fixed and Variable-length record access methods.
74 This package contains the static libraries for building programs which
77 %description static -l pl.UTF-8
78 Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
79 zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
80 klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
81 funkcje mieszające ze stałą lub zmienną wielkością rekordu.
83 Ten pakiet zawiera statyczne biblioteki do budowania programów
84 używających Berkeley DB.
93 CFLAGS="%{rpmcflags} -I. -I./include -include ./compat.h"
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_includedir}/db2,%{_libdir},%{_bindir}}
99 install libdb2.so.3 $RPM_BUILD_ROOT%{_libdir}
100 install libdb2.a $RPM_BUILD_ROOT%{_libdir}
101 install db.h db_185.h $RPM_BUILD_ROOT%{_includedir}/db2
103 for p in db_archive db_checkpoint db_deadlock db_dump db_load \
104 db_printlog db_recover db_stat; do
105 q="`echo $p | sed -e 's,^db_,db2_,'`"
106 install $p $RPM_BUILD_ROOT%{_bindir}/$q
109 ln -sf libdb2.so.3 $RPM_BUILD_ROOT%{_libdir}/libdb2.so
112 rm -rf $RPM_BUILD_ROOT
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
118 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libdb2.so.3
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_bindir}/db2_archive
125 %attr(755,root,root) %{_bindir}/db2_checkpoint
126 %attr(755,root,root) %{_bindir}/db2_deadlock
127 %attr(755,root,root) %{_bindir}/db2_dump
128 %attr(755,root,root) %{_bindir}/db2_load
129 %attr(755,root,root) %{_bindir}/db2_printlog
130 %attr(755,root,root) %{_bindir}/db2_recover
131 %attr(755,root,root) %{_bindir}/db2_stat
132 %attr(755,root,root) %{_libdir}/libdb2.so
133 %dir %{_includedir}/db2
134 %{_includedir}/db2/db.h
135 %{_includedir}/db2/db_185.h
138 %defattr(644,root,root,755)