From dd1d54231b114f7752d96c9e4fdda65001bd7de5b75d6cac28e2acf8e97999f1 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 19 Mar 2022 21:55:55 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jna?expand=0&rev=12 --- jna.changes | 5 +++++ jna.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/jna.changes b/jna.changes index 3751d66..3d98013 100644 --- a/jna.changes +++ b/jna.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 19 21:55:37 UTC 2022 - Fridrich Strba + +- Build with java source/target levels 8 + ------------------------------------------------------------------- Mon Oct 12 10:02:30 UTC 2020 - Dominique Leuenberger diff --git a/jna.spec b/jna.spec index bd29e52..af92664 100644 --- a/jna.spec +++ b/jna.spec @@ -1,7 +1,7 @@ # # spec file for package jna # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2000-2009, JPackage Project # # All modifications and additions to the file contributed by third parties @@ -21,7 +21,7 @@ Name: jna Version: 5.5.0 Release: 0 Summary: Pure Java access to native libraries -License: LGPL-2.1-or-later OR Apache-2.0 +License: Apache-2.0 OR LGPL-2.1-or-later URL: https://github.com/twall/jna Source0: https://github.com/twall/%{name}/archive/%{version}.tar.gz Source1000: %{name}-rpmlintrc @@ -84,13 +84,13 @@ sed -i 's|@LIBDIR@|%{_libdir}/%{name}|' src/com/sun/jna/Native.java %build build-jar-repository -s -p lib ant -ant \ +%ant \ jar \ native \ platform-jar \ -Dcflags_extra.native="%{optflags}" \ -Dbuild-native=true -Drelease \ - -Dcompatibility=1.6 -Dplatform.compatibility=1.6 \ + -Dcompatibility=1.8 -Dplatform.compatibility=1.8 \ -Ddynlink.native=true \ jar \ native \