67 lines
1.7 KiB
RPMSpec
67 lines
1.7 KiB
RPMSpec
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 "
|
|
<packaging>bundle</packaging>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<instructions>
|
|
<Bundle-Name>\${project.artifactId}</Bundle-Name>
|
|
<Bundle-SymbolicName>\${project.artifactId}</Bundle-SymbolicName>
|
|
</instructions>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>"
|
|
|
|
%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 <buildteam@openeuler.org> - 6.0.0-9
|
|
- Package init
|