]> git.pld-linux.org Git - packages/db1.git/blame - db1.spec
- dropped pre-cvs changelog
[packages/db1.git] / db1.spec
CommitLineData
0a0f3f62 1Summary: BSD database library for C
0e18b703 2Summary(pl.UTF-8): Biblioteka bazodanowa z BSD dla C
0a0f3f62
JR
3Name: db1
4Version: 1.85
5054c537 5Release: 8
0a0f3f62 6License: BSD
62385e96 7Group: Libraries
fe53fdc5 8# alternative site (sometimes working): http://www.berkeleydb.com/
4d98220c
JB
9#Source0Download: http://dev.sleepycat.com/downloads/releasehistorybdb.html
10Source0: http://downloads.sleepycat.com/db.%{version}.tar.gz
73a2a39d 11# Source0-md5: 42cc6c1e1e25818bd3e3f91328edb0f1
62385e96 12Patch0: %{name}.patch
fe53fdc5 13URL: http://www.sleepycat.com/
246e0fec 14BuildConflicts: glibc-db1
223d94bb 15Conflicts: glibc < 2.1.90
62385e96 16Obsoletes: glibc-db1
4d98220c 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0a0f3f62
JR
18
19%description
62385e96 20The Berkeley Database (Berkeley DB) is a programmatic toolkit that
21provides embedded database support for both traditional and
22client/server applications. It should be installed if compatibility is
23needed with databases created with db1. This library used to be part
24of the glibc package.
0a0f3f62 25
3f2012bf
JR
26%description -l pl.UTF-8
27Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
28zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
29klient-serwer. Powinna być zainstalowana jeżeli potrzebna jest
30kompatybilność z bazami stworzonymi db1. Ta biblioteka była częścią
919b6c36
JB
31glibc.
32
0a0f3f62 33%package devel
919b6c36 34Summary: Header files for Berkeley database library
0e18b703 35Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki Berkeley Database
0a0f3f62 36Group: Development/Libraries
4d98220c 37Requires: %{name} = %{version}-%{release}
0a0f3f62 38Conflicts: glibc-devel < 2.1.90
c0738512 39Obsoletes: glibc-db1-devel
0a0f3f62
JR
40
41%description devel
62385e96 42The Berkeley Database (Berkeley DB) is a programmatic toolkit that
43provides embedded database support for both traditional and
44client/server applications. Berkeley DB includes B tree, Hashing,
45Fixed and Variable-length record access methods.
0a0f3f62 46
919b6c36
JB
47This package contains the header files, and documentation for building
48programs which use Berkeley DB.
49
3f2012bf
JR
50%description devel -l pl.UTF-8
51Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
52zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
53klient-serwer. Berkeley DB obsługje dostęp do bazy przez B-drzewa i
54funkcje mieszające ze stałą lub zmienną wielkością rekordu.
919b6c36 55
3f2012bf
JR
56Ten pakiet zawiera pliki nagłówkowe i dokumentację do budowania
57programów używających Berkeley DB.
0a0f3f62
JR
58
59%package static
60Summary: Static libraries for Berkeley database library
0e18b703 61Summary(pl.UTF-8): Statyczne biblioteki Berkeley Database
0a0f3f62 62Group: Development/Libraries
4d98220c 63Requires: %{name}-devel = %{version}-%{release}
0a0f3f62 64Conflicts: glibc-static < 2.1.90
c0738512 65Obsoletes: glibc-db1-static
0a0f3f62
JR
66
67%description static
62385e96 68The Berkeley Database (Berkeley DB) is a programmatic toolkit that
69provides embedded database support for both traditional and
70client/server applications. Berkeley DB includes B tree, Hashing,
71Fixed and Variable-length record access methods.
0a0f3f62 72
62385e96 73This package contains the static libraries for building programs which
74use Berkeley DB.
0a0f3f62 75
3f2012bf
JR
76%description static -l pl.UTF-8
77Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
78zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
79klient-serwer. Berkeley DB obsługje dostęp do bazy przez B-drzewa i
80funkcje mieszające ze stałą lub zmienną wielkością rekordu.
919b6c36 81
3f2012bf
JR
82Ten pakiet zawiera statyczne biblioteki do budowania programów
83używających Berkeley DB.
919b6c36 84
0a0f3f62
JR
85%prep
86%setup -q -n db.%{version}
a74c0012 87%patch0 -p1
0a0f3f62
JR
88
89%build
911d6bb8 90%{__make} -C PORT/linux \
91 CC="%{__cc}" \
92 OORG="%{rpmcflags}"
0a0f3f62
JR
93
94%install
95rm -rf $RPM_BUILD_ROOT
f7a67a94 96install -d $RPM_BUILD_ROOT{%{_includedir}/db1,%{_libdir},%{_bindir}}
0a0f3f62
JR
97
98sed -n '/^\/\*-/,/^ \*\//s/^.\*.\?//p' include/db.h | grep -v '^@.*db\.h' > LICENSE
99
100cd PORT/linux
101sover=`echo libdb.so.* | sed 's/libdb.so.//'`
223d94bb
PG
102install libdb.a $RPM_BUILD_ROOT%{_libdir}/libdb1.a
103install libdb.so.$sover $RPM_BUILD_ROOT%{_libdir}/libdb1.so.$sover
104ln -sf libdb1.so.$sover $RPM_BUILD_ROOT%{_libdir}/libdb1.so
105ln -sf libdb1.so.$sover $RPM_BUILD_ROOT%{_libdir}/libdb.so.$sover
f7a67a94
JB
106install ../include/ndbm.h $RPM_BUILD_ROOT%{_includedir}/db1
107install ../../include/db.h $RPM_BUILD_ROOT%{_includedir}/db1
108install ../../include/mpool.h $RPM_BUILD_ROOT%{_includedir}/db1
223d94bb 109install db_dump185 $RPM_BUILD_ROOT%{_bindir}/db1_dump185
0a0f3f62
JR
110cd ../..
111
0a0f3f62 112%clean
f7a67a94 113rm -rf $RPM_BUILD_ROOT
0a0f3f62 114
4868ab3d 115%post -p /sbin/ldconfig
0a0f3f62
JR
116%postun -p /sbin/ldconfig
117
118%files
119%defattr(644,root,root,755)
8624efbd 120%doc README LICENSE changelog
0a0f3f62 121%attr(755,root,root) %{_bindir}/db1_dump185
f7a67a94 122%attr(755,root,root) %{_libdir}/libdb*.so.*
0a0f3f62
JR
123
124%files devel
125%defattr(644,root,root,755)
8624efbd 126%doc docs/*.ps
0a0f3f62
JR
127%attr(755,root,root) %{_libdir}/libdb1.so
128%{_includedir}/db1
129
130%files static
131%defattr(644,root,root,755)
132%{_libdir}/libdb1.a
This page took 0.116785 seconds and 4 git commands to generate.