packages: db4.8/db4.8.spec (NEW) - initial; 4.8.24

arekm arekm at pld-linux.org
Sun Sep 20 15:06:52 CEST 2009


Author: arekm                        Date: Sun Sep 20 13:06:52 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial; 4.8.24

---- Files affected:
packages/db4.8:
   db4.8.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/db4.8/db4.8.spec
diff -u /dev/null packages/db4.8/db4.8.spec:1.1
--- /dev/null	Sun Sep 20 15:06:52 2009
+++ packages/db4.8/db4.8.spec	Sun Sep 20 15:06:47 2009
@@ -0,0 +1,514 @@
+# $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
+
+%if "%{pld_release}" == "ti"
+%bcond_without	java_sun	# build with gcj
+%else
+%bcond_with	java_sun	# build with java-sun
+%endif
+
+%include	/usr/lib/rpm/macros.java
+
+%define		libver		4.8
+%define		ver			%{libver}.24
+%define		patchlevel	1
+Summary:	Berkeley DB database library for C
+Summary(pl.UTF-8):	Biblioteka C do obsługi baz Berkeley DB
+Name:		db4.8
+Version:	%{ver}.%{patchlevel}
+Release:	1
+Epoch:		0
+License:	GPL-like (see LICENSE)
+Group:		Libraries
+Source0:	http://download.oracle.com/berkeley-db/db-%{ver}.tar.gz
+# Source0-md5:	147afdecf438ff99ade105a5272db158
+# %%patchset_source -f http://www.oracle.com/technology/products/berkeley-db/db/update/%{ver}/patch.%{ver}.%g 1 %{patchlevel}
+URL:		http://www.oracle.com/technology/products/berkeley-db/index.html
+BuildRequires:	automake
+BuildRequires:	ed
+%if %{with java}
+%{!?with_java_sun:BuildRequires:	java-gcj-compat-devel}
+%{?with_java_sun:BuildRequires:	java-sun}
+BuildRequires:	rpm >= 4.4.9-56
+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 = %{version}-%{release}
+Provides:	db = %{libver}
+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} = %{epoch}:%{version}-%{release}
+Provides:	db-devel = %{version}-%{release}
+Obsoletes:	db3-devel
+Obsoletes:	db4-devel
+Obsoletes:	db4.5-devel
+Obsoletes:	db4.6-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 = %{epoch}:%{version}-%{release}
+Provides:	db-static = %{version}-%{release}
+Obsoletes:	db3-static
+Obsoletes:	db4-static
+Obsoletes:	db4.5-static
+Obsoletes:	db4.6-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 = %{epoch}:%{version}-%{release}
+Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+Provides:	db-cxx-devel = %{version}-%{release}
+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 = %{epoch}:%{version}-%{release}
+Provides:	db-cxx-static = %{version}-%{release}
+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}
+
+%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 = %{epoch}:%{version}-%{release}
+Provides:	db-java-devel = %{version}-%{release}
+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 = %{epoch}:%{version}-%{release}
+Provides:	db-tcl-devel = %{version}-%{release}
+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 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} = %{epoch}:%{version}-%{release}
+Provides:	db-utils = %{version}-%{release}
+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 \
+	--enable-compat185 \
+	--disable-shared \
+	--enable-static \
+	--enable-posixmutexes \
+	--enable-cxx
+
+# (temporarily?) disabled because of compilation errors:
+#	--enable-dump185 \
+
+%{__make} library_build
+cd ..
+%endif
+
+cd build_unix
+
+../dist/%configure \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir} \
+	--enable-compat185 \
+	--enable-posixmutexes \
+	--enable-cxx \
+	%{?with_tcl:--enable-tcl} \
+	%{?with_tcl:--with-tcl=/usr/lib} \
+	%{?with_java:--enable-java} \
+	--disable-static \
+	--enable-shared
+
+%{__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 libdb4.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 libdb4.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 libdb4.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 -
+rm -f examples_c*/tags
+install -d $RPM_BUILD_ROOT%{_examplesdir}/db-%{version}
+cp -rf examples_c/* $RPM_BUILD_ROOT%{_examplesdir}/db-%{version}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version}
+cp -rf examples_cxx/* $RPM_BUILD_ROOT%{_examplesdir}/db-cxx-%{version}
+
+%if %{with java}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version}
+cp -rf examples_java/* $RPM_BUILD_ROOT%{_examplesdir}/db-java-%{version}
+%endif
+
+# in %doc
+rm -f $RPM_BUILD_ROOT%{_docdir}/db-%{version}-docs/{index.html,license/license_db.html}
+
+# don't have csharp subpackages yet
+rm -rf $RPM_BUILD_ROOT%{_docdir}/db-%{version}-docs/csharp
+
+%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
+
+%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) %{_libdir}/libdb-%{libver}.so
+%attr(755,root,root) %{_libdir}/libdb4.so
+%attr(755,root,root) %{_libdir}/libdb.so
+%attr(755,root,root) %{_libdir}/libndbm.so
+%{_libdir}/libdb-%{libver}.la
+%{_libdir}/libdb4.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/porting
+%{_docdir}/db-%{version}-docs/programmer_reference
+%{_examplesdir}/db-%{version}
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libdb-%{libver}.a
+%{_libdir}/libdb4.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
+%{_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
+%{_javadir}/db.jar
+
+%files java-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdb_java.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
+%{_libdir}/libdb_tcl-%{libver}.la
+%{_libdir}/libdb_tcl.la
+%{_docdir}/db-%{version}-docs/api_reference/TCL
+%endif
+
+%files utils
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/db*_archive
+%attr(755,root,root) %{_bindir}/db*_checkpoint
+%attr(755,root,root) %{_bindir}/db*_deadlock
+%attr(755,root,root) %{_bindir}/db*_dump
+%attr(755,root,root) %{_bindir}/db*_hotbackup
+%attr(755,root,root) %{_bindir}/db*_load
+%attr(755,root,root) %{_bindir}/db*_printlog
+%attr(755,root,root) %{_bindir}/db*_recover
+%attr(755,root,root) %{_bindir}/db*_sql
+%attr(755,root,root) %{_bindir}/db*_stat
+%attr(755,root,root) %{_bindir}/db*_upgrade
+%attr(755,root,root) %{_bindir}/db*_verify
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/09/20 13:06:47  arekm
+- initial; 4.8.24
+
+Revision 1.23  2009/08/19 06:50:52  arekm
================================================================


More information about the pld-cvs-commit mailing list