Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package google-gson for openSUSE:Factory 
checked in at 2022-04-01 21:36:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/google-gson (Old)
 and      /work/SRC/openSUSE:Factory/.google-gson.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "google-gson"

Fri Apr  1 21:36:01 2022 rev:5 rq:966358 version:2.8.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/google-gson/google-gson.changes  2022-03-31 
17:19:23.320798339 +0200
+++ /work/SRC/openSUSE:Factory/.google-gson.new.1900/google-gson.changes        
2022-04-01 21:37:18.412706783 +0200
@@ -1,0 +2,10 @@
+Fri Apr  1 08:00:10 UTC 2022 - Fridrich Strba <[email protected]>
+
+- Build with Java >= 9 in order to produce a modular jar by
+  compiling the module-info.java sources with all other classes
+  built with release 8 and still compatible with Java 8
+- Removed patch:
+  * allow-build-with-java8.patch
+    + not needed in this setting
+
+-------------------------------------------------------------------

Old:
----
  allow-build-with-java8.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ google-gson.spec ++++++
--- /var/tmp/diff_new_pack.RlOsw6/_old  2022-04-01 21:37:18.852701957 +0200
+++ /var/tmp/diff_new_pack.RlOsw6/_new  2022-04-01 21:37:18.856701913 +0200
@@ -23,12 +23,11 @@
 License:        Apache-2.0
 URL:            https://github.com/google/gson
 Source0:        
https://github.com/google/gson/archive/gson-parent-%{version}.tar.gz
-Patch1:         osgi-export-internal.patch
-Patch2:         allow-build-with-java8.patch
+Patch0:         osgi-export-internal.patch
 # Remove dependency on unavailable templating-maven-plugin
-Patch3:         no-template-plugin.patch
+Patch1:         no-template-plugin.patch
 BuildRequires:  fdupes
-BuildRequires:  java-devel >= 1.8
+BuildRequires:  java-devel >= 9
 BuildRequires:  maven-local
 BuildRequires:  mvn(javax.annotation:jsr250-api)
 BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
@@ -48,15 +47,14 @@
 
 %prep
 %setup -q -n gson-gson-parent-%{version}
+%patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
 
 # remove unnecessary dependency on parent POM
 %pom_remove_parent
 
 # presence of these files breaks builds with Java 8
-find -name "module-info.java" -print -delete
+# find -name "module-info.java" -print -delete
 
 # Use felix maven-bundle-plugin only for OSGi metadata
 %pom_remove_plugin :bnd-maven-plugin gson
@@ -76,12 +74,10 @@
     </execution>
   </executions>"
 
+%pom_xpath_set 
"pom:plugins/pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration"
 "<release>8</release>"
+
 %build
-%{mvn_build} -f -- \
-%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-       -Dmaven.compiler.release=8 \
-%endif
-    -Dsource=8
+%{mvn_build} -f -- -Dsource=8
 
 %install
 %mvn_install

Reply via email to