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