packages: db5.1/db5.1.spec (NEW) - new
qboosh
qboosh at pld-linux.org
Wed May 11 16:44:13 CEST 2011
Author: qboosh Date: Wed May 11 14:44:13 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/db5.1:
db5.1.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/db5.1/db5.1.spec
diff -u /dev/null packages/db5.1/db5.1.spec:1.1
--- /dev/null Wed May 11 16:44:13 2011
+++ packages/db5.1/db5.1.spec Wed May 11 16:44:08 2011
@@ -0,0 +1,653 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without java # don't build java bindings
+%bcond_without tcl # don't build Tcl bindings
+%bcond_without static_libs # don't build static libraries
+
+%include /usr/lib/rpm/macros.java
+
+%define major 5
+%define libver %{major}.1
+%define ver %{libver}.25
+%define patchlevel 0
+Summary: Berkeley DB database library for C
+Summary(pl.UTF-8): Biblioteka C do obsługi baz Berkeley DB
+Name: db5.1
+Version: %{ver}.%{patchlevel}
+Release: 1
+License: BSD-like (see LICENSE)
+Group: Libraries
+#Source0Download: http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html
+Source0: http://download.oracle.com/berkeley-db/db-%{ver}.tar.gz
+# Source0-md5: 06656429bfc1abb6c0498eaeff70cd04
+URL: http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html
+BuildRequires: automake
+%if %{with java}
+BuildRequires: jdk
+BuildRequires: rpm-javaprov
+%endif
+BuildRequires: libstdc++-devel
+BuildRequires: rpmbuild(macros) >= 1.426
+BuildRequires: sed >= 4.0
+%{?with_tcl:BuildRequires: tcl-devel >= 8.4.0}
+Requires: uname(release) >= 2.6.0
+Provides: db = %{libver}
+Provides: db = %{version}-%{release}
+Obsoletes: db4
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Berkeley Database (Berkeley DB) is a programmatic toolkit that
+provides embedded database support for both traditional and
+client/server applications. Berkeley DB is used by many applications,
+including Python and Perl, so this should be installed on all systems.
+
+%description -l pl.UTF-8
+Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
+zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
+klient-serwer. Berkeley db jest używana w wielu aplikacjach, w tym w
+Pythonie i Perlu.
+
+%package devel
+Summary: Header files for Berkeley database library
+Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki Berkeley Database
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Provides: db-devel = %{version}-%{release}
+Obsoletes: db-devel
+Obsoletes: db3-devel
+Obsoletes: db4-devel
+
+%description devel
+The Berkeley Database (Berkeley DB) is a programmatic toolkit that
+provides embedded database support for both traditional and
+client/server applications. Berkeley DB includes B+tree, Extended
+Linear Hashing, Fixed and Variable-length record access methods,
+transactions, locking, logging, shared memory caching and database
+recovery. DB supports C, C++, Java and Perl APIs.
+
+This package contains the header files, libraries, and documentation
+for building programs which use Berkeley DB.
+
+%description devel -l pl.UTF-8
+Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
+zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
+klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
+funkcje mieszające ze stałą lub zmienną wielkością rekordu,
+transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie
+dla C, C++, Javy i Perla.
+
+Ten pakiet zawiera pliki nagłówkowe i dokumentację do budowania
+programów używających Berkeley DB.
+
+%package static
+Summary: Static libraries for Berkeley database library
+Summary(pl.UTF-8): Statyczne biblioteki Berkeley Database
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+Provides: db-static = %{version}-%{release}
+Obsoletes: db-static
+Obsoletes: db3-static
+Obsoletes: db4-static
+
+%description static
+The Berkeley Database (Berkeley DB) is a programmatic toolkit that
+provides embedded database support for both traditional and
+client/server applications. Berkeley DB includes B+tree, Extended
+Linear Hashing, Fixed and Variable-length record access methods,
+transactions, locking, logging, shared memory caching and database
+recovery. DB supports C, C++, Java and Perl APIs.
+
+This package contains the static libraries for building programs which
+use Berkeley DB.
+
+%description static -l pl.UTF-8
+Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
+zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
+klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
+funkcje mieszające ze stałą lub zmienną wielkością rekordu,
+transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie
+dla C, C++, Javy i Perla.
+
+Ten pakiet zawiera statyczne biblioteki do budowania programów
+używających Berkeley DB.
+
+%package cxx
+Summary: Berkeley database library for C++
+Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla C++
+Group: Libraries
+Provides: db-cxx = %{version}-%{release}
+Obsoletes: db4-cxx
+
+%description cxx
+Berkeley database library for C++.
+
+%description cxx -l pl.UTF-8
+Biblioteka baz danych Berkeley dla C++.
+
+%package cxx-devel
+Summary: Header files for db-cxx library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki db-cxx
+Group: Development/Libraries
+Requires: %{name}-cxx = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
+Provides: db-cxx-devel = %{version}-%{release}
+Obsoletes: db-cxx-devel
+Conflicts: db-devel < 4.1.25-3
+
+%description cxx-devel
+Header files for db-cxx library.
+
+%description cxx-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki db-cxx.
+
+%package cxx-static
+Summary: Static version of db-cxx library
+Summary(pl.UTF-8): Statyczna wersja biblioteki db-cxx
+Group: Development/Libraries
+Requires: %{name}-cxx-devel = %{version}-%{release}
+Provides: db-cxx-static = %{version}-%{release}
+Obsoletes: db-cxx-static
+Conflicts: db-static < 4.2.50-1
+
+%description cxx-static
+Static version of db-cxx library.
+
+%description cxx-static -l pl.UTF-8
+Statyczna wersja biblioteki db-cxx.
+
+%package java
+Summary: Berkeley database library for Java
+Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla Javy
+Group: Libraries
+Requires: jpackage-utils
+Provides: db-java = %{version}-%{release}
+# db.jar conflicts
+Obsoletes: db-java
+
+%description java
+Berkeley database library for Java.
+
+%description java -l pl.UTF-8
+Biblioteka baz danych Berkeley dla Javy.
+
+%package java-devel
+Summary: Development files for db-java library
+Summary(pl.UTF-8): Pliki programistyczne biblioteki db-java
+Group: Development/Languages/Java
+Requires: %{name}-java = %{version}-%{release}
+Provides: db-java-devel = %{version}-%{release}
+Obsoletes: db-java-devel
+Conflicts: db-devel < 4.1.25-3
+
+%description java-devel
+Development files for db-java library.
+
+%description java-devel -l pl.UTF-8
+Pliki programistyczne biblioteki db-java.
+
+%package tcl
+Summary: Berkeley database library for Tcl
+Summary(pl.UTF-8): Biblioteka baz danych Berkeley dla Tcl
+Group: Development/Languages/Tcl
+Requires: tcl
+Provides: db-tcl = %{version}-%{release}
+Obsoletes: db4-tcl
+
+%description tcl
+Berkeley database library for Tcl.
+
+%description tcl -l pl.UTF-8
+Biblioteka baz danych Berkeley dla Tcl.
+
+%package tcl-devel
+Summary: Development files for db-tcl library
+Summary(pl.UTF-8): Pliki programistyczne biblioteki db-tcl
+Group: Development/Languages/Tcl
+Requires: %{name}-tcl = %{version}-%{release}
+Provides: db-tcl-devel = %{version}-%{release}
+Obsoletes: db-tcl-devel
+Conflicts: db-devel < 4.1.25-3
+
+%description tcl-devel
+Development files for db-tcl library.
+
+%description tcl-devel -l pl.UTF-8
+Pliki programistyczne biblioteki db-tcl.
+
+%package sql
+Summary: SQL layer for Berkeley database library
+Summary(pl.UTF-8): Wartstwa SQL dla biblioteki baz danych Berkeley
+Group: Libraries
+Provides: db-sql = %{version}-%{release}
+
+%description sql
+SQL layer for Berkeley database library.
+
+%description sql -l pl.UTF-8
+Warstwa SQL dla biblioteki baz danych Berkeley.
+
+%package sql-devel
+Summary: Development files for db-sql library
+Summary(pl.UTF-8): Pliki programistyczne biblioteki db-sql
+Group: Development/Libraries
+Requires: %{name}-sql = %{version}-%{release}
+Provides: db-sql-devel = %{version}-%{release}
+
+%description sql-devel
+Development files for db-sql library.
+
+%description sql-devel -l pl.UTF-8
+Pliki programistyczne biblioteki db-sql.
+
+%package stl
+Summary: STL API for Berkeley Database library
+Summary(pl.UTF-8): API STL dla biblioteki Berkeley Database
+Group: Libraries
+Provides: db-stl = %{version}-%{release}
+
+%description stl
+STL API for Berkeley database library.
+
+%description stl -l pl.UTF-8
+API STL dla biblioteki Berkeley Database.
+
+%package stl-devel
+Summary: Development files for db-stl library
+Summary(pl.UTF-8): Pliki programistyczne biblioteki db-stl
+Group: Development/Libraries
+Requires: %{name}-stl = %{version}-%{release}
+Provides: db-stl-devel = %{version}-%{release}
+
+%description stl-devel
+Development files for db-stl library.
+
+%description stl-devel -l pl.UTF-8
+Pliki programistyczne biblioteki db-stl.
+
+%package sqlite3
+Summary: Sqlite3 API for Berkeley Database library
+Summary(pl.UTF-8): API Sqlite3 dla biblioteki Berkeley Database
+Group: Libraries
+Provides: db-sqlite3 = %{version}-%{release}
+
+%description sqlite3
+Sqlite3 API for Berkeley database library.
+
+%description sqlite3 -l pl.UTF-8
+API Sqlite3 dla biblioteki Berkeley Database.
+
+%package sqlite3-devel
+Summary: Development files for db-sqlite3 library
+Summary(pl.UTF-8): Pliki programistyczne biblioteki db-sqlite3
+Group: Development/Libraries
+Requires: %{name}-sqlite3 = %{version}-%{release}
+Provides: db-sqlite3-devel = %{version}-%{release}
+
+%description sqlite3-devel
+Development files for db-sqlite3 library.
+
+%description sqlite3-devel -l pl.UTF-8
+Pliki programistyczne biblioteki db-sqlite3.
+
+%package utils
+Summary: Command line tools for managing Berkeley DB databases
+Summary(pl.UTF-8): Narzędzia do obsługi baz Berkeley DB z linii poleceń
+Group: Applications/Databases
+Requires: %{name} = %{version}-%{release}
+Requires: %{name}-sql = %{version}-%{release}
+Provides: db-utils = %{version}-%{release}
+Obsoletes: db-utils
+Obsoletes: db3-utils
+Obsoletes: db4-utils
+
+%description utils
+The Berkeley Database (Berkeley DB) is a programmatic toolkit that
+provides embedded database support for both traditional and
+client/server applications. Berkeley DB includes B+tree, Extended
+Linear Hashing, Fixed and Variable-length record access methods,
+transactions, locking, logging, shared memory caching and database
+recovery. DB supports C, C++, Java and Perl APIs.
+
+This package contains command line tools for managing Berkeley DB
+databases.
+
+%description utils -l pl.UTF-8
+Berkeley Database (Berkeley DB) to zestaw narzędzi programistycznych
+zapewniających obsługę baz danych w aplikacjach tradycyjnych jak i
+klient-serwer. Berkeley DB obsługuje dostęp do bazy przez B-drzewa i
+funkcje mieszające ze stałą lub zmienną wielkością rekordu,
+transakcje, kroniki, pamięć dzieloną i odtwarzanie baz. Ma wsparcie
+dla C, C++, Javy i Perla.
+
+Ten pakiet zawiera narzędzia do obsługi baz Berkeley DB z linii
+poleceń.
+
+%prep
+%setup -q -n db-%{ver}
+
+# official patches
+#%%patchset_patch 1 %{patchlevel}
+
+%build
+cp -f /usr/share/automake/config.sub dist
+
+JAVACFLAGS="-source 1.5 -target 1.5"
+export JAVACFLAGS
+
+%if %{with static_libs}
+cp -a build_unix build_unix.static
+
+cd build_unix.static
+
+CC="%{__cc}"
+CXX="%{__cxx}"
+CFLAGS="%{rpmcflags}"
+CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
+LDFLAGS="%{rpmcflags} %{rpmldflags}"
+
+export CC CXX CFLAGS CXXFLAGS LDFLAGS
+
+../dist/%configure \
+ --disable-shared \
+ --enable-static \
+ --enable-compat185 \
+ --enable-cxx \
+ --enable-dbm \
+ --enable-build_dbm \
+ --enable-posixmutexes
+
+# (temporarily?) disabled because of compilation errors:
+# --enable-dump185 \
+
+%{__make} library_build
+cd ..
+%endif
+
+cd build_unix
+
+../dist/%configure \
+ --prefix=%{_prefix} \
+ --libdir=%{_libdir} \
+ --enable-shared \
+ --disable-static \
+ --enable-compat185 \
+ --enable-cxx \
+ --enable-dbm \
+ --enable-build_dbm \
+ --enable-posixmutexes \
+ --enable-sql \
+ --enable-sql_compat \
+ --enable-sql_codegen \
+ --enable-stl \
+ %{?with_java:--enable-java} \
+ %{?with_tcl:--enable-tcl --with-tcl=/usr/lib}
+
+%{__make} library_build \
+ TCFLAGS='-I$(builddir) -I%{_includedir}' \
+ LIBSO_LIBS="\$(LIBS)" \
+ LIBTSO_LIBS="\$(LIBS) -ltcl"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/%{_lib}}
+%if %{with java}
+install -d $RPM_BUILD_ROOT%{_javadir}
+%endif
+
+%if %{with static_libs}
+%{__make} -C build_unix.static library_install \
+ docdir=%{_docdir}/db-%{version}-docs \
+ DESTDIR=$RPM_BUILD_ROOT
+%endif
+
+%{__make} -C build_unix library_install \
+ docdir=%{_docdir}/db-%{version}-docs \
+ DESTDIR=$RPM_BUILD_ROOT \
+ LIB_INSTALL_FILE_LIST=""
+
+mv $RPM_BUILD_ROOT%{_libdir}/libdb-%{libver}.so $RPM_BUILD_ROOT/%{_lib}
+
+cd $RPM_BUILD_ROOT%{_libdir}
+ln -sf /%{_lib}/libdb-%{libver}.so libdb.so
+ln -sf /%{_lib}/libdb-%{libver}.so libdb-%{libver}.so
+ln -sf /%{_lib}/libdb-%{libver}.so libndbm.so
+ln -sf libdb-%{libver}.la libdb.la
+ln -sf libdb-%{libver}.la libndbm.la
+%if %{with java}
+ln -sf libdb_java-%{libver}.la libdb_java.la
+mv -f $RPM_BUILD_ROOT%{_libdir}/*.jar $RPM_BUILD_ROOT%{_javadir}
+%endif
+%if %{with tcl}
+ln -sf libdb_tcl-%{libver}.so libdb_tcl.so
+ln -sf libdb_tcl-%{libver}.la libdb_tcl.la
+%endif
+ln -sf libdb_cxx-%{libver}.la libdb_cxx.la
+%if %{with static_libs}
+mv -f libdb.a libdb-%{libver}.a
+ln -sf libdb-%{libver}.a libdb.a
+ln -sf libdb-%{libver}.a libndbm.a
+mv -f libdb_cxx.a libdb_cxx-%{libver}.a
+ln -sf libdb_cxx-%{libver}.a libdb_cxx.a
+%endif
+ln -sf libdb_cxx-%{libver}.so libdb_cxx.so
+
+sed -i "s/old_library=''/old_library='libdb-%{libver}.a'/" libdb-%{libver}.la
+sed -i "s/old_library=''/old_library='libdb_cxx-%{libver}.a'/" libdb_cxx-%{libver}.la
+
+cd -
+
+cd $RPM_BUILD_ROOT%{_bindir}
+mv dbsql{,-%{libver}}
+for F in db_*; do
+ mv $F $(echo $F|sed 's/db_/db%{libver}_/')
+done
+cd -
+
+# this should be done by configure, but is not
+sed -i -e 's/ifdef HAVE_DBM/if DB_DBM_HSEARCH != 0/' $RPM_BUILD_ROOT%{_includedir}/db.h
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/db-%{version}
+cp -a examples/c/* $RPM_BUILD_ROOT%{_examplesdir}/db-%{version}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version}
+cp -a examples/cxx/* $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version}
+
+%if %{with java}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version}
+cp -a examples/java/* $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version}
+%endif
+
+# in %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/db-%{version}-docs/{index.html,license/license_db.html}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%post tcl -p /sbin/ldconfig
+%postun tcl -p /sbin/ldconfig
+
+%post cxx -p /sbin/ldconfig
+%postun cxx -p /sbin/ldconfig
+
+%post sql -p /sbin/ldconfig
+%postun sql -p /sbin/ldconfig
+
+%post stl -p /sbin/ldconfig
+%postun stl -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README docs/index.html docs/license
+%attr(755,root,root) /%{_lib}/libdb-%{libver}.so
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/db%{libver}_sql_codegen
+%attr(755,root,root) %{_libdir}/libdb-%{libver}.so
+%attr(755,root,root) %{_libdir}/libdb-%{major}.so
+%attr(755,root,root) %{_libdir}/libdb.so
+%attr(755,root,root) %{_libdir}/libndbm.so
+%{_libdir}/libdb-%{libver}.la
+%{_libdir}/libdb.la
+%{_libdir}/libndbm.la
+%{_includedir}/db.h
+%{_includedir}/db_185.h
+%dir %{_docdir}/db-%{version}-docs
+%dir %{_docdir}/db-%{version}-docs/api_reference
+%{_docdir}/db-%{version}-docs/api_reference/C
+%{_docdir}/db-%{version}-docs/articles
+%dir %{_docdir}/db-%{version}-docs/gsg
+%{_docdir}/db-%{version}-docs/gsg/C
+%dir %{_docdir}/db-%{version}-docs/gsg_txn
+%{_docdir}/db-%{version}-docs/gsg_txn/C
+%dir %{_docdir}/db-%{version}-docs/gsg_db_rep
+%{_docdir}/db-%{version}-docs/gsg_db_rep/C
+%{_docdir}/db-%{version}-docs/installation
+%{_docdir}/db-%{version}-docs/porting
+%{_docdir}/db-%{version}-docs/programmer_reference
+%{_docdir}/db-%{version}-docs/upgrading
+%{_examplesdir}/db-%{version}
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libdb-%{libver}.a
+%{_libdir}/libdb.a
+%{_libdir}/libndbm.a
+%endif
+
+%files cxx
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_cxx-%{libver}.so
+
+%files cxx-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_cxx.so
+%attr(755,root,root) %{_libdir}/libdb_cxx-%{major}.so
+%{_libdir}/libdb_cxx-%{libver}.la
+%{_libdir}/libdb_cxx.la
+%{_includedir}/db_cxx.h
+%{_docdir}/db-%{version}-docs/api_reference/CXX
+%{_docdir}/db-%{version}-docs/api_reference/STL
+%{_docdir}/db-%{version}-docs/gsg/CXX
+%{_docdir}/db-%{version}-docs/gsg_txn/CXX
+%{_docdir}/db-%{version}-docs/gsg_db_rep/CXX
+%{_examplesdir}/db-cxx-%{version}
+
+%if %{with static_libs}
+%files cxx-static
+%defattr(644,root,root,755)
+%{_libdir}/libdb_cxx-%{libver}.a
+%{_libdir}/libdb_cxx.a
+%endif
+
+%if %{with java}
+%files java
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_java-%{libver}.so
+%attr(755,root,root) %{_libdir}/libdb_java-%{libver}_g.so
+%{_javadir}/db.jar
+
+%files java-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_java.so
+%attr(755,root,root) %{_libdir}/libdb_java-%{major}.so
+%{_libdir}/libdb_java-%{libver}.la
+%{_libdir}/libdb_java.la
+%{_docdir}/db-%{version}-docs/collections
+%{_docdir}/db-%{version}-docs/gsg/JAVA
+%{_docdir}/db-%{version}-docs/gsg_txn/JAVA
+%{_docdir}/db-%{version}-docs/gsg_db_rep/JAVA
+%{_docdir}/db-%{version}-docs/java
+%{_examplesdir}/db-java-%{version}
+%endif
+
+%if %{with tcl}
+%files tcl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_tcl-%{libver}.so
+
+%files tcl-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_tcl.so
+%attr(755,root,root) %{_libdir}/libdb_tcl-%{major}.so
+%{_libdir}/libdb_tcl-%{libver}.la
+%{_libdir}/libdb_tcl.la
+%{_docdir}/db-%{version}-docs/api_reference/TCL
+%endif
+
+%files sql
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_sql-%{libver}.so
+
+%files sql-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_sql.so
+%attr(755,root,root) %{_libdir}/libdb_sql-%{major}.so
<<Diff was trimmed, longer than 597 lines>>
More information about the pld-cvs-commit
mailing list