From ed78ff87a72d18972fffe0ac90e0cbc5a95a4560 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 16 Apr 2021 15:33:12 +0200 Subject: [PATCH] Conditionalize buildrequires in bootstrap mode --- jsr-305.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jsr-305.spec b/jsr-305.spec index 75a12a5..1e297a1 100644 --- a/jsr-305.spec +++ b/jsr-305.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: jsr-305 Version: 3.0.2 Release: 1%{?dist} @@ -15,7 +17,11 @@ Source0: %{name}-%{version}.tar.gz Source1: NOTICE-CC-BY.txt BuildRequires: maven-local-openjdk8 +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +%endif %description This package contains reference implementations, test cases, and other