From dd1f216ba35dcb902d3ab25ca8882790d34bd1f7 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 15 Dec 2020 09:24:43 +0100 Subject: [PATCH] Add boolean dependencies between plugin and provider subpackages maven-surefire-plugin requires its providers to work correctly, yet it doesn't have any dependencies on them -- it relies on maven-local to pull in appropriate providers. In order to make Java buildroots smaller, maven-local will no longer require Surefire providers. Instead, maven-surefire-plugin needs to conditionally require its providers, depending on whether particular testing framework package (JUnit, TestNG) is installed. --- maven-surefire.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/maven-surefire.spec b/maven-surefire.spec index 6a5e74b..7c07627 100644 --- a/maven-surefire.spec +++ b/maven-surefire.spec @@ -2,7 +2,7 @@ Name: maven-surefire Version: 2.22.0 -Release: 9%{?dist} +Release: 10%{?dist} Epoch: 0 Summary: Test framework project License: ASL 2.0 and CPL @@ -62,6 +62,11 @@ Surefire is a test framework project. %package plugin Summary: Surefire plugin for maven +Requires: (%{name}-provider-junit = %{epoch}:%{version}-%{release} if junit) +Requires: (%{name}-provider-testng = %{epoch}:%{version}-%{release} if testng) +%if %{with junit5} +Requires: (%{name}-provider-junit5 = %{epoch}:%{version}-%{release} if junit5) +%endif %description plugin Maven surefire plugin for running tests via the surefire framework. @@ -204,6 +209,9 @@ sed -i /-Xdoclint:all/d pom.xml %license LICENSE NOTICE cpl-v10.html %changelog +* Tue Dec 15 2020 Mikolaj Izdebski - 0:2.22.0-10 +- Add boolean dependencies between plugin and provider subpackages + * Tue Jul 28 2020 Fedora Release Engineering - 0:2.22.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild