diff --git a/osgi-annotation.spec b/osgi-annotation.spec new file mode 100644 index 0000000..9509774 --- /dev/null +++ b/osgi-annotation.spec @@ -0,0 +1,66 @@ +Name: osgi-annotation +Version: 6.0.0 +Release: 9 +Summary: Annotations for use in compiling bundles +License: ASL 2.0 +URL: http://www.osgi.org/ + +Source0: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}-sources.jar +Source1: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}.pom + +BuildArch: noarch +BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin) +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description +%{summary} + +%prep +%autosetup -c -n %{name}-%{version} + +mkdir -p src/main/resources +mv about.html src/main/resources +mkdir -p src/main/java +mv org src/main/java +cp -p %{SOURCE1} pom.xml + +%pom_xpath_inject pom:project " + bundle + + + + org.apache.felix + maven-bundle-plugin + true + + + \${project.artifactId} + \${project.artifactId} + + + + + " + +%mvn_alias org.osgi:osgi.annotation org.osgi:org.osgi.annotation + +%build +%mvn_build + +%install +%mvn_install + +%files +%defattr(-,root,root) +%license LICENSE +%dir %{_javadir}/osgi-annotation +%dir %{_mavenpomdir}/osgi-annotation +%{_datadir}/java/* +%{_datadir}/javadoc/* +%{_datadir}/maven-poms/* +%{_datadir}/maven-metadata/* + +%changelog +* Wed Dec 4 2019 openEuler Buildteam - 6.0.0-9 +- Package init diff --git a/osgi.annotation-6.0.0-sources.jar b/osgi.annotation-6.0.0-sources.jar new file mode 100644 index 0000000..ff7b72e Binary files /dev/null and b/osgi.annotation-6.0.0-sources.jar differ diff --git a/osgi.annotation-6.0.0.pom b/osgi.annotation-6.0.0.pom new file mode 100644 index 0000000..42c7d0a --- /dev/null +++ b/osgi.annotation-6.0.0.pom @@ -0,0 +1,34 @@ + + + 4.0.0 + org.osgi + osgi.annotation + 6.0.0 + OSGi Annotation Release 6, Annotations for use in compiling bundles. + org.osgi:osgi.annotation + http://www.osgi.org/ + + OSGi Alliance + http://www.osgi.org/ + + + + Apache License, Version 2.0 + http://opensource.org/licenses/apache2.0.php + repo + + + + https://www.osgi.org/members/git/build.git + scm:git:https://www.osgi.org/members/git/build.git + scm:git:https://www.osgi.org/members/git/build.git + + + + osgi + info@osgi.org + OSGi Alliance + OSGi Alliance + + +