From bde1dddfe3f47742f73aff328ff6b074d173764822493d464b404fdeeab75aaf Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 25 Apr 2024 01:51:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/junit?expand=0&rev=59 --- build.xml => junit-build.xml | 13 +++++++++---- junit.spec | 4 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) rename build.xml => junit-build.xml (95%) diff --git a/build.xml b/junit-build.xml similarity index 95% rename from build.xml rename to junit-build.xml index 59201cf..893ccdd 100644 --- a/build.xml +++ b/junit-build.xml @@ -9,8 +9,13 @@ + + + + + @@ -49,12 +54,12 @@ debug="true" optimize="false" deprecation="true" - release="8" - target="1.8" + release="${compiler.release}" + target="${compiler.target}" verbose="false" fork="true" memoryInitialSize="128m" - source="1.8"> + source="${compiler.source}"> @@ -74,7 +79,7 @@ packagenames="*" destdir="${reporting.outputDirectory}/apidocs" access="protected" - source="1.8" + source="${compiler.source}" verbose="false" version="true" use="true" diff --git a/junit.spec b/junit.spec index 53aa817..32be30f 100644 --- a/junit.spec +++ b/junit.spec @@ -24,7 +24,7 @@ License: EPL-1.0 Group: Development/Libraries/Java URL: https://junit.org/junit4/ Source0: %{name}-%{version}.tar.xz -Source1: build.xml +Source1: %{name}-build.xml Patch0: 0001-Port-to-hamcrest-2.2.patch BuildRequires: ant BuildRequires: fdupes @@ -66,7 +66,7 @@ Documentation for %{name}. %if %{?pkg_vcmp:%pkg_vcmp hamcrest >= 2.0}%{!?pkg_vcmp:0} %patch -P 0 -p1 %endif -cp %{SOURCE1} . +cp %{SOURCE1} build.xml find . -type f -name "*.jar" -or -name "*.class" | xargs -t rm -rf