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