From 29af927d99d322fdeff616be3db532148aca7abe 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 --- cglib.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cglib.spec b/cglib.spec index 1b493b5..10855a8 100644 --- a/cglib.spec +++ b/cglib.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + %global tarball_name RELEASE_%(echo '%{version}' | tr . _) Name: cglib @@ -15,10 +17,14 @@ Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz Patch0: 0001-Remove-unused-import.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.ow2.asm:asm) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +%endif %description cglib is a powerful, high performance and quality code generation library