From 1c31765a2b4f78ffdde69283e2382e895b0d12e1 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Mon, 28 Oct 2019 11:37:59 +0100 Subject: [PATCH] Require appropriate providers depending on installed packages --- maven-surefire.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maven-surefire.spec b/maven-surefire.spec index 933e5a5..223ee3e 100644 --- a/maven-surefire.spec +++ b/maven-surefire.spec @@ -50,6 +50,9 @@ Surefire is a test framework project. %package plugin Summary: Surefire plugin for maven +Requires: (%{name}-provider-junit = %{version}-%{release} if junit) +Requires: (%{name}-provider-junit5 = %{version}-%{release} if junit5) +Requires: (%{name}-provider-testng = %{version}-%{release} if testng) %description plugin Maven surefire plugin for running tests via the surefire framework.