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