]>
Commit | Line | Data |
---|---|---|
46524cf3 AM |
1 | # |
2 | # Conditional build: | |
dfcddc7f | 3 | %bcond_with java # build db-java |
46524cf3 AM |
4 | %bcond_without tcl # don't build Tcl bindings |
5 | %bcond_with pmutex # use POSIX mutexes (only process-private with linuxthreads) | |
6 | %bcond_without nptl # don't use process-shared POSIX mutexes (NPTL provides full interface) | |
7 | %bcond_without static_libs # don't build static libraries | |
8 | # | |
9 | %{?with_nptl:%define with_pmutex 1} | |
10 | %define mver 4.5 | |
11 | Summary: Berkeley DB database library for C | |
08a6ad78 | 12 | Summary(pl.UTF-8): Biblioteka C do obsługi baz Berkeley DB |
46524cf3 AM |
13 | Name: db%{mver} |
14 | Version: %{mver}.20 | |
9d1f647d | 15 | Release: 3 |
46524cf3 AM |
16 | Epoch: 0 |
17 | License: Sleepycat public license (GPL-like, see LICENSE) | |
18 | Group: Libraries | |
19 | # alternative site (sometimes working): http://www.berkeleydb.com/ | |
20 | Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz | |
21 | # Source0-md5: b0f1c777708cb8e9d37fb47e7ed3312d | |
22 | URL: http://www.oracle.com/technology/products/berkeley-db/index.html | |
23 | BuildRequires: autoconf | |
24 | BuildRequires: automake | |
25 | BuildRequires: ed | |
26 | %{?with_java:BuildRequires: jdk} | |
27 | BuildRequires: libstdc++-devel | |
28 | BuildRequires: libtool | |
29 | BuildRequires: sed >= 4.0 | |
30 | %{?with_tcl:BuildRequires: tcl-devel >= 8.4.0} | |
31 | Provides: db = %{version}-%{release} | |
32 | Obsoletes: db4 | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
dfcddc7f | 35 | %ifarch i586 i686 athlon pentium3 pentium4 %{x8664} |
b6684fac | 36 | %define with_java 1 |
46524cf3 AM |
37 | %endif |
38 | ||
39 | %description | |
40 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that | |
41 | provides embedded database support for both traditional and | |
42 | client/server applications. Berkeley DB is used by many applications, | |
43 | including Python and Perl, so this should be installed on all systems. | |
44 | ||
08a6ad78 JR |
45 | %description -l pl.UTF-8 |
46 | Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych | |
47 | zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i | |
48 | klient-serwer. Berkeley db jest używana w wielu aplikacjach, w tym w | |
46524cf3 AM |
49 | Pythonie i Perlu. |
50 | ||
51 | %package devel | |
52 | Summary: Header files for Berkeley database library | |
08a6ad78 | 53 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki Berkeley Database |
46524cf3 AM |
54 | Group: Development/Libraries |
55 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
56 | Provides: db-devel = %{version}-%{release} | |
57 | Obsoletes: db3-devel | |
58 | Obsoletes: db4-devel | |
59 | ||
60 | %description devel | |
61 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that | |
62 | provides embedded database support for both traditional and | |
63 | client/server applications. Berkeley DB includes B+tree, Extended | |
64 | Linear Hashing, Fixed and Variable-length record access methods, | |
65 | transactions, locking, logging, shared memory caching and database | |
66 | recovery. DB supports C, C++, Java and Perl APIs. | |
67 | ||
68 | This package contains the header files, libraries, and documentation | |
69 | for building programs which use Berkeley DB. | |
70 | ||
08a6ad78 JR |
71 | %description devel -l pl.UTF-8 |
72 | Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych | |
73 | zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i | |
74 | klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i | |
75 | funkcje mieszające ze stałą lub zmienną wielkością rekordu, | |
76 | transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie | |
46524cf3 AM |
77 | dla C, C++, Javy i Perla. |
78 | ||
08a6ad78 JR |
79 | Ten pakiet zawiera pliki nagłówkowe i dokumentację do budowania |
80 | programów używających Berkeley DB. | |
46524cf3 AM |
81 | |
82 | %package static | |
83 | Summary: Static libraries for Berkeley database library | |
08a6ad78 | 84 | Summary(pl.UTF-8): Statyczne biblioteki Berkeley Database |
46524cf3 AM |
85 | Group: Development/Libraries |
86 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
87 | Provides: db-static = %{version}-%{release} | |
88 | Obsoletes: db3-static | |
89 | Obsoletes: db4-static | |
90 | ||
91 | %description static | |
92 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that | |
93 | provides embedded database support for both traditional and | |
94 | client/server applications. Berkeley DB includes B+tree, Extended | |
95 | Linear Hashing, Fixed and Variable-length record access methods, | |
96 | transactions, locking, logging, shared memory caching and database | |
97 | recovery. DB supports C, C++, Java and Perl APIs. | |
98 | ||
99 | This package contains the static libraries for building programs which | |
100 | use Berkeley DB. | |
101 | ||
08a6ad78 JR |
102 | %description static -l pl.UTF-8 |
103 | Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych | |
104 | zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i | |
105 | klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i | |
106 | funkcje mieszające ze stałą lub zmienną wielkością rekordu, | |
107 | transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie | |
46524cf3 AM |
108 | dla C, C++, Javy i Perla. |
109 | ||
08a6ad78 JR |
110 | Ten pakiet zawiera statyczne biblioteki do budowania programów |
111 | używających Berkeley DB. | |
46524cf3 AM |
112 | |
113 | %package cxx | |
114 | Summary: Berkeley database library for C++ | |
08a6ad78 | 115 | Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla C++ |
46524cf3 AM |
116 | Group: Libraries |
117 | Provides: db-cxx = %{version}-%{release} | |
118 | Obsoletes: db4-cxx | |
119 | ||
120 | %description cxx | |
121 | Berkeley database library for C++. | |
122 | ||
08a6ad78 | 123 | %description cxx -l pl.UTF-8 |
46524cf3 AM |
124 | Biblioteka baz danych Berkeley dla C++. |
125 | ||
126 | %package cxx-devel | |
127 | Summary: Header files for db-cxx library | |
08a6ad78 | 128 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki db-cxx |
46524cf3 AM |
129 | Group: Development/Libraries |
130 | Requires: %{name}-cxx = %{epoch}:%{version}-%{release} | |
131 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
132 | Provides: db-cxx-devel = %{version}-%{release} | |
133 | Conflicts: db-devel < 4.1.25-3 | |
134 | ||
135 | %description cxx-devel | |
136 | Header files for db-cxx library. | |
137 | ||
08a6ad78 JR |
138 | %description cxx-devel -l pl.UTF-8 |
139 | Pliki nagłówkowe biblioteki db-cxx. | |
46524cf3 AM |
140 | |
141 | %package cxx-static | |
142 | Summary: Static version of db-cxx library | |
08a6ad78 | 143 | Summary(pl.UTF-8): Statyczna wersja biblioteki db-cxx |
46524cf3 AM |
144 | Group: Development/Libraries |
145 | Requires: %{name}-cxx-devel = %{epoch}:%{version}-%{release} | |
146 | Provides: db-cxx-static = %{version}-%{release} | |
147 | Conflicts: db-static < 4.2.50-1 | |
148 | ||
149 | %description cxx-static | |
150 | Static version of db-cxx library. | |
151 | ||
08a6ad78 | 152 | %description cxx-static -l pl.UTF-8 |
46524cf3 AM |
153 | Statyczna wersja biblioteki db-cxx. |
154 | ||
155 | %package java | |
156 | Summary: Berkeley database library for Java | |
08a6ad78 | 157 | Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla Javy |
46524cf3 AM |
158 | Group: Libraries |
159 | Requires: jre | |
160 | Provides: db-java = %{version}-%{release} | |
161 | ||
162 | %description java | |
163 | Berkeley database library for Java. | |
164 | ||
08a6ad78 | 165 | %description java -l pl.UTF-8 |
46524cf3 AM |
166 | Biblioteka baz danych Berkeley dla Javy. |
167 | ||
168 | %package java-devel | |
169 | Summary: Development files for db-java library | |
08a6ad78 | 170 | Summary(pl.UTF-8): Pliki programistyczne biblioteki db-java |
46524cf3 AM |
171 | Group: Development/Languages/Java |
172 | Requires: %{name}-java = %{epoch}:%{version}-%{release} | |
173 | Provides: db-java-devel = %{version}-%{release} | |
174 | Conflicts: db-devel < 4.1.25-3 | |
175 | ||
176 | %description java-devel | |
177 | Development files for db-java library. | |
178 | ||
08a6ad78 | 179 | %description java-devel -l pl.UTF-8 |
46524cf3 AM |
180 | Pliki programistyczne biblioteki db-java. |
181 | ||
182 | %package tcl | |
183 | Summary: Berkeley database library for Tcl | |
08a6ad78 | 184 | Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla Tcl |
46524cf3 AM |
185 | Group: Development/Languages/Tcl |
186 | Requires: tcl | |
187 | Provides: db-tcl = %{version}-%{release} | |
188 | Obsoletes: db4-tcl | |
189 | ||
190 | %description tcl | |
191 | Berkeley database library for Tcl. | |
192 | ||
08a6ad78 | 193 | %description tcl -l pl.UTF-8 |
46524cf3 AM |
194 | Biblioteka baz danych Berkeley dla Tcl. |
195 | ||
196 | %package tcl-devel | |
197 | Summary: Development files for db-tcl library | |
08a6ad78 | 198 | Summary(pl.UTF-8): Pliki programistyczne biblioteki db-tcl |
46524cf3 AM |
199 | Group: Development/Languages/Tcl |
200 | Requires: %{name}-tcl = %{epoch}:%{version}-%{release} | |
201 | Provides: db-tcl-devel = %{version}-%{release} | |
202 | Conflicts: db-devel < 4.1.25-3 | |
203 | ||
204 | %description tcl-devel | |
205 | Development files for db-tcl library. | |
206 | ||
08a6ad78 | 207 | %description tcl-devel -l pl.UTF-8 |
46524cf3 AM |
208 | Pliki programistyczne biblioteki db-tcl. |
209 | ||
210 | %package utils | |
211 | Summary: Command line tools for managing Berkeley DB databases | |
08a6ad78 | 212 | Summary(pl.UTF-8): Narzędzia do obsługi baz Berkeley DB z linii poleceń |
46524cf3 AM |
213 | Group: Applications/Databases |
214 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
215 | Provides: db-utils = %{version}-%{release} | |
216 | Obsoletes: db4-utils | |
217 | # obsolete Ra package | |
218 | Obsoletes: db3-utils | |
219 | ||
220 | %description utils | |
221 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that | |
222 | provides embedded database support for both traditional and | |
223 | client/server applications. Berkeley DB includes B+tree, Extended | |
224 | Linear Hashing, Fixed and Variable-length record access methods, | |
225 | transactions, locking, logging, shared memory caching and database | |
226 | recovery. DB supports C, C++, Java and Perl APIs. | |
227 | ||
228 | This package contains command line tools for managing Berkeley DB | |
229 | databases. | |
230 | ||
08a6ad78 JR |
231 | %description utils -l pl.UTF-8 |
232 | Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych | |
233 | zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i | |
234 | klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i | |
235 | funkcje mieszające ze stałą lub zmienną wielkością rekordu, | |
236 | transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie | |
46524cf3 AM |
237 | dla C, C++, Javy i Perla. |
238 | ||
08a6ad78 JR |
239 | Ten pakiet zawiera narzędzia do obsługi baz Berkeley DB z linii |
240 | poleceń. | |
46524cf3 AM |
241 | |
242 | %prep | |
243 | %setup -q -n db-%{version} | |
244 | ||
1f9bf16a | 245 | %if !%{with nptl} |
46524cf3 AM |
246 | sed -i -e 's,AM_PTHREADS_SHARED("POSIX/.*,:,' dist/aclocal/mutex.ac |
247 | %endif | |
248 | ||
249 | %build | |
250 | cd dist | |
251 | cp -f /usr/share/aclocal/libtool.m4 aclocal/libtool.ac | |
252 | cp -f /usr/share/automake/config.sub . | |
253 | cp -f /usr/share/libtool/ltmain.sh . | |
254 | sh s_config | |
255 | cd .. | |
256 | ||
257 | %if %{with static_libs} | |
258 | cp -a build_unix build_unix.static | |
259 | ||
260 | cd build_unix.static | |
261 | ||
262 | CC="%{__cc}" | |
263 | CXX="%{__cxx}" | |
264 | CFLAGS="%{rpmcflags}" | |
265 | CXXFLAGS="%{rpmcflags} -fno-implicit-templates" | |
266 | LDFLAGS="%{rpmldflags}" | |
267 | export CC CXX CFLAGS CXXFLAGS LDFLAGS | |
268 | ||
269 | ../dist/%configure \ | |
270 | --enable-compat185 \ | |
271 | --disable-shared \ | |
272 | --enable-static \ | |
273 | --enable-rpc \ | |
274 | --%{?with_pmutex:en}%{!?with_pmutex:dis}able-posixmutexes \ | |
275 | --enable-cxx | |
276 | ||
277 | # (temporarily?) disabled because of compilation errors: | |
278 | # --enable-dump185 \ | |
279 | ||
280 | %{__make} library_build | |
281 | cd .. | |
282 | %endif | |
283 | ||
284 | cd build_unix | |
285 | ||
286 | ../dist/%configure \ | |
287 | --prefix=%{_prefix} \ | |
288 | --libdir=%{_libdir} \ | |
289 | --enable-compat185 \ | |
290 | --enable-rpc \ | |
291 | --%{?with_pmutex:en}%{!?with_pmutex:dis}able-posixmutexes \ | |
292 | --enable-cxx \ | |
293 | %{?with_tcl:--enable-tcl} \ | |
294 | %{?with_tcl:--with-tcl=/usr/lib} \ | |
295 | %{?with_java:--enable-java} \ | |
296 | --disable-static \ | |
297 | --enable-shared | |
298 | ||
299 | %{__make} library_build \ | |
300 | TCFLAGS='-I$(builddir) -I%{_includedir}' \ | |
301 | LIBSO_LIBS="\$(LIBS)" \ | |
302 | LIBTSO_LIBS="\$(LIBS) -ltcl" | |
303 | ||
304 | %install | |
305 | rm -rf $RPM_BUILD_ROOT | |
306 | install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/%{_lib}} | |
307 | %if %{with java} | |
308 | install -d $RPM_BUILD_ROOT%{_javadir} | |
309 | %endif | |
310 | ||
311 | %if %{with static_libs} | |
312 | %{__make} -C build_unix.static library_install \ | |
313 | docdir=%{_docdir}/db-%{version}-docs \ | |
314 | DESTDIR=$RPM_BUILD_ROOT | |
315 | %endif | |
316 | ||
317 | %{__make} -C build_unix library_install \ | |
318 | docdir=%{_docdir}/db-%{version}-docs \ | |
319 | DESTDIR=$RPM_BUILD_ROOT \ | |
320 | LIB_INSTALL_FILE_LIST="" | |
321 | ||
322 | mv $RPM_BUILD_ROOT%{_libdir}/libdb-%{mver}.so $RPM_BUILD_ROOT/%{_lib} | |
323 | ||
324 | cd $RPM_BUILD_ROOT%{_libdir} | |
325 | ln -sf /%{_lib}/libdb-%{mver}.so libdb.so | |
326 | ln -sf /%{_lib}/libdb-%{mver}.so libdb4.so | |
327 | ln -sf /%{_lib}/libdb-%{mver}.so libdb-%{mver}.so | |
328 | ln -sf /%{_lib}/libdb-%{mver}.so libndbm.so | |
329 | ln -sf libdb-%{mver}.la libdb.la | |
330 | ln -sf libdb-%{mver}.la libdb4.la | |
331 | ln -sf libdb-%{mver}.la libndbm.la | |
332 | %if %{with java} | |
333 | ln -sf libdb_java-%{mver}.la libdb_java.la | |
334 | mv -f $RPM_BUILD_ROOT%{_libdir}/*.jar $RPM_BUILD_ROOT%{_javadir} | |
335 | %endif | |
336 | %if %{with tcl} | |
337 | ln -sf libdb_tcl-%{mver}.so libdb_tcl.so | |
338 | ln -sf libdb_tcl-%{mver}.la libdb_tcl.la | |
339 | %endif | |
340 | ln -sf libdb_cxx-%{mver}.la libdb_cxx.la | |
341 | %if %{with static_libs} | |
342 | mv -f libdb.a libdb-%{mver}.a | |
343 | ln -sf libdb-%{mver}.a libdb.a | |
344 | ln -sf libdb-%{mver}.a libdb4.a | |
345 | ln -sf libdb-%{mver}.a libndbm.a | |
346 | mv -f libdb_cxx.a libdb_cxx-%{mver}.a | |
347 | ln -sf libdb_cxx-%{mver}.a libdb_cxx.a | |
348 | %endif | |
349 | ln -sf libdb_cxx-%{mver}.so libdb_cxx.so | |
350 | ||
351 | sed -i "s/old_library=''/old_library='libdb-%{mver}.a'/" libdb-%{mver}.la | |
352 | sed -i "s/old_library=''/old_library='libdb_cxx-%{mver}.a'/" libdb_cxx-%{mver}.la | |
353 | ||
354 | cd - | |
355 | rm -f examples_c*/tags | |
356 | install -d $RPM_BUILD_ROOT%{_examplesdir}/db-%{version} | |
357 | cp -rf examples_c/* $RPM_BUILD_ROOT%{_examplesdir}/db-%{version} | |
358 | ||
359 | install -d $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version} | |
360 | cp -rf examples_cxx/* $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version} | |
361 | ||
362 | %if %{with java} | |
363 | install -d $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version} | |
364 | cp -rf examples_java/* $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version} | |
365 | %endif | |
366 | ||
367 | %clean | |
368 | rm -rf $RPM_BUILD_ROOT | |
369 | ||
370 | %post -p /sbin/ldconfig | |
371 | %postun -p /sbin/ldconfig | |
372 | ||
373 | %post tcl -p /sbin/ldconfig | |
374 | %postun tcl -p /sbin/ldconfig | |
375 | ||
376 | %post cxx -p /sbin/ldconfig | |
377 | %postun cxx -p /sbin/ldconfig | |
378 | ||
379 | %files | |
380 | %defattr(644,root,root,755) | |
381 | %doc LICENSE README | |
382 | %attr(755,root,root) /%{_lib}/libdb-%{mver}.so | |
383 | %dir %{_docdir}/db-%{version}-docs | |
384 | %{_docdir}/db-%{version}-docs/index.html | |
385 | ||
386 | %files devel | |
387 | %defattr(644,root,root,755) | |
388 | %attr(755,root,root) %{_libdir}/libdb-%{mver}.so | |
389 | %attr(755,root,root) %{_libdir}/libdb4.so | |
390 | %attr(755,root,root) %{_libdir}/libdb.so | |
391 | %attr(755,root,root) %{_libdir}/libndbm.so | |
392 | %{_libdir}/libdb-%{mver}.la | |
393 | %{_libdir}/libdb4.la | |
394 | %{_libdir}/libdb.la | |
395 | %{_libdir}/libndbm.la | |
396 | %{_includedir}/db.h | |
397 | %{_includedir}/db_185.h | |
398 | %{_docdir}/db-%{version}-docs/api_c | |
399 | %dir %{_docdir}/db-%{version}-docs/gsg | |
400 | %{_docdir}/db-%{version}-docs/gsg/C | |
401 | %dir %{_docdir}/db-%{version}-docs/gsg_txn | |
402 | %{_docdir}/db-%{version}-docs/gsg_txn/C | |
403 | %dir %{_docdir}/db-%{version}-docs/gsg_db_rep | |
404 | %{_docdir}/db-%{version}-docs/gsg_db_rep/C | |
405 | %{_docdir}/db-%{version}-docs/images | |
406 | %{_docdir}/db-%{version}-docs/ref | |
407 | %{_examplesdir}/db-%{version} | |
408 | ||
409 | %if %{with static_libs} | |
410 | %files static | |
411 | %defattr(644,root,root,755) | |
412 | %{_libdir}/libdb-%{mver}.a | |
413 | %{_libdir}/libdb4.a | |
414 | %{_libdir}/libdb.a | |
415 | %{_libdir}/libndbm.a | |
416 | %endif | |
417 | ||
418 | %files cxx | |
419 | %defattr(644,root,root,755) | |
420 | %attr(755,root,root) %{_libdir}/libdb_cxx-%{mver}.so | |
421 | ||
422 | %files cxx-devel | |
423 | %defattr(644,root,root,755) | |
424 | %attr(755,root,root) %{_libdir}/libdb_cxx.so | |
425 | %{_libdir}/libdb_cxx-%{mver}.la | |
426 | %{_libdir}/libdb_cxx.la | |
427 | %{_includedir}/db_cxx.h | |
428 | %{_docdir}/db-%{version}-docs/api_cxx | |
429 | %{_docdir}/db-%{version}-docs/gsg/CXX | |
430 | %{_docdir}/db-%{version}-docs/gsg_txn/CXX | |
431 | %{_docdir}/db-%{version}-docs/gsg_db_rep/CXX | |
432 | %{_examplesdir}/db-cxx-%{version} | |
433 | ||
434 | %if %{with static_libs} | |
435 | %files cxx-static | |
436 | %defattr(644,root,root,755) | |
437 | %{_libdir}/libdb_cxx-%{mver}.a | |
438 | %{_libdir}/libdb_cxx.a | |
439 | %endif | |
440 | ||
441 | %if %{with java} | |
442 | %files java | |
443 | %defattr(644,root,root,755) | |
444 | %attr(755,root,root) %{_libdir}/libdb_java-%{mver}.so | |
445 | %{_javadir}/db.jar | |
446 | ||
447 | %files java-devel | |
448 | %defattr(644,root,root,755) | |
449 | %attr(755,root,root) %{_libdir}/libdb_java.so | |
450 | %{_libdir}/libdb_java-%{mver}.la | |
451 | %{_libdir}/libdb_java.la | |
452 | %{_docdir}/db-%{version}-docs/collections | |
453 | %{_docdir}/db-%{version}-docs/gsg/JAVA | |
454 | %{_docdir}/db-%{version}-docs/gsg_txn/JAVA | |
455 | %{_docdir}/db-%{version}-docs/gsg_db_rep/JAVA | |
456 | %{_docdir}/db-%{version}-docs/java | |
457 | %{_examplesdir}/db-java-%{version} | |
458 | %endif | |
459 | ||
460 | %if %{with tcl} | |
461 | %files tcl | |
462 | %defattr(644,root,root,755) | |
463 | %attr(755,root,root) %{_libdir}/libdb_tcl-%{mver}.so | |
464 | ||
465 | %files tcl-devel | |
466 | %defattr(644,root,root,755) | |
467 | %attr(755,root,root) %{_libdir}/libdb_tcl.so | |
468 | %{_libdir}/libdb_tcl-%{mver}.la | |
469 | %{_libdir}/libdb_tcl.la | |
470 | %{_docdir}/db-%{version}-docs/api_tcl | |
471 | %endif | |
472 | ||
473 | %files utils | |
474 | %defattr(644,root,root,755) | |
475 | %attr(755,root,root) %{_bindir}/berkeley_db_svc | |
476 | %attr(755,root,root) %{_bindir}/db*_archive | |
477 | %attr(755,root,root) %{_bindir}/db*_checkpoint | |
478 | %attr(755,root,root) %{_bindir}/db*_deadlock | |
479 | %attr(755,root,root) %{_bindir}/db*_dump | |
480 | #%attr(755,root,root) %{_bindir}/db*_dump185 | |
481 | %attr(755,root,root) %{_bindir}/db*_hotbackup | |
482 | %attr(755,root,root) %{_bindir}/db*_load | |
483 | %attr(755,root,root) %{_bindir}/db*_printlog | |
484 | %attr(755,root,root) %{_bindir}/db*_recover | |
485 | %attr(755,root,root) %{_bindir}/db*_stat | |
486 | %attr(755,root,root) %{_bindir}/db*_upgrade | |
487 | %attr(755,root,root) %{_bindir}/db*_verify | |
488 | %{_docdir}/db-%{version}-docs/utility |