Update from 6.0.0 to 7.0.0
This commit is contained in:
parent
bec619c2fe
commit
44fbc6e22c
@ -1,37 +1,39 @@
|
|||||||
Name: osgi-compendium
|
%bcond_with jp_minimal
|
||||||
Version: 6.0.0
|
Name: osgi-compendium
|
||||||
Release: 7
|
Version: 7.0.0
|
||||||
Summary: Interfaces and Classes for use in compiling bundles
|
Release: 1
|
||||||
License: ASL 2.0
|
Summary: Interfaces and Classes for use in compiling OSGi bundles
|
||||||
URL: http://www.osgi.org
|
License: ASL 2.0
|
||||||
|
URL: http://www.osgi.org
|
||||||
Source0: https://osgi.org/download/r6/osgi.cmpn-%{version}.jar
|
Source0: https://osgi.org/download/r7/osgi.cmpn-%{version}.jar
|
||||||
|
BuildRequires: maven-local mvn(javax.servlet:javax.servlet-api)
|
||||||
BuildArch: noarch
|
%if %{without jp_minimal}
|
||||||
BuildRequires: maven-local geronimo-jpa glassfish-servlet-api maven-plugin-bundle
|
BuildRequires: mvn(javax.persistence:persistence-api)
|
||||||
BuildRequires: osgi-annotation osgi-core
|
BuildRequires: mvn(javax.ws.rs:javax.ws.rs-api) >= 2.1.5-2
|
||||||
Provides: %{name}-javadoc = %{version}-%{release}
|
%endif
|
||||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.osgi:osgi.annotation)
|
||||||
|
BuildRequires: mvn(org.osgi:osgi.core)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
OSGi Compendium, Interfaces and Classes for use in compiling bundles.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: API documentation for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
This package provides %{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -c -n %{name}-%{version}
|
%setup -q -c
|
||||||
|
|
||||||
rm -r org
|
rm -r org
|
||||||
find -name '*.class' | xargs rm -f
|
find -name '*.class' -delete
|
||||||
|
mkdir -p src/main/{java,resources}
|
||||||
mkdir -p src/main/java
|
|
||||||
mv OSGI-OPT/src/org src/main/java/
|
mv OSGI-OPT/src/org src/main/java/
|
||||||
mkdir -p src/main/resources
|
|
||||||
mv xmlns src/main/resources
|
mv xmlns src/main/resources
|
||||||
|
|
||||||
rm -r src/main/java/org/osgi/service/io
|
rm -r src/main/java/org/osgi/service/io
|
||||||
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
|
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
|
||||||
|
%pom_xpath_inject pom:project '
|
||||||
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_xpath_inject pom:project '
|
|
||||||
<packaging>bundle</packaging>
|
<packaging>bundle</packaging>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
@ -51,30 +53,34 @@ mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>'
|
</build>'
|
||||||
|
%pom_add_dep org.osgi:osgi.annotation::provided
|
||||||
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_add_dep org.osgi:osgi.annotation::provided
|
%pom_add_dep org.osgi:osgi.core::provided
|
||||||
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_add_dep org.osgi:osgi.core::provided
|
%pom_add_dep javax.servlet:javax.servlet-api::provided
|
||||||
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_add_dep \
|
%if %{without jp_minimal}
|
||||||
javax.servlet:javax.servlet-api::provided
|
%pom_add_dep javax.persistence:persistence-api::provided
|
||||||
%{_bindir}/python3 %{_datadir}/java-utils/pom_editor.py pom_add_dep \
|
%pom_add_dep javax.ws.rs:javax.ws.rs-api::provided
|
||||||
javax.persistence:persistence-api::provided
|
%else
|
||||||
|
rm -r src/main/java/org/osgi/service/jaxrs
|
||||||
|
rm -r src/main/java/org/osgi/service/jpa
|
||||||
|
rm -r src/main/java/org/osgi/service/transaction/control/jpa
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%mvn_build
|
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
%files
|
%license LICENSE
|
||||||
%defattr(-,root,root)
|
%doc about.html
|
||||||
%doc about.html
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_datadir}/java/*
|
|
||||||
%{_datadir}/javadoc/*
|
|
||||||
%{_datadir}/maven-poms/*
|
|
||||||
%{_datadir}/maven-metadata/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 13 2020 leiju <leiju4@huawei.com> - 7.0.0-1
|
||||||
|
- Update from 6.0.0 to 7.0.0
|
||||||
|
|
||||||
* Wed Dec 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 6.0.0-7
|
* Wed Dec 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 6.0.0-7
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
4
osgi-compendium.yaml
Normal file
4
osgi-compendium.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: NA
|
||||||
|
src_repo: NA
|
||||||
|
tag_prefix: NA
|
||||||
|
seperator: NA
|
||||||
Binary file not shown.
BIN
osgi.cmpn-7.0.0.jar
Normal file
BIN
osgi.cmpn-7.0.0.jar
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user