2021-05-13 17:08:42 +00:00
|
|
|
%bcond_with bootstrap
|
2021-04-16 13:33:12 +00:00
|
|
|
|
2017-09-14 11:59:03 +00:00
|
|
|
# Component versions, taken from gradle.properties
|
2018-09-11 16:00:32 +00:00
|
|
|
%global platform_version 1.%(v=%{version}; echo ${v:2})
|
|
|
|
%global jupiter_version %{version}
|
|
|
|
%global vintage_version %{version}
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
Name: junit5
|
2020-09-21 13:09:34 +00:00
|
|
|
Version: 5.7.0
|
2020-03-04 11:34:58 +00:00
|
|
|
Release: 1%{?dist}
|
2017-09-14 11:59:03 +00:00
|
|
|
Summary: Java regression testing framework
|
2019-03-06 15:14:17 +00:00
|
|
|
License: EPL-2.0
|
2020-03-04 11:34:58 +00:00
|
|
|
URL: https://junit.org/junit5/
|
2017-09-14 11:59:03 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-03-06 15:14:17 +00:00
|
|
|
Source0: https://github.com/junit-team/junit5/archive/r%{version}/junit5-%{version}.tar.gz
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
# 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
|
2019-03-06 15:14:17 +00:00
|
|
|
Source208: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-reporting/%{platform_version}/junit-platform-reporting-%{platform_version}.pom
|
2017-09-14 11:59:03 +00:00
|
|
|
# Jupiter POMs
|
2019-10-28 09:22:40 +00:00
|
|
|
Source300: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter/%{jupiter_version}/junit-jupiter-%{jupiter_version}.pom
|
2017-09-14 11:59:03 +00:00
|
|
|
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
|
2020-03-04 11:34:58 +00:00
|
|
|
# BOM POM
|
|
|
|
Source500: https://repo1.maven.org/maven2/org/junit/junit-bom/%{version}/junit-bom-%{version}.pom
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
BuildRequires: maven-local
|
2021-04-16 13:33:12 +00:00
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
%else
|
2017-09-14 11:59:03 +00:00
|
|
|
BuildRequires: mvn(com.univocity:univocity-parsers)
|
|
|
|
BuildRequires: mvn(junit:junit)
|
2017-09-15 15:36:21 +00:00
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
2017-09-14 11:59:03 +00:00
|
|
|
BuildRequires: mvn(org.apiguardian:apiguardian-api)
|
|
|
|
BuildRequires: mvn(org.opentest4j:opentest4j)
|
2021-04-16 13:33:12 +00:00
|
|
|
%endif
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
JUnit is a popular regression testing framework for Java platform.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Junit5 API documentation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-r%{version}
|
2019-09-11 13:16:16 +00:00
|
|
|
find -name '*.jar' -delete
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
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
|
2019-03-06 15:14:17 +00:00
|
|
|
cp -p %{SOURCE208} junit-platform-reporting/pom.xml
|
2019-10-28 09:22:40 +00:00
|
|
|
cp -p %{SOURCE300} junit-jupiter/pom.xml
|
2017-09-14 11:59:03 +00:00
|
|
|
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
|
2020-03-04 11:34:58 +00:00
|
|
|
cp -p %{SOURCE500} junit-bom/pom.xml
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
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
|
2018-09-11 16:00:32 +00:00
|
|
|
%pom_xpath_set -f "pom:dependency[pom:artifactId='apiguardian-api']/pom:scope" provided $pom
|
2017-09-14 11:59:03 +00:00
|
|
|
done
|
|
|
|
|
2021-03-18 13:48:41 +00:00
|
|
|
%pom_remove_parent junit-bom
|
|
|
|
|
2017-09-14 11:59:03 +00:00
|
|
|
# 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
|
|
|
|
|
2018-09-11 16:00:32 +00:00
|
|
|
# Disable the console modules
|
|
|
|
%pom_disable_module junit-platform-console
|
|
|
|
%pom_disable_module junit-platform-console-standalone
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
%mvn_package :aggregator __noinstall
|
|
|
|
|
|
|
|
%build
|
|
|
|
%mvn_build -f
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
%files -f .mfiles
|
2019-03-06 15:14:17 +00:00
|
|
|
%license LICENSE.md LICENSE-notice.md
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
2019-03-06 15:14:17 +00:00
|
|
|
%license LICENSE.md LICENSE-notice.md
|
2017-09-14 11:59:03 +00:00
|
|
|
|
|
|
|
%changelog
|
2020-09-21 13:09:34 +00:00
|
|
|
* Mon Sep 21 2020 Marian Koncek <mkoncek@redhat.com> - 5.7.0-1
|
|
|
|
- Update to upstream version 5.7.0
|
|
|
|
|
2020-07-28 11:46:35 +00:00
|
|
|
* Tue Jul 28 2020 Marian Koncek <mkoncek@redhat.com> - 5.6.2-1
|
|
|
|
- Update to upstream version 5.6.2
|
|
|
|
|
2020-03-04 11:34:58 +00:00
|
|
|
* Wed Mar 04 2020 Marian Koncek <mkoncek@redhat.com> - 5.6.0-1
|
|
|
|
- Update to upstream version 5.6.0
|
|
|
|
|
2019-11-05 16:29:28 +00:00
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.5.2-3
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
2019-10-28 09:22:40 +00:00
|
|
|
* Mon Oct 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.5.2-2
|
|
|
|
- Build and install junit-jupiter aggregator
|
|
|
|
|
2019-09-11 13:16:16 +00:00
|
|
|
* Wed Sep 11 2019 Marian Koncek <mkoncek@redhat.com> - 5.5.2-1
|
|
|
|
- Update to upstream version 5.5.2
|
|
|
|
|
2019-07-22 08:38:43 +00:00
|
|
|
* Mon Jul 22 2019 Marian Koncek <mkoncek@redhat.com> - 5.5.1-1
|
|
|
|
- Update to upstream version 5.5.1
|
|
|
|
|
2019-06-08 16:11:08 +00:00
|
|
|
* Sat Jun 08 2019 Fabio Valentini <decathorpe@gmail.com> - 5.4.2-1
|
2019-07-22 08:42:05 +00:00
|
|
|
- Update to version 5.4.2
|
2019-06-08 16:11:08 +00:00
|
|
|
|
2019-05-24 15:00:55 +00:00
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.4.0-2
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
2019-03-06 15:14:17 +00:00
|
|
|
* 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
|
|
|
|
|
2019-02-01 04:54:36 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-09-11 16:00:32 +00:00
|
|
|
* 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
|
|
|
|
|
2018-08-31 09:54:02 +00:00
|
|
|
* 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.
|
|
|
|
|
2018-07-13 06:45:30 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-27 16:38:03 +00:00
|
|
|
* Wed Jun 27 2018 Mat Booth <mat.booth@redhat.com> - 5.2.0-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
|
2018-06-27 15:34:23 +00:00
|
|
|
* 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
|
|
|
|
|
2018-03-15 15:29:24 +00:00
|
|
|
* Thu Mar 15 2018 Michael Simacek <msimacek@redhat.com> - 5.0.0-3
|
|
|
|
- Disable gradle plugin to fix FTBFS
|
|
|
|
|
2018-02-07 19:23:56 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-09-14 11:59:03 +00:00
|
|
|
* Thu Sep 14 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.0-1
|
|
|
|
- Initial packaging
|