diff --git a/osgi-compendium.spec b/osgi-compendium.spec index 7375792..c1bdd99 100644 --- a/osgi-compendium.spec +++ b/osgi-compendium.spec @@ -1,37 +1,39 @@ -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} +%bcond_with jp_minimal +Name: osgi-compendium +Version: 7.0.0 +Release: 1 +Summary: Interfaces and Classes for use in compiling OSGi bundles +License: ASL 2.0 +URL: http://www.osgi.org +Source0: https://osgi.org/download/r7/osgi.cmpn-%{version}.jar +BuildRequires: maven-local mvn(javax.servlet:javax.servlet-api) +%if %{without jp_minimal} +BuildRequires: mvn(javax.persistence:persistence-api) +BuildRequires: mvn(javax.ws.rs:javax.ws.rs-api) >= 2.1.5-2 +%endif +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.osgi:osgi.annotation) +BuildRequires: mvn(org.osgi:osgi.core) +BuildArch: noarch %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 -%autosetup -c -n %{name}-%{version} - +%setup -q -c rm -r org -find -name '*.class' | xargs rm -f - -mkdir -p src/main/java +find -name '*.class' -delete +mkdir -p src/main/{java,resources} 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 ' +%pom_xpath_inject pom:project ' bundle UTF-8 @@ -51,30 +53,34 @@ mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml . ' - -%{_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 +%pom_add_dep org.osgi:osgi.annotation::provided +%pom_add_dep org.osgi:osgi.core::provided +%pom_add_dep javax.servlet:javax.servlet-api::provided +%if %{without jp_minimal} +%pom_add_dep javax.persistence:persistence-api::provided +%pom_add_dep javax.ws.rs:javax.ws.rs-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 -%mvn_build +%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install - -%files -%defattr(-,root,root) -%doc about.html +%files -f .mfiles +%license LICENSE +%doc about.html + +%files javadoc -f .mfiles-javadoc %license LICENSE -%{_datadir}/java/* -%{_datadir}/javadoc/* -%{_datadir}/maven-poms/* -%{_datadir}/maven-metadata/* %changelog +* Thu Aug 13 2020 leiju - 7.0.0-1 +- Update from 6.0.0 to 7.0.0 + * Wed Dec 4 2019 openEuler Buildteam - 6.0.0-7 -- Package init \ No newline at end of file +- Package init diff --git a/osgi-compendium.yaml b/osgi-compendium.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/osgi-compendium.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA diff --git a/osgi.cmpn-6.0.0.jar b/osgi.cmpn-6.0.0.jar deleted file mode 100644 index 59e3d60..0000000 Binary files a/osgi.cmpn-6.0.0.jar and /dev/null differ diff --git a/osgi.cmpn-7.0.0.jar b/osgi.cmpn-7.0.0.jar new file mode 100644 index 0000000..31ddda4 Binary files /dev/null and b/osgi.cmpn-7.0.0.jar differ