%bcond_with bootstrap Name: apiguardian Version: 1.1.2 Release: %autorelease Summary: API Guardian Java annotation License: Apache-2.0 URL: https://github.com/apiguardian-team/apiguardian BuildArch: noarch ExclusiveArch: %{java_arches} noarch Source0: https://github.com/apiguardian-team/apiguardian/archive/r%{version}.tar.gz Source100: https://repo1.maven.org/maven2/org/apiguardian/apiguardian-api/%{version}/apiguardian-api-%{version}.pom %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local %endif %description API Guardian indicates the status of an API element and therefore its level of stability as well. It is used to annotate public types, methods, constructors, and fields within a framework or application in order to publish their API status and level of stability and to indicate how they are intended to be used by consumers of the API. %package javadoc Summary: API documentation for %{name} %description javadoc API documentation for %{name}. %prep %autosetup -p1 -C find -name \*.jar -delete cp -p %{SOURCE100} pom.xml mv src/module/java/* src/main/java # Inject OSGi manifest required by Eclipse %pom_xpath_inject pom:project " maven-jar-plugin apiguardian-api apiguardian.org %{version} apiguardian-api apiguardian.org %{version} 2 org.apiguardian %{version} org.apiguardian.api;version=\"%{version}\" org.apache.maven.plugins maven-compiler-plugin default-compile compile 8 **/module-info.java module-info compile 9 **/module-info.java " %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE %files javadoc -f .mfiles-javadoc %license LICENSE %changelog %autochangelog