diff --git a/maven-plugin-bundle.spec b/maven-plugin-bundle.spec index d373791..ce75a02 100644 --- a/maven-plugin-bundle.spec +++ b/maven-plugin-bundle.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: maven-plugin-bundle Version: 5.1.1 Release: 1%{?dist} @@ -9,6 +11,9 @@ BuildArch: noarch Source0: https://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/%{version}/maven-bundle-plugin-%{version}-source-release.tar.gz BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(biz.aQute.bnd:biz.aQute.bndlib) BuildRequires: mvn(org.apache.felix:felix-parent:pom:) BuildRequires: mvn(org.apache.felix:org.apache.felix.utils) @@ -20,6 +25,7 @@ BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) BuildRequires: mvn(org.apache.maven.shared:maven-dependency-tree) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.sonatype.plexus:plexus-build-api) +%endif %description Provides a maven plugin that supports creating an OSGi bundle