Accepting request 1141014 from Java:packages

Force java 8 compatibility when building with JDK <= 21

OBS-URL: https://build.opensuse.org/request/show/1141014
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jna?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2024-01-25 17:39:33 +00:00 committed by Git OBS Bridge
commit 19faede37c
3 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,6 @@
--- jna-5.13.0/build.xml 2023-05-30 15:30:31.116195853 +0200
+++ jna-5.13.0/build.xml 2023-05-30 15:31:56.400786710 +0200
@@ -106,8 +106,12 @@
@@ -106,8 +106,14 @@
JDK 11 is the last JDK, that supports creation of Java 6 compatible class
files.
-->
@ -10,6 +10,8 @@
<matches pattern="^1\.\d+$" string="${ant.java.version}"/>
+ <matches pattern="^9.*$" string="${ant.java.version}"/>
+ <matches pattern="^1.*$$" string="${ant.java.version}"/>
+ <matches pattern="^20.*$$" string="${ant.java.version}"/>
+ <matches pattern="^21.*$$" string="${ant.java.version}"/>
+ </or>
</condition>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jan 23 15:33:23 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* jna-java8compat.patch
+ force java 1.8 compatibility for all JDKs which support it
-------------------------------------------------------------------
Wed Aug 30 10:34:18 UTC 2023 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package jna
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2000-2009, JPackage Project
#
# All modifications and additions to the file contributed by third parties