From 1e50c7d37123f077d5e75212f09144baa707b064 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Tue, 4 Aug 2020 16:10:00 +0100 Subject: [PATCH] Add automatic module name --- junit.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/junit.spec b/junit.spec index cae2b2e..849c541 100644 --- a/junit.spec +++ b/junit.spec @@ -1,7 +1,7 @@ Name: junit Epoch: 1 Version: 4.12 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Java regression test package License: EPL-1.0 URL: http://www.junit.org/ @@ -82,6 +82,9 @@ sed s/@version@/%{version}/ src/main/java/junit/runner/Version.java.template >sr # Ignore test that breaks on Java 11 due to unexpected extra annotations in the JDK standard library sed -i -e '/providesAnnotatedMethodsSortedByName/i@Ignore' src/test/java/org/junit/runners/model/TestClassTest.java +# Set JPMS module name +%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive" "junit" + %mvn_file : %{name} %build @@ -102,6 +105,9 @@ sed -i -e '/providesAnnotatedMethodsSortedByName/i@Ignore' src/test/java/org/jun %doc doc/* %changelog +* Tue Aug 04 2020 Mat Booth - 1:4.12-18 +- Add automatic module name + * Tue Aug 04 2020 Mat Booth - 1:4.12-17 - Allow building on Java 11