diff --git a/apiguardian-api-1.0.0.pom b/apiguardian-api-1.0.0.pom new file mode 100644 index 0000000..7f49470 --- /dev/null +++ b/apiguardian-api-1.0.0.pom @@ -0,0 +1,29 @@ + + + 4.0.0 + org.apiguardian + apiguardian-api + 1.0.0 + org.apiguardian:apiguardian-api + @API Guardian + https://github.com/apiguardian-team/apiguardian + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + apiguardian + @API Guardian Team + team@apiguardian.org + + + + scm:git:git://github.com/apiguardian-team/apiguardian.git + scm:git:git://github.com/apiguardian-team/apiguardian.git + https://github.com/apiguardian-team/apiguardian + + diff --git a/apiguardian.spec b/apiguardian.spec new file mode 100644 index 0000000..81fb2fd --- /dev/null +++ b/apiguardian.spec @@ -0,0 +1,75 @@ +Name: apiguardian +Version: 1.0.0 +Release: 4 +Summary: API Guardian Java annotation +License: ASL 2.0 +URL: https://github.com/apiguardian-team/apiguardian +Source0: https://github.com/apiguardian-team/apiguardian/archive/r%{version}.tar.gz +Source1: https://repo1.maven.org/maven2/org/apiguardian/apiguardian-api/%{version}/apiguardian-api-%{version}.pom +BuildArch: noarch +BuildRequires: maven-local + +%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: Javadoc for apiguardian + +%description javadoc +API documentation for apiguardian. + +%prep +%autosetup -n apiguardian-r%{version} +find -name \*.jar -exec rm -f {} \; +cp -p %{SOURCE1} pom.xml + +# Inject OSGi manifest required by Eclipse +%pom_xpath_inject pom:project " + + + + + maven-jar-plugin + + + + org.apiguardian.api + apiguardian-api + apiguardian.org + %{version} + apiguardian-api + apiguardian.org + %{version} + + 2 + org.apiguardian + %{version} + org.apiguardian.api;version=\"%{version}\" + + + + + + + " + + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog +* Wed Mar 11 2020 zoushuangshuang - 1.0.0-4 +- Package init diff --git a/r1.0.0.tar.gz b/r1.0.0.tar.gz new file mode 100644 index 0000000..f4c70e7 Binary files /dev/null and b/r1.0.0.tar.gz differ