Force Java 1.6 source/target (rhbz#842609)

This commit is contained in:
Mikolaj Izdebski 2015-06-11 07:56:57 +02:00
parent ea75144529
commit d8061ed7c5

View File

@ -1,6 +1,6 @@
Name: jna
Version: 4.1.0
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Pure Java access to native libraries
License: LGPLv2 or ASL 2.0
URL: https://github.com/twall/jna
@ -96,7 +96,7 @@ chmod -c 0644 LICENSE OTHERS CHANGES.md
# We pass -Ddynlink.native which comes from our patch because
# upstream doesn't want to default to dynamic linking.
#ant -Dcflags_extra.native="%{optflags}" -Ddynlink.native=true native compile javadoc jar contrib-jars
ant -Dcflags_extra.native="%{optflags}" -Ddynlink.native=true native dist
ant -Dcompatibility=1.6 -Dplatform.compatibility=1.6 -Dcflags_extra.native="%{optflags}" -Ddynlink.native=true native dist
# remove compiled contribs
find contrib -name build -exec rm -rf {} \; || :
@ -144,6 +144,9 @@ cp -a doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}
%changelog
* Thu Jun 11 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.0-8
- Force Java 1.6 source/target (rhbz#842609)
* Wed Oct 01 2014 Michal Srb <msrb@redhat.com> - 4.1.0-7
- Fix for 32-bit systems (Resolves: rhbz#1148349)
- Fix FTBFS (Resolves: rhbz#1106955)