From df457157af1175b746498132e6093e7a65fe3b9b4cc71ca8fe34615f9dfaf604 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 25 Oct 2023 16:32:24 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-collections?expand=0&rev=36 --- apache-commons-collections.changes | 9 +++++ apache-commons-collections.spec | 7 ++-- commons-collections-3.2-build_xml.patch | 54 +++++++++++++++++++++++-- 3 files changed, 62 insertions(+), 8 deletions(-) diff --git a/apache-commons-collections.changes b/apache-commons-collections.changes index 69505ca..444823d 100644 --- a/apache-commons-collections.changes +++ b/apache-commons-collections.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Oct 25 16:30:13 UTC 2023 - Fridrich Strba + +- Modified patch: + * commons-collections-3.2-build_xml.patch + + In ant Javac task, use "release" with compilers that support + it. Use source/target for others. Fixes some return value + incompatibilities with jdk 21 + ------------------------------------------------------------------- Thu May 5 16:22:53 UTC 2022 - Fridrich Strba diff --git a/apache-commons-collections.spec b/apache-commons-collections.spec index 259b16b..b15af58 100644 --- a/apache-commons-collections.spec +++ b/apache-commons-collections.spec @@ -1,7 +1,7 @@ # # spec file for package apache-commons-collections # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -99,9 +99,8 @@ sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt %build echo "junit.jar=$(build-classpath junit)" >>build.properties ant \ - -Dant.build.javac.source=8 -Dant.build.javac.target=8 \ - -Dant.build.javadoc.source=8 -Dtf.build.docs=build/docs/apidocs/ \ - -Djava.io.tmpdir=. jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc + -Dtf.build.docs=build/docs/apidocs/ -Djava.io.tmpdir=. \ + jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc %install # jars diff --git a/commons-collections-3.2-build_xml.patch b/commons-collections-3.2-build_xml.patch index 41357ec..3067b30 100644 --- a/commons-collections-3.2-build_xml.patch +++ b/commons-collections-3.2-build_xml.patch @@ -1,6 +1,26 @@ ---- build.xml.orig 2008-11-29 21:16:01.000000000 +0200 -+++ build.xml 2008-11-29 21:17:28.000000000 +0200 -@@ -286,7 +286,7 @@ +--- build.xml 2023-10-25 18:15:51.721217809 +0200 ++++ build.xml 2023-10-25 18:26:44.848980199 +0200 +@@ -124,6 +124,9 @@ + + +@@ -267,6 +270,9 @@ + + +@@ -286,7 +292,7 @@ @@ -9,7 +29,7 @@ -@@ -331,7 +331,7 @@ +@@ -331,7 +337,7 @@ @@ -18,3 +38,29 @@ +@@ -355,6 +361,7 @@ + + + + +@@ -453,6 +463,7 @@ + + +