Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent 0acbf4930e
commit 234ec4ce5a

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: httpcomponents-client Name: httpcomponents-client
Summary: HTTP agent implementation based on httpcomponents HttpCore Summary: HTTP agent implementation based on httpcomponents HttpCore
Version: 4.5.11 Version: 4.5.11
@ -11,6 +13,9 @@ Patch0: 0001-Use-system-copy-of-effective_tld_names.dat.patch
Patch1: 0002-Port-to-mockito-2.patch Patch1: 0002-Port-to-mockito-2.patch
BuildRequires: maven-local-openjdk8 BuildRequires: maven-local-openjdk8
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: %{?module_prefix}mvn(commons-codec:commons-codec) BuildRequires: %{?module_prefix}mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit) BuildRequires: mvn(junit:junit)
@ -19,13 +24,16 @@ BuildRequires: mvn(org.apache.httpcomponents:httpcomponents-parent:pom:)
BuildRequires: %{?module_prefix}mvn(org.apache.httpcomponents:httpcore) BuildRequires: %{?module_prefix}mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.mockito:mockito-core)
%endif
%if 0%{?module_prefix:1} %if 0%{?module_prefix:1}
%package -n %{module_prefix}%{name} %package -n %{module_prefix}%{name}
Summary: %{summary} Summary: %{summary}
%endif %endif
%if %{without bootstrap}
BuildRequires: publicsuffix-list BuildRequires: publicsuffix-list
%endif
Requires: publicsuffix-list Requires: publicsuffix-list
%if 0%{?module_prefix:1} %if 0%{?module_prefix:1}