From 0c80b66a6fd7d9008e2e69b98dbb64bdb27a5494d9a5f69233900d68ea6867e1 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 21 Sep 2023 06:43:14 +0000 Subject: [PATCH 1/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/xz-java?expand=0&rev=9 --- xz-java.changes | 5 +++++ xz-java.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/xz-java.changes b/xz-java.changes index 317b227..f6cc5dc 100644 --- a/xz-java.changes +++ b/xz-java.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 21 06:43:05 UTC 2023 - Fridrich Strba + +- Build with java source/target levels 8 + ------------------------------------------------------------------- Mon Dec 12 19:32:21 UTC 2022 - Anton Shvetz diff --git a/xz-java.spec b/xz-java.spec index ed55bc0..07e2e30 100644 --- a/xz-java.spec +++ b/xz-java.spec @@ -1,7 +1,7 @@ # # spec file for package xz-java # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2013 Peter Conrad # # All modifications and additions to the file contributed by third parties @@ -51,6 +51,7 @@ This package contains the API documentation of xz-java. %build sed -i 's/linkoffline="[^"]*"//;/extdoc_/d' build.xml +sed -i 's/sourcever = 7/sourcever = 8/g' build.properties ant -Dant.build.javac.{source,target}=8 clean jar doc maven %install @@ -69,7 +70,7 @@ cp -pr build/doc/* %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license COPYING -%doc NEWS README THANKS +%doc NEWS README THANKS whatever %{_javadir}/xz.jar %files javadoc From 802026d5e47328807687c2c737dc53f852b9b478009e18c2cbd25e5abda45961 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 21 Sep 2023 06:47:47 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/xz-java?expand=0&rev=10 --- xz-java.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xz-java.spec b/xz-java.spec index 07e2e30..09a5c7a 100644 --- a/xz-java.spec +++ b/xz-java.spec @@ -70,7 +70,7 @@ cp -pr build/doc/* %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license COPYING -%doc NEWS README THANKS whatever +%doc NEWS README THANKS %{_javadir}/xz.jar %files javadoc