]>
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 JB |
239 | Provides: db-utils = %{version}-%{release} |
240 | Obsoletes: db4-utils | |
398a4479 JB |
241 | # obsolete Ra package |
242 | Obsoletes: db3-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" | |
299 | LDFLAGS="%{rpmldflags}" | |
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} | |
368 | mv -f $RPM_BUILD_ROOT%{_libdir}/*.jar $RPM_BUILD_ROOT%{_javadir} | |
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 | |
9ff799b6 JB |
382 | %endif |
383 | %if %{with tcl} | |
384 | ln -sf libdb_tcl-4.4.so libdb_tcl.so | |
385 | ln -sf libdb_tcl-4.4.la libdb_tcl.la | |
386 | %endif | |
9ff799b6 | 387 | %if %{with static_libs} |
9ff799b6 JB |
388 | ln -sf libdb-4.4.a libdb.a |
389 | ln -sf libdb-4.4.a libdb4.a | |
390 | ln -sf libdb-4.4.a libndbm.a | |
9ff799b6 JB |
391 | ln -sf libdb_cxx-4.4.a libdb_cxx.a |
392 | %endif | |
ef894a9c | 393 | %endif |
9ff799b6 JB |
394 | |
395 | sed -i "s/old_library=''/old_library='libdb-4.4.a'/" libdb-4.4.la | |
396 | sed -i "s/old_library=''/old_library='libdb_cxx-4.4.a'/" libdb_cxx-4.4.la | |
397 | ||
398 | cd - | |
399 | rm -f examples_c*/tags | |
400 | install -d $RPM_BUILD_ROOT%{_examplesdir}/db-%{version} | |
401 | cp -rf examples_c/* $RPM_BUILD_ROOT%{_examplesdir}/db-%{version} | |
402 | ||
403 | install -d $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version} | |
404 | cp -rf examples_cxx/* $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version} | |
405 | ||
406 | %if %{with java} | |
407 | install -d $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version} | |
408 | cp -rf examples_java/* $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version} | |
6a2508d3 JB |
409 | %else |
410 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/db-%{version}-docs/java | |
9ff799b6 JB |
411 | %endif |
412 | ||
413 | %clean | |
414 | rm -rf $RPM_BUILD_ROOT | |
415 | ||
416 | %post -p /sbin/ldconfig | |
417 | %postun -p /sbin/ldconfig | |
418 | ||
419 | %post tcl -p /sbin/ldconfig | |
420 | %postun tcl -p /sbin/ldconfig | |
421 | ||
422 | %post cxx -p /sbin/ldconfig | |
423 | %postun cxx -p /sbin/ldconfig | |
424 | ||
425 | %files | |
426 | %defattr(644,root,root,755) | |
427 | %doc LICENSE README | |
ef894a9c | 428 | %if %{with default_db} |
9ff799b6 | 429 | %attr(755,root,root) /%{_lib}/libdb-4.4.so |
ef894a9c JB |
430 | %else |
431 | %attr(755,root,root) %{_libdir}/libdb-4.4.so | |
432 | %endif | |
9ff799b6 JB |
433 | %dir %{_docdir}/db-%{version}-docs |
434 | %{_docdir}/db-%{version}-docs/sleepycat | |
435 | %{_docdir}/db-%{version}-docs/index.html | |
436 | ||
437 | %files devel | |
438 | %defattr(644,root,root,755) | |
ef894a9c JB |
439 | %{_libdir}/libdb-4.4.la |
440 | %if %{with default_db} | |
9ff799b6 JB |
441 | %attr(755,root,root) %{_libdir}/libdb-4.4.so |
442 | %attr(755,root,root) %{_libdir}/libdb4.so | |
443 | %attr(755,root,root) %{_libdir}/libdb.so | |
444 | %attr(755,root,root) %{_libdir}/libndbm.so | |
9ff799b6 JB |
445 | %{_libdir}/libdb4.la |
446 | %{_libdir}/libdb.la | |
447 | %{_libdir}/libndbm.la | |
ef894a9c JB |
448 | %else |
449 | %dir %{_includedir} | |
450 | %endif | |
9ff799b6 JB |
451 | %{_includedir}/db.h |
452 | %{_includedir}/db_185.h | |
453 | %{_docdir}/db-%{version}-docs/api_c | |
454 | %dir %{_docdir}/db-%{version}-docs/gsg | |
455 | %{_docdir}/db-%{version}-docs/gsg/C | |
456 | %dir %{_docdir}/db-%{version}-docs/gsg_txn | |
457 | %{_docdir}/db-%{version}-docs/gsg_txn/C | |
458 | %{_docdir}/db-%{version}-docs/images | |
459 | %{_docdir}/db-%{version}-docs/ref | |
460 | %{_examplesdir}/db-%{version} | |
461 | ||
462 | %if %{with static_libs} | |
463 | %files static | |
464 | %defattr(644,root,root,755) | |
465 | %{_libdir}/libdb-4.4.a | |
ef894a9c | 466 | %if %{with default_db} |
9ff799b6 JB |
467 | %{_libdir}/libdb4.a |
468 | %{_libdir}/libdb.a | |
469 | %{_libdir}/libndbm.a | |
470 | %endif | |
ef894a9c | 471 | %endif |
9ff799b6 JB |
472 | |
473 | %files cxx | |
474 | %defattr(644,root,root,755) | |
475 | %attr(755,root,root) %{_libdir}/libdb_cxx-4.4.so | |
476 | ||
477 | %files cxx-devel | |
478 | %defattr(644,root,root,755) | |
9ff799b6 | 479 | %{_libdir}/libdb_cxx-4.4.la |
ef894a9c JB |
480 | %if %{with default_db} |
481 | %attr(755,root,root) %{_libdir}/libdb_cxx.so | |
9ff799b6 | 482 | %{_libdir}/libdb_cxx.la |
ef894a9c | 483 | %endif |
9ff799b6 JB |
484 | %{_includedir}/db_cxx.h |
485 | %{_docdir}/db-%{version}-docs/api_cxx | |
486 | %{_docdir}/db-%{version}-docs/gsg/CXX | |
487 | %{_docdir}/db-%{version}-docs/gsg_txn/CXX | |
488 | %{_examplesdir}/db-cxx-%{version} | |
489 | ||
490 | %if %{with static_libs} | |
491 | %files cxx-static | |
492 | %defattr(644,root,root,755) | |
493 | %{_libdir}/libdb_cxx-4.4.a | |
ef894a9c | 494 | %if %{with default_db} |
9ff799b6 JB |
495 | %{_libdir}/libdb_cxx.a |
496 | %endif | |
ef894a9c | 497 | %endif |
9ff799b6 JB |
498 | |
499 | %if %{with java} | |
500 | %files java | |
501 | %defattr(644,root,root,755) | |
502 | %attr(755,root,root) %{_libdir}/libdb_java-4.4.so | |
503 | %{_javadir}/db.jar | |
504 | ||
505 | %files java-devel | |
506 | %defattr(644,root,root,755) | |
9ff799b6 | 507 | %{_libdir}/libdb_java-4.4.la |
ef894a9c JB |
508 | %if %{with default_db} |
509 | %attr(755,root,root) %{_libdir}/libdb_java.so | |
9ff799b6 | 510 | %{_libdir}/libdb_java.la |
ef894a9c | 511 | %endif |
9ff799b6 JB |
512 | %{_docdir}/db-%{version}-docs/collections |
513 | %{_docdir}/db-%{version}-docs/gsg/JAVA | |
514 | %{_docdir}/db-%{version}-docs/gsg_txn/JAVA | |
515 | %{_docdir}/db-%{version}-docs/java | |
516 | %{_examplesdir}/db-java-%{version} | |
517 | %endif | |
518 | ||
519 | %if %{with tcl} | |
520 | %files tcl | |
521 | %defattr(644,root,root,755) | |
522 | %attr(755,root,root) %{_libdir}/libdb_tcl-4.4.so | |
523 | ||
524 | %files tcl-devel | |
525 | %defattr(644,root,root,755) | |
9ff799b6 | 526 | %{_libdir}/libdb_tcl-4.4.la |
ef894a9c JB |
527 | %if %{with default_db} |
528 | %attr(755,root,root) %{_libdir}/libdb_tcl.so | |
9ff799b6 | 529 | %{_libdir}/libdb_tcl.la |
ef894a9c | 530 | %endif |
9ff799b6 JB |
531 | %{_docdir}/db-%{version}-docs/api_tcl |
532 | %endif | |
533 | ||
534 | %files utils | |
535 | %defattr(644,root,root,755) | |
536 | %attr(755,root,root) %{_bindir}/berkeley_db_svc | |
537 | %attr(755,root,root) %{_bindir}/db*_archive | |
538 | %attr(755,root,root) %{_bindir}/db*_checkpoint | |
539 | %attr(755,root,root) %{_bindir}/db*_deadlock | |
540 | %attr(755,root,root) %{_bindir}/db*_dump | |
541 | #%attr(755,root,root) %{_bindir}/db*_dump185 | |
542 | %attr(755,root,root) %{_bindir}/db*_hotbackup | |
543 | %attr(755,root,root) %{_bindir}/db*_load | |
544 | %attr(755,root,root) %{_bindir}/db*_printlog | |
545 | %attr(755,root,root) %{_bindir}/db*_recover | |
546 | %attr(755,root,root) %{_bindir}/db*_stat | |
547 | %attr(755,root,root) %{_bindir}/db*_upgrade | |
548 | %attr(755,root,root) %{_bindir}/db*_verify | |
549 | %{_docdir}/db-%{version}-docs/utility |