Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent 2849fe3cb0
commit 9dac382e59

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: guava
Version: 30.1
Release: 1%{?dist}
@ -13,11 +15,15 @@ Source0: https://github.com/google/guava/archive/v%{version}.tar.gz
Patch1: 0001-Remove-multi-line-annotations.patch
BuildRequires: maven-local-openjdk8
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: %{?module_prefix}mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
%endif
%description
Guava is a suite of core and expanded libraries that include