]> git.pld-linux.org Git - packages/db2.git/blame - db2.spec
- dropped pre-cvs changelog
[packages/db2.git] / db2.spec
CommitLineData
4140d1e5 1Summary: BSD database library for C
eb0a40ef 2Summary(pl.UTF-8): Biblioteka bazodanowa z BSD dla C
4140d1e5
JR
3Name: db2
4Version: 2.4.14
314ae359 5Release: 8
4140d1e5
JR
6Group: Libraries
7License: BSD
3aeec704 8# alternative site (sometimes working): http://www.berkeleydb.com/
9688249d
JB
9# Source0Download: http://dev.sleepycat.com/downloads/releasehistorybdb.html
10# Source0: http://downloads.sleepycat.com/db-2.7.7.tar.gz
4140d1e5 11# Taken from glibc 2.1.3
1bd53e7a 12Source0: %{name}-glibc-2.1.3.tar.gz
948073cd 13# Source0-md5: 6e48a57b362f2324831a1751c618c875
4140d1e5 14# Patch to make it standalone
1bd53e7a 15Patch0: %{name}-glibc-2.1.3.patch
16Patch1: %{name}-libdb2.patch
3aeec704 17URL: http://www.sleepycat.com/
1bd53e7a 18BuildConflicts: glibc-db2
1bd53e7a 19Obsoletes: glibc-db2
a6145986
JB
20Conflicts: glibc < 2.1.90
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4140d1e5
JR
22
23%description
1bd53e7a 24The Berkeley Database (Berkeley DB) is a programmatic toolkit that
25provides embedded database support for both traditional and
26client/server applications. This library used to be part of the glibc
27package.
4140d1e5 28
5c0c3631
JR
29%description -l pl.UTF-8
30Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
31zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
32klient-serwer. Ta biblioteka była częścią glibc.
365bb2f3 33
4140d1e5 34%package devel
365bb2f3 35Summary: Header files for Berkeley database library
eb0a40ef 36Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki Berkeley Database
4140d1e5 37Group: Development/Libraries
9688249d 38Requires: %{name} = %{version}-%{release}
233b2c00 39Obsoletes: glibc-db2-devel
a6145986 40Conflicts: glibc-devel < 2.1.90
4140d1e5
JR
41
42%description devel
1bd53e7a 43The Berkeley Database (Berkeley DB) is a programmatic toolkit that
44provides embedded database support for both traditional and
45client/server applications. Berkeley DB includes B tree, Hashing,
46Fixed and Variable-length record access methods.
4140d1e5 47
365bb2f3
JB
48This package contains the header files, and documentation for building
49programs which use Berkeley DB.
50
5c0c3631
JR
51%description devel -l pl.UTF-8
52Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
53zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
54klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
55funkcje mieszające ze stałą lub zmienną wielkością rekordu.
365bb2f3 56
5c0c3631
JR
57Ten pakiet zawiera pliki nagłówkowe i dokumentację do budowania
58programów używających Berkeley DB.
4140d1e5
JR
59
60%package static
61Summary: Static libraries for Berkeley database library
eb0a40ef 62Summary(pl.UTF-8): Statyczne biblioteki Berkeley Database
4140d1e5 63Group: Development/Libraries
9688249d 64Requires: %{name}-devel = %{version}-%{release}
233b2c00 65Obsoletes: glibc-db2-static
a6145986 66Conflicts: glibc-static < 2.1.90
4140d1e5
JR
67
68%description static
1bd53e7a 69The Berkeley Database (Berkeley DB) is a programmatic toolkit that
70provides embedded database support for both traditional and
71client/server applications. Berkeley DB includes B tree, Hashing,
72Fixed and Variable-length record access methods.
4140d1e5 73
1bd53e7a 74This package contains the static libraries for building programs which
75use Berkeley DB.
4140d1e5 76
5c0c3631
JR
77%description static -l pl.UTF-8
78Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
79zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
80klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
81funkcje mieszające ze stałą lub zmienną wielkością rekordu.
365bb2f3 82
5c0c3631
JR
83Ten pakiet zawiera statyczne biblioteki do budowania programów
84używających Berkeley DB.
365bb2f3 85
4140d1e5
JR
86%prep
87%setup -q -n db2
88%patch0 -p1
89%patch1 -p1
90
91%build
a6145986
JB
92%{__make} \
93 CFLAGS="%{rpmcflags} -I. -I./include -include ./compat.h"
4140d1e5
JR
94
95%install
96rm -rf $RPM_BUILD_ROOT
a6145986 97install -d $RPM_BUILD_ROOT{%{_includedir}/db2,%{_libdir},%{_bindir}}
4140d1e5 98
a6145986 99install libdb2.so.3 $RPM_BUILD_ROOT%{_libdir}
1bd53e7a 100install libdb2.a $RPM_BUILD_ROOT%{_libdir}
101install db.h db_185.h $RPM_BUILD_ROOT%{_includedir}/db2
4140d1e5
JR
102
103for p in db_archive db_checkpoint db_deadlock db_dump db_load \
1bd53e7a 104 db_printlog db_recover db_stat; do
4140d1e5 105 q="`echo $p | sed -e 's,^db_,db2_,'`"
1bd53e7a 106 install $p $RPM_BUILD_ROOT%{_bindir}/$q
4140d1e5
JR
107done
108
a6145986 109ln -sf libdb2.so.3 $RPM_BUILD_ROOT%{_libdir}/libdb2.so
4140d1e5 110
4140d1e5
JR
111%clean
112rm -rf $RPM_BUILD_ROOT
113
3d066f2a 114%post -p /sbin/ldconfig
4140d1e5
JR
115%postun -p /sbin/ldconfig
116
117%files
118%defattr(644,root,root,755)
314ae359 119%doc README LICENSE
a6145986 120%attr(755,root,root) %{_libdir}/libdb2.so.3
4140d1e5
JR
121
122%files devel
123%defattr(644,root,root,755)
4140d1e5
JR
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
a6145986
JB
132%attr(755,root,root) %{_libdir}/libdb2.so
133%dir %{_includedir}/db2
134%{_includedir}/db2/db.h
135%{_includedir}/db2/db_185.h
4140d1e5
JR
136
137%files static
138%defattr(644,root,root,755)
139%{_libdir}/libdb2.a
This page took 0.080991 seconds and 4 git commands to generate.