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