Set correct compat. value also to ant parameters

This commit is contained in:
Zuzana Miklankova 2023-01-30 10:29:32 +01:00 committed by Stepan Oksanichenko
parent 156aa11664
commit fc0bd1882b
2 changed files with 7 additions and 2 deletions

1
.jna.metadata Normal file
View File

@ -0,0 +1 @@
78b24042ae61b976b521efa9c333a914a7981c4c jna-5.6.0-clean.tar.xz

View File

@ -1,6 +1,6 @@
Name: jna
Version: 5.6.0
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Pure Java access to native libraries
# Most of code is dual-licensed under either LGPL 2.1+ only or Apache
# License 2.0. WeakIdentityHashMap.java was taken from Apache CXF,
@ -103,7 +103,7 @@ cp lib/native/aix-ppc64.jar lib/clover.jar
# upstream doesn't want to default to dynamic linking.
# -Drelease removes the .SNAPSHOT suffix from maven artifact names
#ant -Dcflags_extra.native="%{optflags}" -Ddynlink.native=true native compile javadoc jar contrib-jars
ant -Drelease -Dcompatibility=1.6 -Dplatform.compatibility=1.6\
ant -Drelease -Dcompatibility=1.8 -Dplatform.compatibility=1.8\
-Dcflags_extra.native="%{optflags}" -Ddynlink.native=true -DCC=%{__cc} native dist
# remove compiled contribs
find contrib -name build -exec rm -rf {} \; || :
@ -139,6 +139,10 @@ install -m 755 build/native*/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/
%changelog
* Mon Jan 30 2023 Zuzana Miklankova <zmiklank@redhat.com> - 5.6.0-8
- Set correct compat. value also to ant parameters
- Resolves: rhbz#2162040
* Mon Jan 23 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.6.0-7
- Fix compatibility with Java 8
- Resolves: rhbz#2162040