#
# Conditional build:
-%bcond_without java # don't build java bindings
+%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
%define major 5
%define libver %{major}.0
-%define ver %{libver}.21
+%define ver %{libver}.32
%define patchlevel 0
Summary: Berkeley DB database library for C
Summary(pl.UTF-8): Biblioteka C do obsługi baz Berkeley DB
Name: db5.0
Version: %{ver}.%{patchlevel}
-Release: 2
+Release: 1
License: BSD-like (see LICENSE)
Group: Libraries
+#Source0Download: http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
Source0: http://download.oracle.com/berkeley-db/db-%{ver}.tar.gz
-# Source0-md5: 9a749fd2e98fe15840493ddc34cc66d8
-# %%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/db/index.html
+# Source0-md5: b63afbd6ab191d0f19e00927f25d66fe
+# %%patchset_source -f http://download.oracle.com/berkeley-db/patches/db/%{ver}/patch.%{ver}.%g 1 %{patchlevel}
+URL: http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html
BuildRequires: automake
%if %{with java}
BuildRequires: jdk
%prep
%setup -q -n db-%{ver}
-
# official patches
#%%patchset_patch 1 %{patchlevel}
CFLAGS="%{rpmcflags}"
CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
LDFLAGS="%{rpmcflags} %{rpmldflags}"
-
export CC CXX CFLAGS CXXFLAGS LDFLAGS
../dist/%configure \
%if %{with static_libs}
%{__make} -C build_unix.static library_install \
- docdir=%{_docdir}/db-%{version}-docs \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ docdir=%{_docdir}/db-%{version}-docs
%endif
%{__make} -C build_unix library_install \
- docdir=%{_docdir}/db-%{version}-docs \
DESTDIR=$RPM_BUILD_ROOT \
- LIB_INSTALL_FILE_LIST=""
+ LIB_INSTALL_FILE_LIST="" \
+ docdir=%{_docdir}/db-%{version}-docs
mv $RPM_BUILD_ROOT%{_libdir}/libdb-%{libver}.so $RPM_BUILD_ROOT/%{_lib}
%endif
# in %doc
-rm -f $RPM_BUILD_ROOT%{_docdir}/db-%{version}-docs/{index.html,license/license_db.html}
+%{__rm} $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
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/db-%{version}-docs/csharp
%clean
rm -rf $RPM_BUILD_ROOT