- rpm 4 picks default, make it rpm db
[packages/db5.3.git] / db5.3.spec
CommitLineData
841072e5
JB
1#
2# Conditional build:
3%bcond_without java # don't build Java bindings
4%bcond_without tcl # don't build Tcl bindings
5%bcond_without static_libs # don't build static libraries
4e6e1f78 6%bcond_with sqlite3 # build Sqlite3 API libraries
1ac2c874 7%bcond_without default_db # don't use this db as default system db [Th uses DB 5.3]
7f8c9e88 8%bcond_without rpm_db # install library to rootfs for /bin/rpm
841072e5 9
7837bdca 10%{load:/usr/lib/rpm/macros.d/java}
841072e5
JB
11
12%define major 5
13%define libver %{major}.3
d06fb19b 14%define ver %{libver}.28
841072e5
JB
15%define patchlevel 0
16Summary: Berkeley DB database library for C
17Summary(pl.UTF-8): Biblioteka C do obsługi baz Berkeley DB
18Name: db5.3
19Version: %{ver}.%{patchlevel}
7f8c9e88 20Release: 5
841072e5
JB
21License: BSD-like (see LICENSE)
22Group: Libraries
dcee36cd 23#Source0Download: http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html
841072e5 24Source0: http://download.oracle.com/berkeley-db/db-%{ver}.tar.gz
d06fb19b 25# Source0-md5: b99454564d5b4479750567031d66fe24
21bea13e
JB
26Patch0: %{name}-link.patch
27Patch1: %{name}-sql-features.patch
7b423534 28Patch2: db-5.3.28-cwd-db_config.patch
49e45ab3 29Patch3: %{name}-atomic_compare_exchange.patch
dcee36cd 30URL: http://www.oracle.com/technetwork/products/berkeleydb/downloads/index.html
841072e5
JB
31BuildRequires: automake
32%if %{with java}
33BuildRequires: jdk
34BuildRequires: rpm-javaprov
35%endif
36BuildRequires: libstdc++-devel
37BuildRequires: rpmbuild(macros) >= 1.426
38BuildRequires: sed >= 4.0
39%{?with_tcl:BuildRequires: tcl-devel >= 8.4.0}
40Requires: uname(release) >= 2.6.0
41%if %{with default_db}
42Provides: db = %{version}-%{release}
43Provides: db = %{libver}
44Obsoletes: db4
45%endif
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%if %{without default_db}
49%define _includedir %{_prefix}/include/db%{libver}
50%endif
51
52%description
53The Berkeley Database (Berkeley DB) is a programmatic toolkit that
54provides embedded database support for both traditional and
55client/server applications. Berkeley DB is used by many applications,
56including Python and Perl, so this should be installed on all systems.
57
58%description -l pl.UTF-8
59Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
60zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
61klient-serwer. Berkeley db jest używana w wielu aplikacjach, w tym w
62Pythonie i Perlu.
63
64%package devel
65Summary: Header files for Berkeley database library
66Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki Berkeley Database
67Group: Development/Libraries
68Requires: %{name} = %{version}-%{release}
69%if %{with default_db}
70Provides: db-devel = %{version}-%{release}
71Obsoletes: db-devel
72Obsoletes: db3-devel
73Obsoletes: db4-devel
74%endif
75
76%description devel
77The Berkeley Database (Berkeley DB) is a programmatic toolkit that
78provides embedded database support for both traditional and
79client/server applications. Berkeley DB includes B+tree, Extended
80Linear Hashing, Fixed and Variable-length record access methods,
81transactions, locking, logging, shared memory caching and database
82recovery. DB supports C, C++, Java and Perl APIs.
83
84This package contains the header files, libraries, and documentation
85for building programs which use Berkeley DB.
86
87%description devel -l pl.UTF-8
88Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
89zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
90klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
91funkcje mieszające ze stałą lub zmienną wielkością rekordu,
92transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie
93dla C, C++, Javy i Perla.
94
95Ten pakiet zawiera pliki nagłówkowe i dokumentację do budowania
96programów używających Berkeley DB.
97
98%package static
99Summary: Static libraries for Berkeley database library
100Summary(pl.UTF-8): Statyczne biblioteki Berkeley Database
101Group: Development/Libraries
102Requires: %{name}-devel = %{version}-%{release}
103%if %{with default_db}
104Provides: db-static = %{version}-%{release}
105Obsoletes: db-static
106Obsoletes: db3-static
107Obsoletes: db4-static
108%endif
109
110%description static
111The Berkeley Database (Berkeley DB) is a programmatic toolkit that
112provides embedded database support for both traditional and
113client/server applications. Berkeley DB includes B+tree, Extended
114Linear Hashing, Fixed and Variable-length record access methods,
115transactions, locking, logging, shared memory caching and database
116recovery. DB supports C, C++, Java and Perl APIs.
117
118This package contains the static libraries for building programs which
119use Berkeley DB.
120
121%description static -l pl.UTF-8
122Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
123zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
124klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
125funkcje mieszające ze stałą lub zmienną wielkością rekordu,
126transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie
127dla C, C++, Javy i Perla.
128
129Ten pakiet zawiera statyczne biblioteki do budowania programów
130używających Berkeley DB.
131
132%package cxx
133Summary: Berkeley database library for C++
134Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla C++
135Group: Libraries
136%if %{with default_db}
137Provides: db-cxx = %{version}-%{release}
138Obsoletes: db4-cxx
139%endif
140
141%description cxx
142Berkeley database library for C++.
143
144%description cxx -l pl.UTF-8
145Biblioteka baz danych Berkeley dla C++.
146
147%package cxx-devel
148Summary: Header files for db-cxx library
149Summary(pl.UTF-8): Pliki nagłówkowe biblioteki db-cxx
150Group: Development/Libraries
151Requires: %{name}-cxx = %{version}-%{release}
152Requires: %{name}-devel = %{version}-%{release}
153%if %{with default_db}
154Provides: db-cxx-devel = %{version}-%{release}
155Obsoletes: db-cxx-devel
156%endif
157Conflicts: db-devel < 4.1.25-3
158
159%description cxx-devel
160Header files for db-cxx library.
161
162%description cxx-devel -l pl.UTF-8
163Pliki nagłówkowe biblioteki db-cxx.
164
165%package cxx-static
166Summary: Static version of db-cxx library
167Summary(pl.UTF-8): Statyczna wersja biblioteki db-cxx
168Group: Development/Libraries
169Requires: %{name}-cxx-devel = %{version}-%{release}
170%if %{with default_db}
171Provides: db-cxx-static = %{version}-%{release}
172Obsoletes: db-cxx-static
173%endif
174Conflicts: db-static < 4.2.50-1
175
176%description cxx-static
177Static version of db-cxx library.
178
179%description cxx-static -l pl.UTF-8
180Statyczna wersja biblioteki db-cxx.
181
182%package java
183Summary: Berkeley database library for Java
184Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla Javy
185Group: Libraries
186Requires: jpackage-utils
187%if %{with default_db}
188Provides: db-java = %{version}-%{release}
189Obsoletes: db-java
190%endif
191
192%description java
193Berkeley database library for Java.
194
195%description java -l pl.UTF-8
196Biblioteka baz danych Berkeley dla Javy.
197
198%package java-devel
199Summary: Development files for db-java library
200Summary(pl.UTF-8): Pliki programistyczne biblioteki db-java
201Group: Development/Languages/Java
202Requires: %{name}-java = %{version}-%{release}
203%if %{with default_db}
204Provides: db-java-devel = %{version}-%{release}
205Obsoletes: db-java-devel
206%endif
207Conflicts: db-devel < 4.1.25-3
208
209%description java-devel
210Development files for db-java library.
211
212%description java-devel -l pl.UTF-8
213Pliki programistyczne biblioteki db-java.
214
215%package tcl
216Summary: Berkeley database library for Tcl
217Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla Tcl
218Group: Development/Languages/Tcl
219Requires: tcl
220%if %{with default_db}
221Provides: db-tcl = %{version}-%{release}
222Obsoletes: db4-tcl
223%endif
224
225%description tcl
226Berkeley database library for Tcl.
227
228%description tcl -l pl.UTF-8
229Biblioteka baz danych Berkeley dla Tcl.
230
231%package tcl-devel
232Summary: Development files for db-tcl library
233Summary(pl.UTF-8): Pliki programistyczne biblioteki db-tcl
234Group: Development/Languages/Tcl
235Requires: %{name}-tcl = %{version}-%{release}
236%if %{with default_db}
237Provides: db-tcl-devel = %{version}-%{release}
238Obsoletes: db-tcl-devel
239%endif
240Conflicts: db-devel < 4.1.25-3
241
242%description tcl-devel
243Development files for db-tcl library.
244
245%description tcl-devel -l pl.UTF-8
246Pliki programistyczne biblioteki db-tcl.
247
248%package sql
249Summary: SQL layer for Berkeley database library
250Summary(pl.UTF-8): Wartstwa SQL dla biblioteki baz danych Berkeley
251Group: Libraries
21bea13e 252%if %{with default_db}
841072e5
JB
253Provides: db-sql = %{version}-%{release}
254%endif
255
256%description sql
257SQL layer for Berkeley database library.
258
259%description sql -l pl.UTF-8
260Warstwa SQL dla biblioteki baz danych Berkeley.
261
262%package sql-devel
263Summary: Development files for db-sql library
264Summary(pl.UTF-8): Pliki programistyczne biblioteki db-sql
265Group: Development/Libraries
266Requires: %{name}-sql = %{version}-%{release}
21bea13e 267%if %{with default_db}
841072e5
JB
268Provides: db-sql-devel = %{version}-%{release}
269Obsoletes: db-sql-devel
270%endif
271
272%description sql-devel
273Development files for db-sql library.
274
275%description sql-devel -l pl.UTF-8
276Pliki programistyczne biblioteki db-sql.
277
278%package stl
279Summary: STL API for Berkeley Database library
280Summary(pl.UTF-8): API STL dla biblioteki Berkeley Database
281Group: Libraries
282%if %{with default_db}
283Provides: db-stl = %{version}-%{release}
284%endif
285
286%description stl
287STL API for Berkeley database library.
288
289%description stl -l pl.UTF-8
290API STL dla biblioteki Berkeley Database.
291
292%package stl-devel
293Summary: Development files for db-stl library
294Summary(pl.UTF-8): Pliki programistyczne biblioteki db-stl
295Group: Development/Libraries
296Requires: %{name}-stl = %{version}-%{release}
297%if %{with default_db}
298Provides: db-stl-devel = %{version}-%{release}
299Obsoletes: db-stl-devel
300%endif
301
302%description stl-devel
303Development files for db-stl library.
304
305%description stl-devel -l pl.UTF-8
306Pliki programistyczne biblioteki db-stl.
307
308%package sqlite3
309Summary: Sqlite3 API for Berkeley Database library
310Summary(pl.UTF-8): API Sqlite3 dla biblioteki Berkeley Database
311Group: Libraries
312%if %{with default_db}
313Provides: db-sqlite3 = %{version}-%{release}
314%endif
315
316%description sqlite3
317Sqlite3 API for Berkeley database library.
318
319%description sqlite3 -l pl.UTF-8
320API Sqlite3 dla biblioteki Berkeley Database.
321
322%package sqlite3-devel
323Summary: Development files for db-sqlite3 library
324Summary(pl.UTF-8): Pliki programistyczne biblioteki db-sqlite3
325Group: Development/Libraries
326Requires: %{name}-sqlite3 = %{version}-%{release}
327%if %{with default_db}
328Provides: db-sqlite3-devel = %{version}-%{release}
329Obsoletes: db-sqlite3-devel
330%endif
331
332%description sqlite3-devel
333Development files for db-sqlite3 library.
334
335%description sqlite3-devel -l pl.UTF-8
336Pliki programistyczne biblioteki db-sqlite3.
337
338%package utils
339Summary: Command line tools for managing Berkeley DB databases
340Summary(pl.UTF-8): Narzędzia do obsługi baz Berkeley DB z linii poleceń
341Group: Applications/Databases
342Requires: %{name} = %{version}-%{release}
343Requires: %{name}-sql = %{version}-%{release}
344%if %{with default_db}
345Provides: db-utils = %{version}-%{release}
346Obsoletes: db-utils
347Obsoletes: db3-utils
348Obsoletes: db4-utils
349%endif
350
351%description utils
352The Berkeley Database (Berkeley DB) is a programmatic toolkit that
353provides embedded database support for both traditional and
354client/server applications. Berkeley DB includes B+tree, Extended
355Linear Hashing, Fixed and Variable-length record access methods,
356transactions, locking, logging, shared memory caching and database
357recovery. DB supports C, C++, Java and Perl APIs.
358
359This package contains command line tools for managing Berkeley DB
360databases.
361
362%description utils -l pl.UTF-8
363Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
364zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
365klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
366funkcje mieszające ze stałą lub zmienną wielkością rekordu,
367transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie
368dla C, C++, Javy i Perla.
369
370Ten pakiet zawiera narzędzia do obsługi baz Berkeley DB z linii
371poleceń.
372
373%prep
374%setup -q -n db-%{ver}
21bea13e
JB
375%patch0 -p1
376%patch1 -p1
7b423534 377%patch2 -p1
49e45ab3 378%patch3 -p1
841072e5
JB
379
380%build
381cp -f /usr/share/automake/config.sub dist
87b58ffc 382cp -f /usr/share/automake/config.sub lang/sql/sqlite
841072e5
JB
383
384JAVACFLAGS="-source 1.5 -target 1.5"
385export JAVACFLAGS
386
387%if %{with static_libs}
388cp -a build_unix build_unix.static
389
390cd build_unix.static
391
392CC="%{__cc}"
393CXX="%{__cxx}"
394CFLAGS="%{rpmcflags}"
395CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
396LDFLAGS="%{rpmcflags} %{rpmldflags}"
397export CC CXX CFLAGS CXXFLAGS LDFLAGS
398
399../dist/%configure \
400 --disable-shared \
401 --enable-static \
402 --enable-compat185 \
403 --enable-cxx \
404 --enable-dbm \
405 --enable-build_dbm \
406 --enable-posixmutexes
407
408# (temporarily?) disabled because of compilation errors:
409# --enable-dump185 \
410
411%{__make} library_build
412cd ..
413%endif
414
415cd build_unix
416
417../dist/%configure \
418 --prefix=%{_prefix} \
419 --libdir=%{_libdir} \
420 --enable-shared \
421 --disable-static \
422 --enable-compat185 \
423 --enable-cxx \
424 --enable-dbm \
425 --enable-build_dbm \
426 --enable-posixmutexes \
427 --enable-sql \
4e6e1f78 428 %{?with_sqlite3:--enable-sql_compat} \
841072e5
JB
429 --enable-sql_codegen \
430 --enable-stl \
431 %{?with_java:--enable-java} \
432 %{?with_tcl:--enable-tcl --with-tcl=/usr/lib}
433
434%{__make} library_build \
435 TCFLAGS='-I$(builddir) -I%{_includedir}' \
436 LIBSO_LIBS="\$(LIBS)" \
437 LIBTSO_LIBS="\$(LIBS) -ltcl"
438
439%install
440rm -rf $RPM_BUILD_ROOT
441install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir}}
442%if %{with java}
443install -d $RPM_BUILD_ROOT%{_javadir}
444%endif
445
446%if %{with static_libs}
447%{__make} -C build_unix.static library_install \
448 DESTDIR=$RPM_BUILD_ROOT \
449 docdir=%{_docdir}/db-%{version}-docs \
450 includedir=%{_includedir}
451%endif
452
453%{__make} -C build_unix library_install \
454 DESTDIR=$RPM_BUILD_ROOT \
455 LIB_INSTALL_FILE_LIST="" \
456 docdir=%{_docdir}/db-%{version}-docs \
457 includedir=%{_includedir}
458
7837bdca 459%if %{with rpm_db}
841072e5
JB
460install -d $RPM_BUILD_ROOT/%{_lib}
461mv $RPM_BUILD_ROOT%{_libdir}/libdb-%{libver}.so $RPM_BUILD_ROOT/%{_lib}
7837bdca 462ln -sf /%{_lib}/libdb-%{libver}.so $RPM_BUILD_ROOT%{_libdir}/libdb-%{libver}.so
841072e5
JB
463%endif
464
465cd $RPM_BUILD_ROOT%{_libdir}
466%if %{with static_libs}
467mv -f libdb.a libdb-%{libver}.a
468mv -f libdb_cxx.a libdb_cxx-%{libver}.a
469%endif
470%if %{with java}
471mv -f $RPM_BUILD_ROOT%{_libdir}/db.jar $RPM_BUILD_ROOT%{_javadir}/db-%{libver}.jar
472%endif
473%if %{with default_db}
7837bdca
JR
474ln -sf libdb-%{libver}.so libdb.so
475ln -sf libdb-%{libver}.so libndbm.so
841072e5
JB
476ln -sf libdb-%{libver}.la libdb.la
477ln -sf libdb-%{libver}.la libndbm.la
478ln -sf libdb_cxx-%{libver}.so libdb_cxx.so
479ln -sf libdb_cxx-%{libver}.la libdb_cxx.la
480%if %{with java}
481ln -sf libdb_java-%{libver}.la libdb_java.la
482ln -sf db-%{libver}.jar $RPM_BUILD_ROOT%{_javadir}/db.jar
483%endif
484%if %{with tcl}
485ln -sf libdb_tcl-%{libver}.so libdb_tcl.so
486ln -sf libdb_tcl-%{libver}.la libdb_tcl.la
487%endif
488%if %{with static_libs}
489ln -sf libdb-%{libver}.a libdb.a
490ln -sf libdb-%{libver}.a libndbm.a
491ln -sf libdb_cxx-%{libver}.a libdb_cxx.a
492%endif
7837bdca
JR
493%else
494%{__rm} libdb.so
495%{__rm} libdb_cxx.so
496%{__rm} libdb_sql.so
497%{__rm} libdb_stl.so
498%{__rm} libdb-%{major}.so
499%{__rm} libdb_cxx-%{major}.so
500%{__rm} libdb_sql-%{major}.so
501%{__rm} libdb_stl-%{major}.so
502%if %{with java}
503%{__rm} libdb_java.so
504%{__rm} libdb_java-%{major}.so
505%endif
506%if %{with tcl}
507%{__rm} libdb_tcl.so
508%{__rm} libdb_tcl-%{major}.so
509%endif
841072e5
JB
510%endif
511
512sed -i "s/old_library=''/old_library='libdb-%{libver}.a'/" libdb-%{libver}.la
513sed -i "s/old_library=''/old_library='libdb_cxx-%{libver}.a'/" libdb_cxx-%{libver}.la
514
515cd -
516
517cd $RPM_BUILD_ROOT%{_bindir}
518mv dbsql dbsql-%{libver}
519%{?with_default_db:ln -sf dbsql-%{libver} dbsql}
520for F in db_*; do
521 Fver=$(echo $F|sed 's/db_/db%{libver}_/')
522 mv $F $Fver
523 %{?with_default_db:ln -sf $Fver $F}
524done
525cd -
526
527install -d $RPM_BUILD_ROOT%{_examplesdir}/db-%{version}
528cp -a examples/c/* $RPM_BUILD_ROOT%{_examplesdir}/db-%{version}
529
530install -d $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version}
531cp -a examples/cxx/* $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version}
532
533%if %{with java}
534install -d $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version}
535cp -a examples/java/* $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version}
536%endif
537
538# in %doc
539%{__rm} $RPM_BUILD_ROOT%{_docdir}/db-%{version}-docs/{index.html,license/license_db.html}
540
541# don't have csharp subpackages yet
542%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/db-%{version}-docs/csharp
543
544%clean
545rm -rf $RPM_BUILD_ROOT
546
547%post -p /sbin/ldconfig
548%postun -p /sbin/ldconfig
549
550%post tcl -p /sbin/ldconfig
551%postun tcl -p /sbin/ldconfig
552
553%post cxx -p /sbin/ldconfig
554%postun cxx -p /sbin/ldconfig
555
556%post sql -p /sbin/ldconfig
557%postun sql -p /sbin/ldconfig
558
559%post stl -p /sbin/ldconfig
560%postun stl -p /sbin/ldconfig
561
562%files
563%defattr(644,root,root,755)
564%doc LICENSE README docs/index.html docs/license
7837bdca 565%if %{with rpm_db}
841072e5
JB
566%attr(755,root,root) /%{_lib}/libdb-%{libver}.so
567%else
568%attr(755,root,root) %{_libdir}/libdb-%{libver}.so
569%endif
570
571%files devel
572%defattr(644,root,root,755)
573%attr(755,root,root) %{_bindir}/db%{libver}_sql_codegen
574%{_libdir}/libdb-%{libver}.la
7837bdca
JR
575%if %{with rpm_db}
576%attr(755,root,root) %{_libdir}/libdb-%{libver}.so
577%endif
841072e5
JB
578%if %{with default_db}
579%attr(755,root,root) %{_bindir}/db_sql_codegen
841072e5
JB
580%attr(755,root,root) %{_libdir}/libdb-%{major}.so
581%attr(755,root,root) %{_libdir}/libdb.so
582%attr(755,root,root) %{_libdir}/libndbm.so
583%{_libdir}/libdb.la
584%{_libdir}/libndbm.la
585%else
586%dir %{_includedir}
587%endif
588%{_includedir}/db.h
589%{_includedir}/db_185.h
590%dir %{_docdir}/db-%{version}-docs
591%dir %{_docdir}/db-%{version}-docs/api_reference
592%{_docdir}/db-%{version}-docs/api_reference/C
593%{_docdir}/db-%{version}-docs/articles
594%dir %{_docdir}/db-%{version}-docs/gsg
595%{_docdir}/db-%{version}-docs/gsg/C
596%dir %{_docdir}/db-%{version}-docs/gsg_txn
597%{_docdir}/db-%{version}-docs/gsg_txn/C
598%dir %{_docdir}/db-%{version}-docs/gsg_db_rep
599%{_docdir}/db-%{version}-docs/gsg_db_rep/C
600%{_docdir}/db-%{version}-docs/installation
601%{_docdir}/db-%{version}-docs/porting
602%{_docdir}/db-%{version}-docs/programmer_reference
603%{_docdir}/db-%{version}-docs/upgrading
604%{_examplesdir}/db-%{version}
605
606%if %{with static_libs}
607%files static
608%defattr(644,root,root,755)
609%{_libdir}/libdb-%{libver}.a
610%if %{with default_db}
611%{_libdir}/libdb.a
612%{_libdir}/libndbm.a
613%endif
614%endif
615
616%files cxx
617%defattr(644,root,root,755)
618%attr(755,root,root) %{_libdir}/libdb_cxx-%{libver}.so
619
620%files cxx-devel
621%defattr(644,root,root,755)
622%{_libdir}/libdb_cxx-%{libver}.la
623%if %{with default_db}
624%attr(755,root,root) %{_libdir}/libdb_cxx-%{major}.so
625%attr(755,root,root) %{_libdir}/libdb_cxx.so
626%{_libdir}/libdb_cxx.la
627%endif
628%{_includedir}/db_cxx.h
629%{_docdir}/db-%{version}-docs/api_reference/CXX
630%{_docdir}/db-%{version}-docs/api_reference/STL
631%{_docdir}/db-%{version}-docs/gsg/CXX
632%{_docdir}/db-%{version}-docs/gsg_txn/CXX
633%{_docdir}/db-%{version}-docs/gsg_db_rep/CXX
634%{_examplesdir}/db-cxx-%{version}
635
636%if %{with static_libs}
637%files cxx-static
638%defattr(644,root,root,755)
639%{_libdir}/libdb_cxx-%{libver}.a
640%if %{with default_db}
641%{_libdir}/libdb_cxx.a
642%endif
643%endif
644
645%if %{with java}
646%files java
647%defattr(644,root,root,755)
648%attr(755,root,root) %{_libdir}/libdb_java-%{libver}.so
649%attr(755,root,root) %{_libdir}/libdb_java-%{libver}_g.so
650%{_javadir}/db-%{libver}.jar
651%if %{with default_db}
652%{_javadir}/db.jar
653%endif
654
655%files java-devel
656%defattr(644,root,root,755)
657%{_libdir}/libdb_java-%{libver}.la
658%if %{with default_db}
659%attr(755,root,root) %{_libdir}/libdb_java.so
660%attr(755,root,root) %{_libdir}/libdb_java-%{major}.so
661%{_libdir}/libdb_java.la
662%endif
663%{_docdir}/db-%{version}-docs/collections
664%{_docdir}/db-%{version}-docs/gsg/JAVA
665%{_docdir}/db-%{version}-docs/gsg_txn/JAVA
666%{_docdir}/db-%{version}-docs/gsg_db_rep/JAVA
667%{_docdir}/db-%{version}-docs/java
668%{_examplesdir}/db-java-%{version}
669%endif
670
671%if %{with tcl}
672%files tcl
673%defattr(644,root,root,755)
674%attr(755,root,root) %{_libdir}/libdb_tcl-%{libver}.so
675
676%files tcl-devel
677%defattr(644,root,root,755)
678%{_libdir}/libdb_tcl-%{libver}.la
679%if %{with default_db}
680%attr(755,root,root) %{_libdir}/libdb_tcl.so
681%attr(755,root,root) %{_libdir}/libdb_tcl-%{major}.so
682%{_libdir}/libdb_tcl.la
683%endif
684%{_docdir}/db-%{version}-docs/api_reference/TCL
685%endif
686
687%files sql
688%defattr(644,root,root,755)
689%attr(755,root,root) %{_libdir}/libdb_sql-%{libver}.so
690
691%files sql-devel
692%defattr(644,root,root,755)
693%{_libdir}/libdb_sql-%{libver}.la
694%if %{with default_db}
695%attr(755,root,root) %{_libdir}/libdb_sql.so
696%attr(755,root,root) %{_libdir}/libdb_sql-%{major}.so
697%endif
698%{_includedir}/dbsql.h
699%{_docdir}/db-%{version}-docs/bdb-sql
700
701%files stl
702%defattr(644,root,root,755)
703%attr(755,root,root) %{_libdir}/libdb_stl-%{libver}.so
704
705%files stl-devel
706%defattr(644,root,root,755)
707%{_libdir}/libdb_stl-%{libver}.la
708%if %{with default_db}
709%attr(755,root,root) %{_libdir}/libdb_stl.so
710%attr(755,root,root) %{_libdir}/libdb_stl-%{major}.so
711%endif
712%{_includedir}/dbstl_base_iterator.h
713%{_includedir}/dbstl_common.h
714%{_includedir}/dbstl_container.h
715%{_includedir}/dbstl_dbc.h
716%{_includedir}/dbstl_dbt.h
717%{_includedir}/dbstl_element_ref.h
718%{_includedir}/dbstl_exception.h
719%{_includedir}/dbstl_inner_utility.h
720%{_includedir}/dbstl_map.h
721%{_includedir}/dbstl_resource_manager.h
722%{_includedir}/dbstl_set.h
723%{_includedir}/dbstl_utility.h
724%{_includedir}/dbstl_vector.h
725
4e6e1f78 726%if %{with sqlite3}
841072e5
JB
727%files sqlite3
728%defattr(644,root,root,755)
729%attr(755,root,root) %{_bindir}/sqlite3
730%attr(755,root,root) %{_libdir}/libsqlite3.so
731
732%files sqlite3-devel
733%defattr(644,root,root,755)
734%{_libdir}/libsqlite3.la
735%{_includedir}/sqlite3.h
4e6e1f78 736%endif
841072e5
JB
737
738%files utils
739%defattr(644,root,root,755)
740%attr(755,root,root) %{_bindir}/db%{libver}_archive
741%attr(755,root,root) %{_bindir}/db%{libver}_checkpoint
742%attr(755,root,root) %{_bindir}/db%{libver}_deadlock
743%attr(755,root,root) %{_bindir}/db%{libver}_dump
744%attr(755,root,root) %{_bindir}/db%{libver}_hotbackup
745%attr(755,root,root) %{_bindir}/db%{libver}_load
746%attr(755,root,root) %{_bindir}/db%{libver}_log_verify
747%attr(755,root,root) %{_bindir}/db%{libver}_printlog
748%attr(755,root,root) %{_bindir}/db%{libver}_recover
749%attr(755,root,root) %{_bindir}/db%{libver}_replicate
750%attr(755,root,root) %{_bindir}/db%{libver}_stat
751%attr(755,root,root) %{_bindir}/db%{libver}_tuner
752%attr(755,root,root) %{_bindir}/db%{libver}_upgrade
753%attr(755,root,root) %{_bindir}/db%{libver}_verify
754%attr(755,root,root) %{_bindir}/dbsql-%{libver}
755%if %{with default_db}
756%attr(755,root,root) %{_bindir}/db_archive
757%attr(755,root,root) %{_bindir}/db_checkpoint
758%attr(755,root,root) %{_bindir}/db_deadlock
759%attr(755,root,root) %{_bindir}/db_dump
760%attr(755,root,root) %{_bindir}/db_hotbackup
761%attr(755,root,root) %{_bindir}/db_load
762%attr(755,root,root) %{_bindir}/db_log_verify
763%attr(755,root,root) %{_bindir}/db_printlog
764%attr(755,root,root) %{_bindir}/db_recover
765%attr(755,root,root) %{_bindir}/db_replicate
766%attr(755,root,root) %{_bindir}/db_stat
767%attr(755,root,root) %{_bindir}/db_tuner
768%attr(755,root,root) %{_bindir}/db_upgrade
769%attr(755,root,root) %{_bindir}/db_verify
770%attr(755,root,root) %{_bindir}/dbsql
771%endif
This page took 0.294756 seconds and 4 git commands to generate.