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