RHEL 9.0.0 Alpha bootstrap

The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/junit5#3b251840b65aabdc82091694514c5a0326bcf6c2
This commit is contained in:
Petr Šabata 2020-10-15 14:26:15 +02:00
parent f688440061
commit 3830b8c427
5 changed files with 425 additions and 0 deletions

121
.gitignore vendored
View File

@ -0,0 +1,121 @@
/results_*
/*.src.rpm
/junit5-r*/
/r5.0.0.tar.gz
/junit-platform-commons-1.0.0.pom
/junit-platform-console-1.0.0.pom
/junit-platform-console-standalone-1.0.0.pom
/junit-platform-engine-1.0.0.pom
/junit-platform-gradle-plugin-1.0.0.pom
/junit-platform-launcher-1.0.0.pom
/junit-platform-runner-1.0.0.pom
/junit-platform-suite-api-1.0.0.pom
/junit-platform-surefire-provider-1.0.0.pom
/junit-jupiter-api-5.0.0.pom
/junit-jupiter-engine-5.0.0.pom
/junit-jupiter-migrationsupport-5.0.0.pom
/junit-jupiter-params-5.0.0.pom
/junit-vintage-engine-4.12.0.pom
/r5.2.0.tar.gz
/junit-jupiter-api-5.2.0.pom
/junit-jupiter-engine-5.2.0.pom
/junit-jupiter-migrationsupport-5.2.0.pom
/junit-jupiter-params-5.2.0.pom
/junit-platform-commons-1.2.0.pom
/junit-platform-console-1.2.0.pom
/junit-platform-console-standalone-1.2.0.pom
/junit-platform-engine-1.2.0.pom
/junit-platform-gradle-plugin-1.2.0.pom
/junit-platform-launcher-1.2.0.pom
/junit-platform-runner-1.2.0.pom
/junit-platform-suite-api-1.2.0.pom
/junit-platform-surefire-provider-1.2.0.pom
/junit-vintage-engine-5.2.0.pom
/r5.3.1.tar.gz
/junit-jupiter-api-5.3.1.pom
/junit-jupiter-engine-5.3.1.pom
/junit-jupiter-migrationsupport-5.3.1.pom
/junit-jupiter-params-5.3.1.pom
/junit-platform-commons-1.3.1.pom
/junit-platform-console-1.3.1.pom
/junit-platform-console-standalone-1.3.1.pom
/junit-platform-engine-1.3.1.pom
/junit-platform-launcher-1.3.1.pom
/junit-platform-runner-1.3.1.pom
/junit-platform-suite-api-1.3.1.pom
/junit-platform-surefire-provider-1.3.1.pom
/junit-vintage-engine-5.3.1.pom
/junit5-5.4.0.tar.gz
/junit-jupiter-api-5.4.0.pom
/junit-jupiter-engine-5.4.0.pom
/junit-jupiter-migrationsupport-5.4.0.pom
/junit-jupiter-params-5.4.0.pom
/junit-platform-commons-1.4.0.pom
/junit-platform-console-1.4.0.pom
/junit-platform-console-standalone-1.4.0.pom
/junit-platform-engine-1.4.0.pom
/junit-platform-launcher-1.4.0.pom
/junit-platform-runner-1.4.0.pom
/junit-platform-suite-api-1.4.0.pom
/junit-vintage-engine-5.4.0.pom
/junit-platform-reporting-1.4.0.pom
/junit5-5.4.2.tar.gz
/junit-platform-commons-1.4.2.pom
/junit-platform-console-1.4.2.pom
/junit-platform-console-standalone-1.4.2.pom
/junit-platform-engine-1.4.2.pom
/junit-platform-launcher-1.4.2.pom
/junit-platform-runner-1.4.2.pom
/junit-platform-suite-api-1.4.2.pom
/junit-platform-reporting-1.4.2.pom
/junit-jupiter-api-5.4.2.pom
/junit-jupiter-engine-5.4.2.pom
/junit-jupiter-migrationsupport-5.4.2.pom
/junit-jupiter-params-5.4.2.pom
/junit-vintage-engine-5.4.2.pom
/junit5-5.5.2.tar.gz
/junit-jupiter-api-5.5.2.pom
/junit-jupiter-engine-5.5.2.pom
/junit-jupiter-migrationsupport-5.5.2.pom
/junit-jupiter-params-5.5.2.pom
/junit-platform-commons-1.5.2.pom
/junit-platform-console-1.5.2.pom
/junit-platform-console-standalone-1.5.2.pom
/junit-platform-engine-1.5.2.pom
/junit-platform-launcher-1.5.2.pom
/junit-platform-reporting-1.5.2.pom
/junit-platform-runner-1.5.2.pom
/junit-platform-suite-api-1.5.2.pom
/junit-vintage-engine-5.5.2.pom
/junit-bom-5.6.0.pom
/junit-jupiter-api-5.6.0.pom
/junit-jupiter-engine-5.6.0.pom
/junit-jupiter-migrationsupport-5.6.0.pom
/junit-jupiter-params-5.6.0.pom
/junit-platform-commons-1.6.0.pom
/junit-platform-console-1.6.0.pom
/junit-platform-console-standalone-1.6.0.pom
/junit-platform-engine-1.6.0.pom
/junit-platform-launcher-1.6.0.pom
/junit-platform-reporting-1.6.0.pom
/junit-platform-runner-1.6.0.pom
/junit-platform-suite-api-1.6.0.pom
/junit-vintage-engine-5.6.0.pom
/junit5-5.6.0.tar.gz
/junit-bom-5.6.2.pom
/junit-jupiter-5.6.2.pom
/junit-jupiter-api-5.6.2.pom
/junit-jupiter-engine-5.6.2.pom
/junit-jupiter-migrationsupport-5.6.2.pom
/junit-jupiter-params-5.6.2.pom
/junit-platform-commons-1.6.2.pom
/junit-platform-console-1.6.2.pom
/junit-platform-console-standalone-1.6.2.pom
/junit-platform-engine-1.6.2.pom
/junit-platform-launcher-1.6.2.pom
/junit-platform-reporting-1.6.2.pom
/junit-platform-runner-1.6.2.pom
/junit-platform-suite-api-1.6.2.pom
/junit-platform-testkit-1.6.2.pom
/junit-vintage-engine-5.6.2.pom
/junit5-5.6.2.tar.gz

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# junit5
The junit5 package

69
aggregator.pom Normal file
View File

@ -0,0 +1,69 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.fedoraproject.xmvn.junit5</groupId>
<artifactId>aggregator</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<modules>
<module>junit-bom</module>
<module>junit-platform-commons</module>
<module>junit-platform-console</module>
<module>junit-platform-console-standalone</module>
<module>junit-platform-engine</module>
<module>junit-platform-launcher</module>
<module>junit-platform-reporting</module>
<module>junit-platform-runner</module>
<module>junit-platform-suite-api</module>
<module>junit-platform-testkit</module>
<module>junit-jupiter</module>
<module>junit-jupiter-api</module>
<module>junit-jupiter-engine</module>
<module>junit-jupiter-migrationsupport</module>
<module>junit-jupiter-params</module>
<module>junit-vintage-engine</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.1.0</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<instructions>
<Bundle-SymbolicName>${osgi.bsn}</Bundle-SymbolicName>
<Automatic-Module-Name>${osgi.bsn}</Automatic-Module-Name>
<_nouses>true</_nouses>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

215
junit5.spec Normal file
View File

@ -0,0 +1,215 @@
# 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.6.2
Release: 4%{?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
Source209: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-testkit/%{platform_version}/junit-platform-testkit-%{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
Source305: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter/%{jupiter_version}/junit-jupiter-%{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
# Bill of Materials POM
Source500: https://repo1.maven.org/maven2/org/junit/junit-bom/%{version}/junit-bom-%{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.assertj:assertj-core)
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 %{SOURCE209} junit-platform-testkit/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 %{SOURCE305} junit-jupiter/pom.xml
cp -p %{SOURCE400} junit-vintage-engine/pom.xml
cp -p %{SOURCE500} junit-bom/pom.xml
for pom in $(find -mindepth 2 -name pom.xml); do
# Set parent to aggregator
%pom_xpath_inject pom:project "<parent><groupId>org.fedoraproject.xmvn.junit5</groupId><artifactId>aggregator</artifactId><version>1.0.0</version></parent>" $pom
# OSGi BSN
bsn=$(sed 's|/pom.xml$||;s|.*/|org.|;s|-|.|g' <<<"$pom")
%pom_xpath_inject pom:project "<properties><osgi.bsn>${bsn}</osgi.bsn></properties>" $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
* Tue Aug 11 2020 Jerry James <loganjerry@gmail.com> - 5.6.2-4
- Add org.junit.jupiter:junit-jupiter, org.junit.platform:junit-platform-testkit
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 5.6.2-2
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Sat May 09 2020 Fabio Valentini <decathorpe@gmail.com> - 5.6.2-1
- Update to version 5.6.2.
* Mon Feb 17 2020 Alexander Scheel <ascheel@redhat.com> - 5.6.0-1
- Update to version 5.6.0
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sun Oct 13 2019 Fabio Valentini <decathorpe@gmail.com> - 5.5.2-1
- Update to version 5.5.2.
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Jun 08 2019 Fabio Valentini <decathorpe@gmail.com> - 5.4.2-1
- Update to version 5.2.4.
* Wed Mar 06 2019 Mat Booth <mat.booth@redhat.com> - 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 <releng@fedoraproject.org> - 5.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Sep 11 2018 Mat Booth <mat.booth@redhat.com> - 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 <sgehwolf@redhat.com> - 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 <releng@fedoraproject.org> - 5.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Jun 27 2018 Mat Booth <mat.booth@redhat.com> - 5.2.0-1
- Update to latest upstream release
* Wed Jun 27 2018 Mat Booth <mat.booth@redhat.com> - 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 <msimacek@redhat.com> - 5.0.0-3
- Disable gradle plugin to fix FTBFS
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Sep 14 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.0-1
- Initial packaging

17
sources Normal file
View File

@ -0,0 +1,17 @@
SHA512 (junit-bom-5.6.2.pom) = d38eecbc6e55a06e1ba6818277c4ee1d645809325a524b3f79816ae06688b216a0f8aa1b2172c48c8dbfe592f61a862b657890e8270ad22e2d651131dc8ebd04
SHA512 (junit-jupiter-5.6.2.pom) = 2f86da7c98f93d351e8f478e6e1fce069bb717c89f1d534eff6b84f4da8c4dfce61ae12f6bfd26b21a06fde383298e898da5314e6a5f97a97a33dfdb4a4bfe31
SHA512 (junit-jupiter-api-5.6.2.pom) = d23342fb271a3852dfda8f77ae9f0e5e6d98c68f6d9e1380ce97617d3f393f4b3f02b678ca66da22413139cd0056b7ec7e030bda9c2067c2388d68f468aee2ae
SHA512 (junit-jupiter-engine-5.6.2.pom) = 38375c8db1c4e630e7abd5f0889acb23db964c7122e4aed7d0a08af1edc377274444e5aa8ccb2a6b8f559fc698df2bed117a28a1ff9c238080020fac18ece68d
SHA512 (junit-jupiter-migrationsupport-5.6.2.pom) = 83624d8b8f7c34296dead8f1816698b5e6ccb9560fdff5e7cdb07715ed2e446244ba2e1463f5b37fdd8a09b8c49ef56f4bf7744a5ff7803d1bf51fa131464950
SHA512 (junit-jupiter-params-5.6.2.pom) = 94e36303621eb15ea131463db03cad3c72dc1b54716afc439ce08520cf6a84bb93e505827cec3d1c6ae2fc0987a13e3c0f117d254fd107266309e9e1493ebb1b
SHA512 (junit-platform-commons-1.6.2.pom) = c945d3a05222cbc2f125220b81baad67f401c41557c4fa53aae72bdcaee8ec2e094413877ed4edb4ea08da6583e729a7391dc5ce72d3cac0908c7aac4c7d3696
SHA512 (junit-platform-console-1.6.2.pom) = 4174297ddaed43f70487d6531d7ffd2ab3469529cf5f96b552e6e8728ead8a44328a641ae73780e09750748645aed4b4b2fd636d6ab9ce7e778d9558e875066c
SHA512 (junit-platform-console-standalone-1.6.2.pom) = e35e28b39ae382b09e301f466989d4950ccefc9ad7371f6180eedad40df8a4ea4e568d8b5117499b7f38edf78d50ed8696c3a9f855885c953f79c020ad5c3372
SHA512 (junit-platform-engine-1.6.2.pom) = c0f31912d118f1648dfe364c073094f0493cfc957f71a78590f0c0d26e44e8e2d503c7c5e3bc25c24359c4953acc3e95683e21d6c584abdf389aede0461511a7
SHA512 (junit-platform-launcher-1.6.2.pom) = dd3fb3708990a56e75520f9e790e9890014f36588c3426e2563d0462b6a63102eacfcbf983e7d24c7021bf5ee0cd367989b65c22c1d16950193315ebb9cc6f6c
SHA512 (junit-platform-reporting-1.6.2.pom) = ee0cbc8a2056ea1cc7d4ab512796c5d780f081a32d350fcaa6bd0442793089f9f3e688b294418e85c099d0ecb3728b36713bedbef931b1e8cfcce1af8430efaf
SHA512 (junit-platform-runner-1.6.2.pom) = 8d792d026a42aa84501aecac0dd9839d8c1daa3d69f78aabd081c82497682b316a98389410b0e4679cb0fa2cc948b7bf6d902dca8bdccdb4e4923a674fdafaed
SHA512 (junit-platform-suite-api-1.6.2.pom) = 8257bba40b52468d4c36786495ce2b78d6a0b866e68e4e1ef6b8e4cfe04359647380f0f040287e398fc293bfde1d6415460e2a979d6e9eabe1090d7a63c535b7
SHA512 (junit-platform-testkit-1.6.2.pom) = 79fdf60d6b7771993dbf780d35f69935bb4e506a86143868a82951db1ebf47248dd80cc40968b957cdc8f94ca6d0ab79ec793517658fa25576963ab1d16d6a3c
SHA512 (junit-vintage-engine-5.6.2.pom) = 6075031e76cbee380fe87848c9245ac39980e281c456aaa6789a00be736ce0b5fbf94676dca1e5d0b0855004496182b9b98cf08bc4a233e6a97c6b787d52f57d
SHA512 (junit5-5.6.2.tar.gz) = 9dd5de496b81a66f847f8e6c208e2a6ad7646120d9720e34ac983283a37aeb446023b5525d7846cb0c7377072f65424b7ddf74912ed776c7705b30c1cb8e5509