Conditionalize buildrequires in bootstrap mode
This commit is contained in:
parent
92c4d023c1
commit
33ad00b3d4
@ -1,3 +1,5 @@
|
|||||||
|
%bcond_without bootstrap
|
||||||
|
|
||||||
Name: google-guice
|
Name: google-guice
|
||||||
Version: 4.2.3
|
Version: 4.2.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -11,6 +13,9 @@ Source0: %{name}-%{version}.tar.xz
|
|||||||
Source1: create-tarball.sh
|
Source1: create-tarball.sh
|
||||||
|
|
||||||
BuildRequires: maven-local-openjdk8
|
BuildRequires: maven-local-openjdk8
|
||||||
|
%if %{with bootstrap}
|
||||||
|
BuildRequires: javapackages-bootstrap
|
||||||
|
%else
|
||||||
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
||||||
BuildRequires: %{?module_prefix}mvn(com.google.guava:guava)
|
BuildRequires: %{?module_prefix}mvn(com.google.guava:guava)
|
||||||
BuildRequires: %{?module_prefix}mvn(javax.inject:javax.inject)
|
BuildRequires: %{?module_prefix}mvn(javax.inject:javax.inject)
|
||||||
@ -20,8 +25,11 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
|
|||||||
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
||||||
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||||
BuildRequires: mvn(org.sonatype.plugins:munge-maven-plugin)
|
BuildRequires: mvn(org.sonatype.plugins:munge-maven-plugin)
|
||||||
|
%endif
|
||||||
# xmvn-builddep misses this:
|
# xmvn-builddep misses this:
|
||||||
|
%if %{without bootstrap}
|
||||||
BuildRequires: mvn(org.apache:apache-jar-resource-bundle)
|
BuildRequires: mvn(org.apache:apache-jar-resource-bundle)
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Put simply, Guice alleviates the need for factories and the use of new
|
Put simply, Guice alleviates the need for factories and the use of new
|
||||||
|
Loading…
Reference in New Issue
Block a user