%bcond_with bootstrap Name: maven-bundle-plugin Version: 5.1.9 Release: %autorelease Summary: Maven Bundle Plugin License: Apache-2.0 URL: https://felix.apache.org BuildArch: noarch ExclusiveArch: %{java_arches} noarch Source0: https://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/%{version}/maven-bundle-plugin-%{version}-source-release.tar.gz %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local 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) BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.shared:maven-dependency-tree) BuildRequires: mvn(org.apache.maven:maven-archiver) BuildRequires: mvn(org.apache.maven:maven-artifact) BuildRequires: mvn(org.apache.maven:maven-compat) BuildRequires: mvn(org.apache.maven:maven-core) BuildRequires: mvn(org.apache.maven:maven-model) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.sonatype.plexus:plexus-build-api) %endif %description Provides a maven plugin that supports creating an OSGi bundle from the contents of the compilation classpath along with its resources and dependencies. Plus a zillion other features. %package javadoc Summary: Javadoc for %{name} # TODO remove Provides / Obsoletes on maven-plugin-bundle-javadoc in Fedora 41 Provides: maven-plugin-bundle-javadoc = %{version}-%{release} Obsoletes: maven-plugin-bundle-javadoc < 5.1.1-9 %description javadoc API documentation for %{name}. %prep %autosetup -p1 -C find -name '*.jar' -delete # There is forked version of maven-osgi in # src/{main,test}/java/org/apache/maven rm -rf src/main/java/org/apache/felix/obrplugin/ %pom_remove_dep :org.apache.felix.bundlerepository rm -f src/main/java/org/apache/felix/bundleplugin/baseline/BaselineReport.java %pom_remove_dep :doxia-sink-api %pom_remove_dep :doxia-site-renderer %pom_remove_dep :maven-reporting-api %pom_remove_dep :org.osgi.core %pom_remove_dep :jdom %pom_remove_plugin :maven-invoker-plugin %build # Tests depend on bundled JARs # source and target set explicitly for xmvn-javadoc-plugin %mvn_build -f -- -Dmaven.compiler.target=8 %install %mvn_install %files -f .mfiles %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog %autochangelog