%bcond_with bootstrap Name: plexus-build-api Version: 1.2.0 Release: %autorelease Summary: Plexus Build API License: Apache-2.0 URL: https://github.com/codehaus-plexus/plexus-build-api BuildArch: noarch ExclusiveArch: %{java_arches} noarch Source0: https://github.com/codehaus-plexus/plexus-build-api/archive/refs/tags/plexus-build-api-%{version}.tar.gz Source1: http://www.apache.org/licenses/LICENSE-2.0.txt %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local BuildRequires: mvn(javax.inject:javax.inject) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.codehaus.plexus:plexus:pom:) BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus) BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.sonatype.plexus:plexus-build-api) %endif %description Plexus Build API %package javadoc Summary: Javadoc for %{name} %description javadoc API documentation for %{name}. %prep %autosetup -p1 -C cp -p %{SOURCE1} . %mvn_file : plexus/%{name} # Install plexus-build-api-tests as well %mvn_package : %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %license LICENSE-2.0.txt %changelog %autochangelog