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