diff --git a/google-gson.changes b/google-gson.changes index 3e64d02..482b6c3 100644 --- a/google-gson.changes +++ b/google-gson.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Apr 29 14:47:02 UTC 2024 - Fridrich Strba + +- The binaries are compatible with java 1.8 + +------------------------------------------------------------------- +Wed Feb 21 10:44:10 UTC 2024 - Gus Kenion + +- Use %patch -P N instead of deprecated %patchN. + ------------------------------------------------------------------- Sat Sep 9 13:38:45 UTC 2023 - Fridrich Strba diff --git a/google-gson.spec b/google-gson.spec index fb1b828..a97ad33 100644 --- a/google-gson.spec +++ b/google-gson.spec @@ -1,7 +1,7 @@ # # spec file for package google-gson # -# 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 @@ -31,6 +31,10 @@ BuildRequires: java-devel >= 9 BuildRequires: maven-local BuildRequires: mvn(javax.annotation:jsr250-api) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +# The automatic requires would be java-headless >= 9, but the +# binaries are java 8 compatible +%define __requires_exclude java-headless +Requires: java-headless >= 1.8 BuildArch: noarch %description @@ -47,8 +51,8 @@ This package contains the API documentation for %{name}. %prep %setup -q -n gson-gson-parent-%{version} -%patch0 -p1 -%patch1 -p1 +%patch -P 0 -p1 +%patch -P 1 -p1 # remove unnecessary dependency on parent POM %pom_remove_parent