diff --git a/osgi-compendium-build.xml b/osgi-compendium-build.xml index c585c7a..4b7b783 100644 --- a/osgi-compendium-build.xml +++ b/osgi-compendium-build.xml @@ -9,13 +9,14 @@ - + + - - + + @@ -56,6 +57,7 @@ encoding="UTF-8" optimize="false" deprecation="true" + release="${compiler.release}" target="${compiler.target}" verbose="false" fork="false" @@ -116,8 +118,8 @@ - - + + diff --git a/osgi-compendium.changes b/osgi-compendium.changes index 80925b6..4bd9b80 100644 --- a/osgi-compendium.changes +++ b/osgi-compendium.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Oct 7 22:53:25 UTC 2024 - Fridrich Strba + +- Upgrade to upstream version 8.0.0 + * no upstream changelog + +------------------------------------------------------------------- +Wed Oct 2 15:57:05 UTC 2024 - Fridrich Strba + +- Spec file cleanup + ------------------------------------------------------------------- Sat Sep 2 21:52:09 UTC 2023 - Fridrich Strba diff --git a/osgi-compendium.spec b/osgi-compendium.spec index ca13fbf..84a3dd6 100644 --- a/osgi-compendium.spec +++ b/osgi-compendium.spec @@ -1,7 +1,7 @@ # # spec file for package osgi-compendium # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,19 +17,21 @@ Name: osgi-compendium -Version: 7.0.0 +Version: 8.0.0 Release: 0 Summary: Interfaces and Classes for use in compiling OSGi bundles License: Apache-2.0 Group: Development/Libraries/Java -URL: http://www.osgi.org -Source0: https://osgi.org/download/r7/osgi.cmpn-%{version}.jar +URL: https://www.osgi.org +Source0: https://osgi.org/download/r8/osgi.cmpn-%{version}.jar Source1: %{name}-build.xml BuildRequires: ant +BuildRequires: atinject +BuildRequires: cdi-api BuildRequires: fdupes BuildRequires: geronimo-jpa-3_0-api BuildRequires: glassfish-servlet-api -BuildRequires: javapackages-local +BuildRequires: javapackages-local >= 6 BuildRequires: osgi-annotation BuildRequires: osgi-core BuildRequires: unzip @@ -56,10 +58,9 @@ mkdir -p src/main/{java,resources} mv OSGI-OPT/src/org src/main/java/ mv xmlns src/main/resources -# J2ME stuff -rm -r src/main/java/org/osgi/service/io - mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml . +mv META-INF/LICENSE . +mv META-INF/NOTICE . %pom_xpath_inject pom:project ' bundle @@ -82,15 +83,18 @@ mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml . ' +%pom_remove_dep : %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 %pom_add_dep javax.persistence:persistence-api::provided +%pom_add_dep javax.enterprise:cdi-api::provided +%pom_add_dep javax.inject:javax.inject::provided rm -r src/main/java/org/osgi/service/jaxrs mkdir -p lib -build-jar-repository -s lib geronimo-jpa-3.0-api glassfish-servlet-api osgi-annotation osgi-core +build-jar-repository -s lib geronimo-jpa-3.0-api glassfish-servlet-api osgi-annotation osgi-core javax.enterprise.inject atinject %build ant jar javadoc @@ -101,7 +105,7 @@ install -dm 0755 %{buildroot}%{_javadir}/%{name} install -pm 0644 target/osgi.cmpn-%{version}.jar %{buildroot}%{_javadir}/%{name}/osgi.cmpn.jar # pom install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} -install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/osgi.cmpn.pom +%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/osgi.cmpn.pom %add_maven_depmap %{name}/osgi.cmpn.pom %{name}/osgi.cmpn.jar # javadoc install -dm 0755 %{buildroot}%{_javadocdir}/%{name} @@ -109,11 +113,10 @@ cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles -%license LICENSE -%doc about.html +%license LICENSE NOTICE %files javadoc -%license LICENSE +%license LICENSE NOTICE %{_javadocdir}/%{name} %changelog diff --git a/osgi.cmpn-7.0.0.jar b/osgi.cmpn-7.0.0.jar deleted file mode 100644 index f1c3958..0000000 --- a/osgi.cmpn-7.0.0.jar +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e6445afe1abb3dcd43c60c8cd6c0f15b052a8f4228812559ba521c5ce91db34 -size 1478661 diff --git a/osgi.cmpn-8.0.0.jar b/osgi.cmpn-8.0.0.jar new file mode 100644 index 0000000..343f53d --- /dev/null +++ b/osgi.cmpn-8.0.0.jar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f2dd5348f0c97e78588252d7730c05c065cc7b712e1892cc963ab9bf58a0c47 +size 1897102