]> git.pld-linux.org Git - packages/db.git/blob - db.spec
90d3990334256309e96c9d920ee7b0f069a06b71
[packages/db.git] / db.spec
1 Summary:        BSD database library for C
2 Summary(pl):    Biblioteka C do obs³ugi baz Berkeley DB
3 Name:           db
4 Version:        4.1.24
5 Release:        3
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://www.berkeleydb.com/update/snapshot/%{name}-%{version}.tar.gz
9 Patch0:         http://www.sleepycat.com/update/4.1.24/patch.4.1.24.1
10 Patch1:         http://www.sleepycat.com/update/4.1.24/patch.4.1.24.2
11 Patch2:         http://www.sleepycat.com/update/4.1.24/patch.4.1.24.3
12 Patch3:         http://www.sleepycat.com/update/4.1.24/patch.4.1.24.4
13 Patch4:         http://www.sleepycat.com/update/4.1.24/patch.4.1.24.5
14 Patch5:         http://www.sleepycat.com/update/4.1.24/patch.4.1.24.6
15 URL:            http://www.berkeleydb.com/
16 %{?_with_java:BuildRequires:    jdk}
17 BuildRequires:  tcl-devel >= 8.3.2
18 Obsoletes:      db4
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
23 provides embedded database support for both traditional and
24 client/server applications. Berkeley DB is used by many applications,
25 including Python and Perl, so this should be installed on all systems.
26
27 %description -l pl
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. Berkeley db jest u¿ywana wielu aplikacjach, w tym w
31 Pythonie i Perlu.
32
33 %package utils
34 Summary:        Command line tools for managing Berkeley DB databases
35 Summary(pl):    Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
36 Group:          Applications/Databases
37 Requires:       %{name} = %{version}
38 Obsoletes:      db4-utils
39
40 %description utils
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, Extended
44 Linear Hashing, Fixed and Variable-length record access methods,
45 transactions, locking, logging, shared memory caching and database
46 recovery. DB supports C, C++, Java and Perl APIs.
47
48 This package contains command line tools for managing Berkeley DB
49 databases.
50
51 %description utils -l pl
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³ugje dostêp do bazy przez B-drzewa i
55 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
56 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
57 dla C, C++, Javy i Perla.
58
59 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
60 poleceñ.
61
62 %package tcl
63 Summary:        Berkeley database library for TCL
64 Summary(pl):    Biblioteka baz danych Berkeley dla TCL
65 Group:          Development/Languages/Tcl
66 Requires:       tcl
67 Obsoletes:      db4-tcl
68
69 %description tcl
70 Berkeley database library for TCL.
71
72 %description tcl -l pl
73 Biblioteka baz danych Berkeley dla TCL.
74
75 %package cxx
76 Summary:        Berkeley database library for C++
77 Summary(pl):    Biblioteka baz danych Berkeley dla C++
78 Group:          Libraries
79 Obsoletes:      db4-cxx
80
81 %description cxx
82 Berkeley database library for C++.
83
84 %description cxx -l pl
85 Biblioteka baz danych Berkeley dla C++.
86
87 %package java
88 Summary:        Berkeley database library for Java
89 Summary(pl):    Biblioteka baz danych Berkeley dla Java
90 Group:          Libraries
91
92 %description java
93 Berkeley database library for Java.
94
95 %description java -l pl
96 Biblioteka baz danych Berkeley dla Java.
97
98 %package devel
99 Summary:        Header files for Berkeley database library
100 Summary(pl):    Pliki nag³ówkowe do biblioteki Berkeley Database
101 Group:          Development/Libraries
102 Requires:       %{name} = %{version}
103 Obsoletes:      db4-devel
104 Obsoletes:      db3-devel
105
106 %description devel
107 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
108 provides embedded database support for both traditional and
109 client/server applications. Berkeley DB includes B+tree, Extended
110 Linear Hashing, Fixed and Variable-length record access methods,
111 transactions, locking, logging, shared memory caching and database
112 recovery. DB supports C, C++, Java and Perl APIs.
113
114 This package contains the header files, libraries, and documentation
115 for building programs which use Berkeley DB.
116
117 %description devel -l pl
118 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
119 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
120 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
121 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
122 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
123 dla C, C++, Javy i Perla.
124
125 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
126 programów u¿ywaj±cych Berkeley DB.
127
128 %package static
129 Summary:        Static libraries for Berkeley database library
130 Summary(pl):    Statyczne biblioteki Berkeley Database
131 Group:          Development/Libraries
132 Requires:       %{name}-devel = %{version}
133 Obsoletes:      db4-static
134 Obsoletes:      db3-static
135
136 %description static
137 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
138 provides embedded database support for both traditional and
139 client/server applications. Berkeley DB includes B+tree, Extended
140 Linear Hashing, Fixed and Variable-length record access methods,
141 transactions, locking, logging, shared memory caching and database
142 recovery. DB supports C, C++, Java and Perl APIs.
143
144 This package contains the static libraries for building programs which
145 use Berkeley DB.
146
147 %description static -l pl
148 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
149 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
150 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
151 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
152 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
153 dla C, C++, Javy i Perla.
154
155 Ten pakiet zawiera statyczne biblioteki do budowania programów
156 u¿ywaj±cych Berkeley DB.
157
158 %prep
159 %setup -q
160 %patch0 -p0
161 %patch1 -p0
162 %patch2 -p0
163 %patch3 -p0
164 %patch4 -p0
165 %patch5 -p0
166
167
168 %build
169 cp -a build_unix build_unix.static
170
171 cd build_unix.static
172
173 CFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates" \
174 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates" \
175 ../dist/configure \
176         --prefix=%{_prefix} \
177         --enable-compat185 \
178         --disable-shared \
179         --enable-static \
180         --enable-rpc \
181         --enable-cxx
182
183 # (temporarily?) disabled because of compilation errors:
184 #       --enable-dump185 \
185
186 %{__make} library_build
187
188 cd ../build_unix
189
190 CFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates" \
191 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates" \
192
193 %if %{?_with_java:1}%{!?_with_java:0}
194 ../dist/configure \
195         --prefix=%{_prefix} \
196         --enable-compat185 \
197         --enable-shared \
198         --disable-static \
199         --enable-rpc \
200         --enable-cxx \
201         --enable-tcl \
202         --with-tcl=%{_libdir} \
203         --enable-java
204 %else
205 ../dist/configure \
206         --prefix=%{_prefix} \
207         --enable-compat185 \
208         --enable-shared \
209         --disable-static \
210         --enable-rpc \
211         --enable-cxx \
212         --enable-tcl \
213         --with-tcl=/usr/lib
214 %endif
215
216 %{__make} library_build TCFLAGS='-I$(builddir) -I%{_includedir}'
217
218 %install
219 rm -rf $RPM_BUILD_ROOT
220 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
221
222 cd build_unix.static
223
224 %{__make} library_install \
225         prefix=$RPM_BUILD_ROOT%{_prefix}
226
227 cd ../build_unix
228
229 %{__make} library_install \
230         prefix=$RPM_BUILD_ROOT%{_prefix} \
231         includedir=$RPM_BUILD_ROOT%{_includedir} \
232         LIB_INSTALL_FILE_LIST=""
233
234 (cd $RPM_BUILD_ROOT%{_libdir}
235 ln -sf libdb-4.1.so libdb4.so
236 ln -sf libdb-4.1.so libndbm.so
237 ln -sf libdb-4.1.la libdb.la
238 ln -sf libdb-4.1.la libdb4.la
239 ln -sf libdb-4.1.la libndbm.la
240 ln -sf libdb_tcl-4.1.la libdb_tcl.la
241 ln -sf libdb_cxx-4.1.la libdb_cxx.la
242 mv -f libdb.a libdb-4.1.a
243 ln -sf libdb-4.1.a libdb.a
244 ln -sf libdb-4.1.a libdb4.a
245 ln -sf libdb-4.1.a libndbm.a
246 mv -f libdb_cxx.a libdb_cxx-4.1.a
247 ln -sf libdb_cxx-4.1.a libdb_cxx.a
248
249 mv -f libdb-4.1.la libdb-4.1.la.tmp
250 mv -f libdb_cxx-4.1.la libdb_cxx-4.1.la.tmp
251 sed -e "s/old_library=''/old_library='libdb-4.1.a'/" libdb-4.1.la.tmp > libdb-4.1.la
252 sed -e "s/old_library=''/old_library='libdb_cxx-4.1.a'/" libdb_cxx-4.1.la.tmp > libdb_cxx-4.1.la
253 rm -f libdb*.la.tmp
254 )
255
256 cd ..
257 #rm -rf examples_java
258 #cp -a java/src/com/sleepycat/examples examples_java
259
260 %clean
261 rm -rf $RPM_BUILD_ROOT
262
263 %post   -p /sbin/ldconfig
264 %postun -p /sbin/ldconfig
265
266 %post   tcl -p /sbin/ldconfig
267 %postun tcl -p /sbin/ldconfig
268
269 %post   cxx -p /sbin/ldconfig
270 %postun cxx -p /sbin/ldconfig
271
272 %files
273 %defattr(644,root,root,755)
274 %doc LICENSE README
275 #%attr(755,root,root) /lib/libdb-*.so
276 %attr(755,root,root) %{_libdir}/libdb-*.so
277
278 %files utils
279 %defattr(644,root,root,755)
280 %doc docs/utility/*
281 %attr(755,root,root) %{_bindir}/berkeley_db_svc
282 %attr(755,root,root) %{_bindir}/db*_archive
283 %attr(755,root,root) %{_bindir}/db*_checkpoint
284 %attr(755,root,root) %{_bindir}/db*_deadlock
285 %attr(755,root,root) %{_bindir}/db*_dump
286 #%attr(755,root,root) %{_bindir}/db*_dump185
287 %attr(755,root,root) %{_bindir}/db*_load
288 %attr(755,root,root) %{_bindir}/db*_printlog
289 %attr(755,root,root) %{_bindir}/db*_recover
290 %attr(755,root,root) %{_bindir}/db*_stat
291 %attr(755,root,root) %{_bindir}/db*_upgrade
292 %attr(755,root,root) %{_bindir}/db*_verify
293
294 %files cxx
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/libdb_cxx-*.so
297
298 %if %{?_with_java:1}%{!?_with_java:0}
299 %files java
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_libdir}/libdb_java*.so
302 %attr(644,root,root) %{_libdir}/db.jar
303 %endif
304
305 %files tcl
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
308
309 %files devel
310 %defattr(644,root,root,755)
311 %doc docs/{api*,ref,index.html,sleepycat,images} examples_c*
312 %attr(755,root,root) %{_libdir}/libdb*.la
313 %attr(755,root,root) %{_libdir}/libndbm.la
314 %attr(755,root,root) %{_libdir}/libdb.so
315 %attr(755,root,root) %{_libdir}/libdb4.so
316 %attr(755,root,root) %{_libdir}/libndbm.so
317 %attr(755,root,root) %{_libdir}/libdb_tcl.so
318 %attr(755,root,root) %{_libdir}/libdb_cxx.so
319 %{_includedir}/*
320
321 %files static
322 %defattr(644,root,root,755)
323 %{_libdir}/lib*.a
This page took 0.10071 seconds and 3 git commands to generate.