71 lines
1.7 KiB
RPMSpec
71 lines
1.7 KiB
RPMSpec
Name: osgi-core
|
|
Version: 6.0.0
|
|
Release: 8
|
|
License: ASL 2.0
|
|
Summary: OSGi Core API
|
|
URL: https://www.osgi.org
|
|
Source0: https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}-sources.jar
|
|
Source1: https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}.pom
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin) mvn(org.osgi:org.osgi.annotation)
|
|
|
|
%description
|
|
OSGi Core version 6, this version is used to compile bundled interfaces and classes.
|
|
|
|
%package help
|
|
Summary: API documentation for osgi-core
|
|
Provides: %{name}-javadoc = %{version}-%{release}
|
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
|
|
%description help
|
|
This package provides API documentation for osgi-core.
|
|
|
|
|
|
%prep
|
|
%autosetup -c -p1
|
|
|
|
cp -p %SOURCE1 pom.xml
|
|
mkdir -p src/main/java
|
|
mv org src/main/java/
|
|
|
|
%pom_xpath_inject pom:project '
|
|
<packaging>bundle</packaging>
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
<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>'
|
|
|
|
%pom_add_dep org.osgi:osgi.annotation::provided
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
%doc about.html
|
|
|
|
%files help -f .mfiles-javadoc
|
|
|
|
%changelog
|
|
* Fri Dec 06 2019 yangjian<yangjian79@huawei.com> - 6.0.0-8
|
|
- Package init
|