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