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