From 54a6d3a8325e68125ba594b172a9ca034062ab93 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Apr 16 2021 13:33:13 +0000 Subject: Conditionalize buildrequires in bootstrap mode --- diff --git a/testng.spec b/testng.spec index 9f2072c..049608c 100644 --- a/testng.spec +++ b/testng.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: testng Version: 7.3.0 Release: 1%{?dist} @@ -20,6 +22,9 @@ Patch1: 0002-Replace-bundled-jquery-with-CDN-link.patch BuildArch: noarch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(com.beust:jcommander) BuildRequires: mvn(com.google.code.findbugs:jsr305) BuildRequires: mvn(com.google.inject:guice::no_aop:) @@ -27,6 +32,7 @@ BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +%endif %description TestNG is a testing framework inspired from JUnit and NUnit but introducing