From fabd7dc080729438475a4b56d5c5905434521017 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Thu, 6 Feb 2020 11:48:38 -0500 Subject: [PATCH] import junit5-5.4.0-1.module+el8.1.1+4657+f90e8085 --- .gitignore | 1 + .junit5.metadata | 1 + SOURCES/aggregator.pom | 66 +++++++ SOURCES/junit-jupiter-api-5.4.0.pom | 74 +++++++ SOURCES/junit-jupiter-engine-5.4.0.pom | 74 +++++++ .../junit-jupiter-migrationsupport-5.4.0.pom | 74 +++++++ SOURCES/junit-jupiter-params-5.4.0.pom | 68 +++++++ SOURCES/junit-platform-commons-1.4.0.pom | 62 ++++++ SOURCES/junit-platform-console-1.4.0.pom | 68 +++++++ ...unit-platform-console-standalone-1.4.0.pom | 54 ++++++ SOURCES/junit-platform-engine-1.4.0.pom | 74 +++++++ SOURCES/junit-platform-launcher-1.4.0.pom | 68 +++++++ SOURCES/junit-platform-reporting-1.4.0.pom | 68 +++++++ SOURCES/junit-platform-runner-1.4.0.pom | 80 ++++++++ SOURCES/junit-platform-suite-api-1.4.0.pom | 62 ++++++ SOURCES/junit-vintage-engine-5.4.0.pom | 74 +++++++ SPECS/junit5.spec | 180 ++++++++++++++++++ 17 files changed, 1148 insertions(+) create mode 100644 .gitignore create mode 100644 .junit5.metadata create mode 100644 SOURCES/aggregator.pom create mode 100644 SOURCES/junit-jupiter-api-5.4.0.pom create mode 100644 SOURCES/junit-jupiter-engine-5.4.0.pom create mode 100644 SOURCES/junit-jupiter-migrationsupport-5.4.0.pom create mode 100644 SOURCES/junit-jupiter-params-5.4.0.pom create mode 100644 SOURCES/junit-platform-commons-1.4.0.pom create mode 100644 SOURCES/junit-platform-console-1.4.0.pom create mode 100644 SOURCES/junit-platform-console-standalone-1.4.0.pom create mode 100644 SOURCES/junit-platform-engine-1.4.0.pom create mode 100644 SOURCES/junit-platform-launcher-1.4.0.pom create mode 100644 SOURCES/junit-platform-reporting-1.4.0.pom create mode 100644 SOURCES/junit-platform-runner-1.4.0.pom create mode 100644 SOURCES/junit-platform-suite-api-1.4.0.pom create mode 100644 SOURCES/junit-vintage-engine-5.4.0.pom create mode 100644 SPECS/junit5.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81831f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/junit5-5.4.0.tar.gz diff --git a/.junit5.metadata b/.junit5.metadata new file mode 100644 index 0000000..61cfe5d --- /dev/null +++ b/.junit5.metadata @@ -0,0 +1 @@ +18b78a3008ae862717aa01d6933f16495540f26b SOURCES/junit5-5.4.0.tar.gz diff --git a/SOURCES/aggregator.pom b/SOURCES/aggregator.pom new file mode 100644 index 0000000..3129653 --- /dev/null +++ b/SOURCES/aggregator.pom @@ -0,0 +1,66 @@ + + 4.0.0 + org.fedoraproject.xmvn.junit5 + aggregator + 1.0.0 + pom + + junit-platform-commons + junit-platform-console + junit-platform-console-standalone + junit-platform-engine + junit-platform-launcher + junit-platform-reporting + junit-platform-runner + junit-platform-suite-api + junit-jupiter-api + junit-jupiter-engine + junit-jupiter-migrationsupport + junit-jupiter-params + junit-vintage-engine + + + + + + maven-compiler-plugin + + 1.8 + 1.8 + + + + maven-jar-plugin + + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + + + + org.apache.felix + maven-bundle-plugin + 2.1.0 + + + bundle-manifest + process-classes + + manifest + + + + ${osgi.bsn} + ${osgi.bsn} + <_nouses>true + + + + + + + + diff --git a/SOURCES/junit-jupiter-api-5.4.0.pom b/SOURCES/junit-jupiter-api-5.4.0.pom new file mode 100644 index 0000000..47d1359 --- /dev/null +++ b/SOURCES/junit-jupiter-api-5.4.0.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.jupiter + junit-jupiter-api + 5.4.0 + JUnit Jupiter API + Module "junit-jupiter-api" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.opentest4j + opentest4j + 1.1.1 + compile + + + org.junit.platform + junit-platform-commons + 1.4.0 + compile + + + diff --git a/SOURCES/junit-jupiter-engine-5.4.0.pom b/SOURCES/junit-jupiter-engine-5.4.0.pom new file mode 100644 index 0000000..33e632a --- /dev/null +++ b/SOURCES/junit-jupiter-engine-5.4.0.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.jupiter + junit-jupiter-engine + 5.4.0 + JUnit Jupiter Engine + Module "junit-jupiter-engine" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-engine + 1.4.0 + compile + + + org.junit.jupiter + junit-jupiter-api + 5.4.0 + compile + + + diff --git a/SOURCES/junit-jupiter-migrationsupport-5.4.0.pom b/SOURCES/junit-jupiter-migrationsupport-5.4.0.pom new file mode 100644 index 0000000..c3a2cec --- /dev/null +++ b/SOURCES/junit-jupiter-migrationsupport-5.4.0.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.jupiter + junit-jupiter-migrationsupport + 5.4.0 + JUnit Jupiter Migration Support + Module "junit-jupiter-migrationsupport" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + junit + junit + 4.12 + compile + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.jupiter + junit-jupiter-api + 5.4.0 + compile + + + diff --git a/SOURCES/junit-jupiter-params-5.4.0.pom b/SOURCES/junit-jupiter-params-5.4.0.pom new file mode 100644 index 0000000..961fc51 --- /dev/null +++ b/SOURCES/junit-jupiter-params-5.4.0.pom @@ -0,0 +1,68 @@ + + + 4.0.0 + org.junit.jupiter + junit-jupiter-params + 5.4.0 + JUnit Jupiter Params + Module "junit-jupiter-params" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.jupiter + junit-jupiter-api + 5.4.0 + compile + + + diff --git a/SOURCES/junit-platform-commons-1.4.0.pom b/SOURCES/junit-platform-commons-1.4.0.pom new file mode 100644 index 0000000..c7d974e --- /dev/null +++ b/SOURCES/junit-platform-commons-1.4.0.pom @@ -0,0 +1,62 @@ + + + 4.0.0 + org.junit.platform + junit-platform-commons + 1.4.0 + JUnit Platform Commons + Module "junit-platform-commons" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + diff --git a/SOURCES/junit-platform-console-1.4.0.pom b/SOURCES/junit-platform-console-1.4.0.pom new file mode 100644 index 0000000..0790402 --- /dev/null +++ b/SOURCES/junit-platform-console-1.4.0.pom @@ -0,0 +1,68 @@ + + + 4.0.0 + org.junit.platform + junit-platform-console + 1.4.0 + JUnit Platform Console + Module "junit-platform-console" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-reporting + 1.4.0 + compile + + + diff --git a/SOURCES/junit-platform-console-standalone-1.4.0.pom b/SOURCES/junit-platform-console-standalone-1.4.0.pom new file mode 100644 index 0000000..0aa299f --- /dev/null +++ b/SOURCES/junit-platform-console-standalone-1.4.0.pom @@ -0,0 +1,54 @@ + + + 4.0.0 + org.junit.platform + junit-platform-console-standalone + 1.4.0 + JUnit Platform Console Standalone + Module "junit-platform-console-standalone" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + diff --git a/SOURCES/junit-platform-engine-1.4.0.pom b/SOURCES/junit-platform-engine-1.4.0.pom new file mode 100644 index 0000000..974cbe0 --- /dev/null +++ b/SOURCES/junit-platform-engine-1.4.0.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.platform + junit-platform-engine + 1.4.0 + JUnit Platform Engine API + Module "junit-platform-engine" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.opentest4j + opentest4j + 1.1.1 + compile + + + org.junit.platform + junit-platform-commons + 1.4.0 + compile + + + diff --git a/SOURCES/junit-platform-launcher-1.4.0.pom b/SOURCES/junit-platform-launcher-1.4.0.pom new file mode 100644 index 0000000..ea3df9b --- /dev/null +++ b/SOURCES/junit-platform-launcher-1.4.0.pom @@ -0,0 +1,68 @@ + + + 4.0.0 + org.junit.platform + junit-platform-launcher + 1.4.0 + JUnit Platform Launcher + Module "junit-platform-launcher" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-engine + 1.4.0 + compile + + + diff --git a/SOURCES/junit-platform-reporting-1.4.0.pom b/SOURCES/junit-platform-reporting-1.4.0.pom new file mode 100644 index 0000000..3dc7c92 --- /dev/null +++ b/SOURCES/junit-platform-reporting-1.4.0.pom @@ -0,0 +1,68 @@ + + + 4.0.0 + org.junit.platform + junit-platform-reporting + 1.4.0 + JUnit Platform Reporting + Module "junit-platform-reporting" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-launcher + 1.4.0 + compile + + + diff --git a/SOURCES/junit-platform-runner-1.4.0.pom b/SOURCES/junit-platform-runner-1.4.0.pom new file mode 100644 index 0000000..3811b38 --- /dev/null +++ b/SOURCES/junit-platform-runner-1.4.0.pom @@ -0,0 +1,80 @@ + + + 4.0.0 + org.junit.platform + junit-platform-runner + 1.4.0 + JUnit Platform Runner + Module "junit-platform-runner" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + junit + junit + 4.12 + compile + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-launcher + 1.4.0 + compile + + + org.junit.platform + junit-platform-suite-api + 1.4.0 + compile + + + diff --git a/SOURCES/junit-platform-suite-api-1.4.0.pom b/SOURCES/junit-platform-suite-api-1.4.0.pom new file mode 100644 index 0000000..8e5ce08 --- /dev/null +++ b/SOURCES/junit-platform-suite-api-1.4.0.pom @@ -0,0 +1,62 @@ + + + 4.0.0 + org.junit.platform + junit-platform-suite-api + 1.4.0 + JUnit Platform Suite API + Module "junit-platform-suite-api" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + diff --git a/SOURCES/junit-vintage-engine-5.4.0.pom b/SOURCES/junit-vintage-engine-5.4.0.pom new file mode 100644 index 0000000..8d7f870 --- /dev/null +++ b/SOURCES/junit-vintage-engine-5.4.0.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.vintage + junit-vintage-engine + 5.4.0 + JUnit Vintage Engine + Module "junit-vintage-engine" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-engine + 1.4.0 + compile + + + junit + junit + 4.12 + runtime + + + diff --git a/SPECS/junit5.spec b/SPECS/junit5.spec new file mode 100644 index 0000000..3f85184 --- /dev/null +++ b/SPECS/junit5.spec @@ -0,0 +1,180 @@ +# Component versions, taken from gradle.properties +%global platform_version 1.%(v=%{version}; echo ${v:2}) +%global jupiter_version %{version} +%global vintage_version %{version} + +# Build with or without the console modules +# Disabled by default due to missing dep: info.picocli:picocli +%bcond_with console + +Name: junit5 +Version: 5.4.0 +Release: 1%{?dist} +Summary: Java regression testing framework +License: EPL-2.0 +URL: http://junit.org/junit5/ +BuildArch: noarch + +Source0: https://github.com/junit-team/junit5/archive/r%{version}/junit5-%{version}.tar.gz + +# Aggregator POM (used for packaging only) +Source100: aggregator.pom +# Platform POMs +Source200: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-commons/%{platform_version}/junit-platform-commons-%{platform_version}.pom +Source201: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console/%{platform_version}/junit-platform-console-%{platform_version}.pom +Source202: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/%{platform_version}/junit-platform-console-standalone-%{platform_version}.pom +Source203: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-engine/%{platform_version}/junit-platform-engine-%{platform_version}.pom +Source205: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-launcher/%{platform_version}/junit-platform-launcher-%{platform_version}.pom +Source206: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-runner/%{platform_version}/junit-platform-runner-%{platform_version}.pom +Source207: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-suite-api/%{platform_version}/junit-platform-suite-api-%{platform_version}.pom +Source208: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-reporting/%{platform_version}/junit-platform-reporting-%{platform_version}.pom +# Jupiter POMs +Source301: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/%{jupiter_version}/junit-jupiter-api-%{jupiter_version}.pom +Source302: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-engine/%{jupiter_version}/junit-jupiter-engine-%{jupiter_version}.pom +Source303: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-migrationsupport/%{jupiter_version}/junit-jupiter-migrationsupport-%{jupiter_version}.pom +Source304: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-params/%{jupiter_version}/junit-jupiter-params-%{jupiter_version}.pom +# Vintage POM +Source400: https://repo1.maven.org/maven2/org/junit/vintage/junit-vintage-engine/%{vintage_version}/junit-vintage-engine-%{vintage_version}.pom + +BuildRequires: maven-local +BuildRequires: mvn(com.univocity:univocity-parsers) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apiguardian:apiguardian-api) +BuildRequires: mvn(org.opentest4j:opentest4j) + +%if %{with console} +BuildRequires: mvn(info.picocli:picocli) +%endif + +BuildRequires: asciidoc + +%if %{with console} +# Explicit requires for javapackages-tools since junit5 script +# uses /usr/share/java-utils/java-functions +Requires: javapackages-tools +%endif + +%description +JUnit is a popular regression testing framework for Java platform. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +Junit5 API documentation. + +%package guide +Summary: Documentation for %{name} +Requires: %{name}-javadoc = %{version}-%{release} + +%description guide +JUnit 5 User Guide. + +%prep +%setup -q -n %{name}-r%{version} +find -name \*.jar -delete + +cp -p %{SOURCE100} pom.xml +cp -p %{SOURCE200} junit-platform-commons/pom.xml +cp -p %{SOURCE201} junit-platform-console/pom.xml +cp -p %{SOURCE202} junit-platform-console-standalone/pom.xml +cp -p %{SOURCE203} junit-platform-engine/pom.xml +cp -p %{SOURCE205} junit-platform-launcher/pom.xml +cp -p %{SOURCE206} junit-platform-runner/pom.xml +cp -p %{SOURCE207} junit-platform-suite-api/pom.xml +cp -p %{SOURCE208} junit-platform-reporting/pom.xml +cp -p %{SOURCE301} junit-jupiter-api/pom.xml +cp -p %{SOURCE302} junit-jupiter-engine/pom.xml +cp -p %{SOURCE303} junit-jupiter-migrationsupport/pom.xml +cp -p %{SOURCE304} junit-jupiter-params/pom.xml +cp -p %{SOURCE400} junit-vintage-engine/pom.xml + +for pom in $(find -mindepth 2 -name pom.xml); do + # Set parent to aggregator + %pom_xpath_inject pom:project "org.fedoraproject.xmvn.junit5aggregator1.0.0" $pom + # OSGi BSN + bsn=$(sed 's|/pom.xml$||;s|.*/|org.|;s|-|.|g' <<<"$pom") + %pom_xpath_inject pom:project "${bsn}" $pom + # Incorrect scope - API guardian is just annotation, needed only during compilation + %pom_xpath_set -f "pom:dependency[pom:artifactId='apiguardian-api']/pom:scope" provided $pom +done + +# Add deps which are shaded by upstream and therefore not present in POMs. +%pom_add_dep net.sf.jopt-simple:jopt-simple:5.0.4 junit-platform-console +%pom_add_dep com.univocity:univocity-parsers:2.5.4 junit-jupiter-params + +# Incorrect scope - Junit4 is needed for compilation too, not only runtime. +%pom_xpath_set "pom:dependency[pom:artifactId='junit']/pom:scope" compile junit-vintage-engine + +%if %{without console} +# Disable the console modules +%pom_disable_module junit-platform-console +%pom_disable_module junit-platform-console-standalone +%endif + +%mvn_package :aggregator __noinstall + +%build +%mvn_build -f + +# Build docs. Ignore exit asciidoc -- it fails for some reason, but +# still produces readable docs. +asciidoc documentation/src/docs/asciidoc/index.adoc || : +ln -s ../../javadoc/junit5 documentation/src/docs/api + +%install +%mvn_install + +%if %{with console} +%jpackage_script org/junit/platform/console/ConsoleLauncher "" "" junit5:junit:opentest4j:jopt-simple %{name} true +%endif + +%files -f .mfiles +%if %{with console} +%{_bindir}/%{name} +%endif +%license LICENSE.md LICENSE-notice.md + +%files javadoc -f .mfiles-javadoc +%license LICENSE.md LICENSE-notice.md + +%files guide +%doc documentation/src/docs/* + +%changelog +* Wed Mar 06 2019 Mat Booth - 5.4.0-1 +- Update to latest upstream release +- License switched to EPL only now the surefire provider was moved to the + Apache Surefire project + +* Fri Feb 01 2019 Fedora Release Engineering - 5.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Sep 11 2018 Mat Booth - 5.3.1-1 +- Update to latest upstream release +- Conditionally build the console modules +- Remove stuff for discontinued gradle plugin + +* Fri Aug 31 2018 Severin Gehwolf - 5.2.0-3 +- Add explicit requirement on javapackages-tools since junit5 script + uses java-functions. See RHBZ#1600426. + +* Fri Jul 13 2018 Fedora Release Engineering - 5.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Mat Booth - 5.2.0-1 +- Update to latest upstream release + +* Wed Jun 27 2018 Mat Booth - 5.0.0-4 +- Add java 9 automatic module name headers to jar files +- License correction EPL -> EPL-2.0 + +* Thu Mar 15 2018 Michael Simacek - 5.0.0-3 +- Disable gradle plugin to fix FTBFS + +* Wed Feb 07 2018 Fedora Release Engineering - 5.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Sep 14 2017 Mikolaj Izdebski - 5.0.0-1 +- Initial packaging