2019-04-11 22:33:42 +02:00
|
|
|
#
|
2022-03-22 14:59:45 +01:00
|
|
|
# spec file
|
2019-04-11 22:33:42 +02:00
|
|
|
#
|
2023-05-05 10:31:24 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-04-11 22:33:42 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global base_name maven-surefire
|
|
|
|
Name: %{base_name}-provider-junit5
|
|
|
|
Version: 2.22.0
|
|
|
|
Release: 0
|
|
|
|
Summary: JUnit 5 provider for Maven Surefire
|
|
|
|
License: Apache-2.0 AND CPL-1.0
|
|
|
|
Group: Development/Libraries/Java
|
2022-03-22 14:59:45 +01:00
|
|
|
URL: https://maven.apache.org/surefire/
|
2019-04-11 22:33:42 +02:00
|
|
|
# ./generate-tarball.sh
|
|
|
|
Source0: %{base_name}-%{version}.tar.gz
|
|
|
|
# Remove bundled binaries which cannot be easily verified for licensing
|
|
|
|
Source1: generate-tarball.sh
|
|
|
|
Source2: http://junit.sourceforge.net/cpl-v10.html
|
|
|
|
Patch0: 0001-Maven-3.patch
|
|
|
|
Patch1: 0002-Port-to-current-doxia.patch
|
2022-04-26 12:00:11 +02:00
|
|
|
Patch2: 0003-Port-to-TestNG-7.4.0.patch
|
2019-04-11 22:33:42 +02:00
|
|
|
Patch3: 0004-Port-to-current-maven-shared-utils.patch
|
|
|
|
BuildRequires: fdupes
|
2022-03-22 14:59:45 +01:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2019-04-11 22:33:42 +02:00
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(org.apache.maven.surefire:common-java5)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-parent:pom:)
|
|
|
|
BuildRequires: mvn(org.apiguardian:apiguardian-api)
|
|
|
|
BuildRequires: mvn(org.junit.platform:junit-platform-launcher)
|
|
|
|
# PpidChecker relies on /usr/bin/ps to check process uptime
|
|
|
|
Requires: procps
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
JUnit 5 provider for Maven Surefire.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n surefire-%{version}
|
|
|
|
cp -p %{SOURCE2} .
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
# Disable strict doclint
|
|
|
|
sed -i /-Xdoclint:all/d pom.xml
|
|
|
|
|
|
|
|
%pom_disable_module surefire-shadefire
|
|
|
|
|
|
|
|
%pom_add_dep org.apiguardian:apiguardian-api::provided surefire-providers/surefire-junit-platform
|
|
|
|
|
|
|
|
%pom_remove_dep -r org.apache.maven.surefire:surefire-shadefire
|
|
|
|
|
|
|
|
# Help plugin is needed only to evaluate effective Maven settings.
|
|
|
|
# For building RPM package default settings will suffice.
|
|
|
|
%pom_remove_plugin :maven-help-plugin surefire-setup-integration-tests
|
|
|
|
|
|
|
|
# QA plugin useful only for upstream
|
|
|
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
|
|
|
|
|
|
|
# Not in Fedora
|
|
|
|
%pom_remove_plugin -r :animal-sniffer-maven-plugin
|
|
|
|
# Complains
|
|
|
|
%pom_remove_plugin -r :apache-rat-plugin
|
|
|
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
|
|
|
# We don't need site-source
|
|
|
|
%pom_remove_plugin :maven-assembly-plugin maven-surefire-plugin
|
|
|
|
%pom_remove_dep -r ::::site-source
|
|
|
|
|
|
|
|
%pom_xpath_set pom:mavenVersion 3.3.3
|
|
|
|
%pom_remove_dep :maven-project maven-surefire-report-plugin
|
|
|
|
%pom_remove_dep :maven-project maven-surefire-common
|
|
|
|
%pom_remove_dep :maven-plugin-descriptor maven-surefire-common
|
|
|
|
%pom_remove_dep :maven-toolchain maven-surefire-common
|
|
|
|
|
|
|
|
%pom_xpath_remove -r "pom:execution[pom:id='shared-logging-generated-sources']"
|
|
|
|
|
|
|
|
%pom_add_dep com.google.code.findbugs:jsr305 surefire-api
|
|
|
|
|
|
|
|
%pom_remove_plugin -r :maven-shade-plugin
|
|
|
|
%pom_remove_plugin -r :build-helper-maven-plugin
|
|
|
|
|
|
|
|
%pom_add_dep org.apache.commons:commons-lang3::runtime maven-surefire-plugin
|
|
|
|
%pom_add_dep commons-io:commons-io::runtime maven-surefire-plugin
|
|
|
|
|
|
|
|
%build
|
|
|
|
pushd surefire-providers/surefire-junit-platform
|
2022-03-22 14:59:45 +01:00
|
|
|
%{mvn_build} -f -- \
|
2019-11-22 17:44:54 +01:00
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
2022-03-22 14:59:45 +01:00
|
|
|
-Dmaven.compiler.release=8 \
|
2019-11-22 17:44:54 +01:00
|
|
|
%endif
|
2022-03-22 14:59:45 +01:00
|
|
|
-Dsource=8
|
2019-11-22 17:44:54 +01:00
|
|
|
|
2019-04-11 22:33:42 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd surefire-providers/surefire-junit-platform
|
|
|
|
%mvn_install
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files -f surefire-providers/surefire-junit-platform/.mfiles
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE NOTICE cpl-v10.html
|
|
|
|
|
|
|
|
%files javadoc -f surefire-providers/surefire-junit-platform/.mfiles-javadoc
|
|
|
|
%license LICENSE NOTICE cpl-v10.html
|
|
|
|
|
|
|
|
%changelog
|