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