80 lines
2.2 KiB
RPMSpec
80 lines
2.2 KiB
RPMSpec
Name: osgi-compendium
|
|
Version: 6.0.0
|
|
Release: 7
|
|
Summary: Interfaces and Classes for use in compiling bundles
|
|
License: ASL 2.0
|
|
URL: http://www.osgi.org
|
|
|
|
Source0: https://osgi.org/download/r6/osgi.cmpn-%{version}.jar
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local geronimo-jpa glassfish-servlet-api maven-plugin-bundle
|
|
BuildRequires: osgi-annotation osgi-core
|
|
Provides: %{name}-javadoc = %{version}-%{release}
|
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
%autosetup -c -n %{name}-%{version}
|
|
|
|
rm -r org
|
|
find -name '*.class' | xargs rm -f
|
|
|
|
mkdir -p src/main/java
|
|
mv OSGI-OPT/src/org src/main/java/
|
|
mkdir -p src/main/resources
|
|
mv xmlns src/main/resources
|
|
|
|
rm -r src/main/java/org/osgi/service/io
|
|
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
|
|
|
|
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py 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>'
|
|
|
|
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_add_dep org.osgi:osgi.annotation::provided
|
|
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_add_dep org.osgi:osgi.core::provided
|
|
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_add_dep \
|
|
javax.servlet:javax.servlet-api::provided
|
|
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_add_dep \
|
|
javax.persistence:persistence-api::provided
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc about.html
|
|
%license LICENSE
|
|
%{_datadir}/java/*
|
|
%{_datadir}/javadoc/*
|
|
%{_datadir}/maven-poms/*
|
|
%{_datadir}/maven-metadata/*
|
|
|
|
%changelog
|
|
* Wed Dec 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 6.0.0-7
|
|
- Package init |