[packages/db4.7] Rel 14
arekm
arekm at pld-linux.org
Sun Aug 23 14:16:57 CEST 2026
commit e219b435133c8f781e3d009a27dc7510709cad4d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 23 14:16:48 2026 +0200
Rel 14
db4.7.spec | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/db4.7.spec b/db4.7.spec
index ae3aabd..809fedb 100644
--- a/db4.7.spec
+++ b/db4.7.spec
@@ -6,6 +6,9 @@
%bcond_without static_libs # don't build static libraries
%bcond_with default_db # use this db as default system db [Th uses DB 5.3]
+# javac 9+ rejects the -source/-target 1.5 the Java bindings are built with
+%{?with_java:%{?use_default_jdk:%use_default_jdk 8}}
+
%define libver 4.7
%define ver %{libver}.25
%define patchlevel 4
@@ -13,7 +16,7 @@ Summary: Berkeley DB database library for C
Summary(pl.UTF-8): Biblioteka C do obsługi baz Berkeley DB
Name: db4.7
Version: %{ver}.%{patchlevel}
-Release: 13
+Release: 14
License: GPL-like (see LICENSE)
Group: Libraries
#Source0Download: http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
@@ -25,12 +28,12 @@ URL: http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html
BuildRequires: automake
BuildRequires: ed
%if %{with java}
-BuildRequires: jdk
+%buildrequires_jdk
BuildRequires: rpm-javaprov
%endif
BuildRequires: libstdc++-devel
BuildRequires: libtirpc-devel
-BuildRequires: rpmbuild(macros) >= 1.426
+BuildRequires: rpmbuild(macros) >= 2.021
BuildRequires: sed >= 4.0
%{?with_tcl:BuildRequires: tcl-devel >= 8.4.0}
Requires: uname(release) >= 2.6.0
@@ -300,6 +303,13 @@ cp -f /usr/share/automake/config.sub dist
JAVACFLAGS="-source 1.5 -target 1.5"
export JAVACFLAGS
+%if %{with java}
+JAVA="%{java_home}/bin/java"
+JAVAC="%{java_home}/bin/javac"
+JAR="%{java_home}/bin/jar"
+export JAVA JAVAC JAR
+%endif
+
%define configuredir ../dist
%if %{with static_libs}
@@ -364,6 +374,7 @@ install -d $RPM_BUILD_ROOT%{_javadir}
%if %{with static_libs}
%{__make} -C build_unix.static library_install \
DESTDIR=$RPM_BUILD_ROOT \
+ STRIP=: \
docdir=%{_docdir}/db-%{version}-docs \
includedir=%{_includedir}
%endif
@@ -371,6 +382,7 @@ install -d $RPM_BUILD_ROOT%{_javadir}
%{__make} -C build_unix library_install \
DESTDIR=$RPM_BUILD_ROOT \
LIB_INSTALL_FILE_LIST="" \
+ STRIP=: \
docdir=%{_docdir}/db-%{version}-docs \
includedir=%{_includedir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/db4.7.git/commitdiff/e219b435133c8f781e3d009a27dc7510709cad4d
More information about the pld-cvs-commit
mailing list