Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent d742c6cbc0
commit 29af927d99

View File

@ -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