diff --git a/.gitignore b/.gitignore
index ecd44ef..d4b4463 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ junit3.8.2.zip
/r4.11.tar.gz
/junit-4.11-clean.tar.gz
/junit-4.12-clean.tar.gz
+/junit4-4.13-clean.tar.gz
diff --git a/create-tarball.sh b/create-tarball.sh
index 1594760..d6b835e 100755
--- a/create-tarball.sh
+++ b/create-tarball.sh
@@ -8,15 +8,15 @@ fi
VERSION=${1}
NAME="junit"
-wget https://github.com/${NAME}-team/${NAME}/archive/r${VERSION}.tar.gz
+wget https://github.com/${NAME}-team/${NAME}4/archive/r${VERSION}.tar.gz
tar xvf r${VERSION}.tar.gz
(
- cd ${NAME}-r${VERSION}
+ cd ${NAME}4-r${VERSION}
find . -name "*.jar" -delete
find . -name "*.class" -delete
)
-tar czvf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-r${VERSION}
-rm -Rf ${NAME}-${VERSION}.tar.gz
+tar czvf ${NAME}4-${VERSION}-clean.tar.gz ${NAME}4-r${VERSION}
+rm -Rf ${NAME}4-${VERSION}.tar.gz
diff --git a/junit.spec b/junit.spec
index 7e10338..75426b3 100644
--- a/junit.spec
+++ b/junit.spec
@@ -1,20 +1,21 @@
Name: junit
Epoch: 1
-Version: 4.12
-Release: 13%{?dist}
+Version: 4.13
+Release: 1%{?dist}
Summary: Java regression test package
License: EPL-1.0
URL: http://www.junit.org/
BuildArch: noarch
# ./clean-tarball.sh %{version}
-Source0: %{name}-%{version}-clean.tar.gz
+Source0: %{name}4-%{version}-clean.tar.gz
Source3: create-tarball.sh
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
+BuildRequires: mvn(org.hamcrest:hamcrest-library)
Obsoletes: %{name}-demo < 4.12
@@ -37,7 +38,7 @@ Summary: Javadoc for %{name}
Javadoc for %{name}.
%prep
-%setup -q -n %{name}-r%{version}
+%setup -q -n %{name}4-r%{version}
# InaccessibleBaseClassTest fails with Java 8
sed -i /InaccessibleBaseClassTest/d src/test/java/org/junit/tests/AllTests.java
@@ -67,10 +68,18 @@ sed s/@version@/%{version}/ src/main/java/junit/runner/Version.java.template >sr
"
+# Fix javadoc generation on java 11
+%pom_xpath_inject pom:build/pom:plugins "
+maven-javadoc-plugin
+
+"
+
%mvn_file : %{name}
+sed -i -e "s|1.5|1.6|" pom.xml
+
%build
-%mvn_build
+%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
%mvn_install
@@ -86,6 +95,10 @@ sed s/@version@/%{version}/ src/main/java/junit/runner/Version.java.template >sr
%doc doc/*
%changelog
+* Thu Jun 25 2020 Alexander Kurtakov 1:4.13-1
+- Update to 4.13
+- Fix build with Java 11.
+
* Wed Jan 29 2020 Fedora Release Engineering - 1:4.12-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
diff --git a/sources b/sources
index d77668d..90c2f5d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0de14594aaba3379f6b19ba75a393232 junit-4.12-clean.tar.gz
+SHA512 (junit4-4.13-clean.tar.gz) = 608718a813e6709b5e63efa378c055e57204fc4403ff6a638950b935cb6cb18e0d9857b6fe5709bd78803499525c694b45f7abfb01fa8271e5658acc2ae47314