Fridrich Strba 2024-04-25 01:51:19 +00:00 committed by Git OBS Bridge
parent 529b1b7b50
commit bde1dddfe3
2 changed files with 11 additions and 6 deletions

View File

@ -9,8 +9,13 @@
<property file="build.properties"/> <property file="build.properties"/>
<property name="project.artifactId" value="junit"/> <property name="project.artifactId" value="junit"/>
<property name="project.groupId" value="junit"/>
<property name="project.version" value="4.13.2"/> <property name="project.version" value="4.13.2"/>
<property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/> <property name="build.finalName" value="${project.artifactId}-${project.version}"/>
<property name="build.dir" value="target"/> <property name="build.dir" value="target"/>
<property name="build.outputDir" value="${build.dir}/classes"/> <property name="build.outputDir" value="${build.dir}/classes"/>
@ -49,12 +54,12 @@
debug="true" debug="true"
optimize="false" optimize="false"
deprecation="true" deprecation="true"
release="8" release="${compiler.release}"
target="1.8" target="${compiler.target}"
verbose="false" verbose="false"
fork="true" fork="true"
memoryInitialSize="128m" memoryInitialSize="128m"
source="1.8"> source="${compiler.source}">
<src> <src>
<pathelement location="${build.srcDir}"/> <pathelement location="${build.srcDir}"/>
</src> </src>
@ -74,7 +79,7 @@
packagenames="*" packagenames="*"
destdir="${reporting.outputDirectory}/apidocs" destdir="${reporting.outputDirectory}/apidocs"
access="protected" access="protected"
source="1.8" source="${compiler.source}"
verbose="false" verbose="false"
version="true" version="true"
use="true" use="true"

View File

@ -24,7 +24,7 @@ License: EPL-1.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: https://junit.org/junit4/ URL: https://junit.org/junit4/
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
Source1: build.xml Source1: %{name}-build.xml
Patch0: 0001-Port-to-hamcrest-2.2.patch Patch0: 0001-Port-to-hamcrest-2.2.patch
BuildRequires: ant BuildRequires: ant
BuildRequires: fdupes BuildRequires: fdupes
@ -66,7 +66,7 @@ Documentation for %{name}.
%if %{?pkg_vcmp:%pkg_vcmp hamcrest >= 2.0}%{!?pkg_vcmp:0} %if %{?pkg_vcmp:%pkg_vcmp hamcrest >= 2.0}%{!?pkg_vcmp:0}
%patch -P 0 -p1 %patch -P 0 -p1
%endif %endif
cp %{SOURCE1} . cp %{SOURCE1} build.xml
find . -type f -name "*.jar" -or -name "*.class" | xargs -t rm -rf find . -type f -name "*.jar" -or -name "*.class" | xargs -t rm -rf