From 28a837129261f24545a78c9a01056b30fb36ae98 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 5 Jul 2022 14:30:11 +0100 Subject: [PATCH] update for new Java arches and bump to JDK 17 (#2103909) Resolves: rhbz#2103909 --- subversion.spec | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/subversion.spec b/subversion.spec index f3f9556..9e98ddd 100644 --- a/subversion.spec +++ b/subversion.spec @@ -29,10 +29,10 @@ %bcond_without ruby %endif -%ifarch %{power64} s390x -%global with_java 0 +%ifarch %{java_arches} +%bcond_without java %else -%global with_java 1 +%bcond_with java %endif %if %{with python2} == %{with python3} @@ -59,7 +59,7 @@ Summary: A Modern Concurrent Version Control System Name: subversion Version: 1.14.2 -Release: 3%{?dist} +Release: 4%{?dist} License: ASL 2.0 URL: https://subversion.apache.org/ Source0: https://downloads.apache.org/subversion/subversion-%{version}.tar.bz2 @@ -198,11 +198,11 @@ Requires: subversion-libs%{?_isa} = %{version}-%{release} %description perl This package includes the Perl bindings to the Subversion libraries. -%if %{with_java} +%if %{with java} %package javahl Summary: JNI bindings to the Subversion libraries Requires: subversion = %{version}-%{release} -BuildRequires: java-11-openjdk-devel +BuildRequires: java-17-openjdk-devel # JAR repacking requires both zip and unzip in the buildroot BuildRequires: zip, unzip # For the tests @@ -245,7 +245,7 @@ This package includes supplementary tools for use with Subversion. : : === Building: : === Python3=%{with python3} Python2=%{with python2} PySwig=%{with pyswig} -: === Java=%{with_java} Ruby=%{with ruby} +: === Java=%{with java} Ruby=%{with ruby} : === BDB=%{with bdb} Tests=%{with tests} KWallet=%{with kwallet} : @@ -294,7 +294,7 @@ export CC=gcc CXX=g++ JAVA_HOME=%{jdk_path} --disable-static --with-sasl=%{_prefix} \ --with-libmagic=%{_prefix} \ --with-gnome-keyring \ -%if %{with_java} +%if %{with java} --enable-javahl \ --with-junit=%{_prefix}/share/java/junit.jar \ %endif @@ -315,7 +315,7 @@ make swig-pl swig-pl-lib %if %{with ruby} make swig-rb swig-rb-lib %endif -%if %{with_java} +%if %{with java} # javahl-javah does not parallel-make with javahl #make javahl-java javahl-javah make javahl @@ -329,7 +329,7 @@ make install-swig-py %{swigdirs} DESTDIR=$RPM_BUILD_ROOT make install-swig-pl-lib install-swig-rb DESTDIR=$RPM_BUILD_ROOT make pure_vendor_install -C subversion/bindings/swig/perl/native \ PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -%if %{with_java} +%if %{with java} make install-javahl-java install-javahl-lib javahl_javadir=%{_javadir} DESTDIR=$RPM_BUILD_ROOT %endif @@ -467,7 +467,7 @@ if ! make check-swig-py; then fi %endif # check-swig-rb omitted: it runs svnserve -%if %{with_java} +%if %{with java} make check-javahl %endif %endif @@ -487,7 +487,7 @@ make check-javahl %ldconfig_scriptlets ruby -%if %{with_java} +%if %{with java} %ldconfig_scriptlets javahl %endif @@ -520,7 +520,7 @@ make check-javahl %{_libdir}/libsvn*.so.* %exclude %{_libdir}/libsvn_swig_perl* %exclude %{_libdir}/libsvn_swig_ruby* -%if %{with_java} +%if %{with java} %{_libdir}/libsvnjavahl-*.so %endif %if %{with kwallet} @@ -575,12 +575,15 @@ make check-javahl %{ruby_vendorarchdir}/svn %endif -%if %{with_java} +%if %{with java} %files javahl %{_javadir}/svn-javahl.jar %endif %changelog +* Tue Jul 5 2022 Joe Orton - 1.14.2-4 +- update for new Java arches and bump to JDK 17 (#2103909) + * Mon Jun 13 2022 Python Maint - 1.14.2-3 - Rebuilt for Python 3.11