From d969a6e39d8d47e66cb4b85e367338a21aa686558060f372b4451a0bc6c4346a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 19 Mar 2022 21:50:23 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jdepend?expand=0&rev=13 --- jdepend-target16.patch | 31 ------------------------------- jdepend.changes | 9 +++++++++ jdepend.spec | 9 +++++---- 3 files changed, 14 insertions(+), 35 deletions(-) delete mode 100644 jdepend-target16.patch diff --git a/jdepend-target16.patch b/jdepend-target16.patch deleted file mode 100644 index 625f3c2..0000000 --- a/jdepend-target16.patch +++ /dev/null @@ -1,31 +0,0 @@ -Index: build.xml -=================================================================== ---- build.xml.orig -+++ build.xml -@@ -38,7 +38,7 @@ - - -- -@@ -48,7 +48,7 @@ - - -- -@@ -59,7 +59,7 @@ - -- diff --git a/jdepend.changes b/jdepend.changes index 967d9df..14c0e57 100644 --- a/jdepend.changes +++ b/jdepend.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Mar 19 21:48:11 UTC 2022 - Fridrich Strba + +- Specify the source/target levels 8 on ant invocation +- Removed patch: + * jdepend-target16.patch + + not needed with the source/target levels being specified on + command-line + ------------------------------------------------------------------- Tue Dec 28 13:00:04 UTC 2021 - David Anes diff --git a/jdepend.spec b/jdepend.spec index 50914a6..b55a798 100644 --- a/jdepend.spec +++ b/jdepend.spec @@ -1,7 +1,7 @@ # # spec file for package jdepend # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,6 @@ Group: Development/Libraries/Java URL: http://www.clarkware.com/software/JDepend.html Source0: https://github.com/clarkware/jdepend/archive/refs/tags/%{version}.tar.gz Source1: %{name}-%{version}.pom -Patch0: jdepend-target16.patch BuildRequires: ant BuildRequires: java-devel BuildRequires: javapackages-local @@ -58,10 +57,12 @@ This package contains demonstration and sample files for JDepend. %setup -q # remove all binary libs find . -name "*.jar" -exec rm -f {} \; -%patch0 -b .target15 %build -ant jar +%ant \ + -Dant.build.javac.source=1.8 \ + -Dant.build.javac.target=1.8 \ + jar %install # jars