|
|
|
@ -1,18 +1,16 @@
|
|
|
|
|
Name: jna
|
|
|
|
|
Version: 5.6.0
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Version: 4.5.1
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Pure Java access to native libraries
|
|
|
|
|
# Most of code is dual-licensed under either LGPL 2.1+ only or Apache
|
|
|
|
|
# Most of code is dual-licensed under either LGPL 2.1 only or Apache
|
|
|
|
|
# License 2.0. WeakIdentityHashMap.java was taken from Apache CXF,
|
|
|
|
|
# which is pure Apache License 2.0.
|
|
|
|
|
License: (LGPLv2+ or ASL 2.0) and ASL 2.0
|
|
|
|
|
|
|
|
|
|
License: (LGPLv2 or ASL 2.0) and ASL 2.0
|
|
|
|
|
URL: https://github.com/java-native-access/jna/
|
|
|
|
|
# ./generate-tarball.sh
|
|
|
|
|
Source0: %{name}-%{version}-clean.tar.xz
|
|
|
|
|
Source1: package-list
|
|
|
|
|
Source2: generate-tarball.sh
|
|
|
|
|
|
|
|
|
|
Patch0: 0001-Adapt-build.patch
|
|
|
|
|
# This patch is Fedora-specific for now until we get the huge
|
|
|
|
|
# JNI library location mess sorted upstream
|
|
|
|
@ -29,9 +27,6 @@ Patch3: 0004-Fix-javadoc-build.patch
|
|
|
|
|
Patch4: 0005-Fix-duplicate-manifest-entry.patch
|
|
|
|
|
# We don't want newly added warnings to break our build
|
|
|
|
|
Patch5: 0006-Remove-Werror.patch
|
|
|
|
|
# Fix compatibility with Java 8
|
|
|
|
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=2162040
|
|
|
|
|
Patch6: 0007-Set-explicit-compiler-release.patch
|
|
|
|
|
|
|
|
|
|
# We manually require libffi because find-requires doesn't work
|
|
|
|
|
# inside jars.
|
|
|
|
@ -63,7 +58,7 @@ This package contains the javadocs for %{name}.
|
|
|
|
|
|
|
|
|
|
%package contrib
|
|
|
|
|
Summary: Contrib for %{name}
|
|
|
|
|
License: LGPLv2+ or ASL 2.0
|
|
|
|
|
License: LGPLv2 or ASL 2.0
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
@ -72,7 +67,7 @@ This package contains the contributed examples for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
%patch0 -p1 -b .build
|
|
|
|
|
%patch1 -p1 -b .loadlib
|
|
|
|
@ -80,7 +75,6 @@ cp %{SOURCE1} .
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
%patch6 -p1
|
|
|
|
|
|
|
|
|
|
chmod -Rf a+rX,u+w,g-w,o-w .
|
|
|
|
|
sed -i 's|@LIBDIR@|%{_libdir}/%{name}|' src/com/sun/jna/Native.java
|
|
|
|
@ -90,25 +84,24 @@ sed -i 's/\r//' LICENSE
|
|
|
|
|
|
|
|
|
|
chmod -c 0644 LICENSE OTHERS CHANGES.md
|
|
|
|
|
|
|
|
|
|
build-jar-repository -s -p lib junit
|
|
|
|
|
rm test/com/sun/jna/StructureFieldOrderInspector.java
|
|
|
|
|
rm test/com/sun/jna/StructureFieldOrderInspectorTest.java
|
|
|
|
|
ln -s $(xmvn-resolve ant:ant:1.10.5) lib/ant.jar
|
|
|
|
|
build-jar-repository -s -p lib junit ant
|
|
|
|
|
|
|
|
|
|
cp lib/native/aix-ppc64.jar lib/clover.jar
|
|
|
|
|
|
|
|
|
|
# we don't want reflections BR
|
|
|
|
|
rm test/com/sun/jna/StructureFieldOrderInspector.java
|
|
|
|
|
rm test/com/sun/jna/StructureFieldOrderInspectorTest.java
|
|
|
|
|
rm contrib/platform/test/com/sun/jna/platform/StructureFieldOrderTest.java
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# We pass -Ddynlink.native which comes from our patch because
|
|
|
|
|
# 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.8 -Dplatform.compatibility=1.8\
|
|
|
|
|
-Dcflags_extra.native="%{optflags}" -Ddynlink.native=true -DCC=%{__cc} 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 {} \; || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# NOTE: JNA has highly custom code to look for native jars in this
|
|
|
|
|
# directory. Since this roughly matches the jpackage guidelines,
|
|
|
|
@ -139,75 +132,14 @@ 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
|
|
|
|
|
|
|
|
|
|
* Wed Aug 18 2021 Carlos O'Donell <codonell@redhat.com> - 5.6.0-6
|
|
|
|
|
- Rebuilt for libffi 3.4.2 SONAME transition.
|
|
|
|
|
Related: rhbz#1891914
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.6.0-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Apr 29 2021 Ondrej Dubaj <odubaj@redhat.com> - 5.6.0-4
|
|
|
|
|
- Build without reflections optional dependency (#1954987)
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.6.0-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 07 2021 Ondrej Dubaj <odubaj@redhat.com> - 5.6.0-1
|
|
|
|
|
- Rebase to version 5.6.0
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 23 2020 Fabio Valentini <decathorpe@gmail.com> - 5.4.0-6
|
|
|
|
|
- Remove special-cased aarch32 build for java-1.8.0-openjdk.
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 5.4.0-5
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
* Thu Jul 09 2020 Mat Booth <mat.booth@redhat.com> - 5.4.0-4
|
|
|
|
|
- Fix conditional build without reflections
|
|
|
|
|
|
|
|
|
|
* Thu Apr 02 2020 Tom Stellard <tstellar@redhat.com> - 5.4.0-3
|
|
|
|
|
- Pass C compiler to ant
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2019 Marian Koncek <mkoncek@redhat.com> - 5.4.0-1
|
|
|
|
|
- Update to upstream version 5.4.0
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 01 2019 Mat Booth <mat.booth@redhat.com> - 4.5.1-9
|
|
|
|
|
- Minor correction in license tag
|
|
|
|
|
|
|
|
|
|
* Mon Jun 17 2019 Mat Booth <mat.booth@redhat.com> - 4.5.1-8
|
|
|
|
|
- Use xmvn-resolve for portable way to get the ant jar
|
|
|
|
|
|
|
|
|
|
* Sat Jun 08 2019 Mat Booth <mbooth@apache.org> - 4.5.1-7
|
|
|
|
|
- Speed up builds on 32bit arm
|
|
|
|
|
|
|
|
|
|
* Thu Mar 07 2019 Mat Booth <mat.booth@redhat.com> - 4.5.1-6
|
|
|
|
|
- Allow conditionally building without the reflections library for tests
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 4.5.1-5
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
* Fri Aug 02 2019 Jakub Janco <jjanco@redhat.com> - 4.5.1-5
|
|
|
|
|
- Onboard gating and move to AppStream
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Mon May 28 2018 Michael Simacek <msimacek@redhat.com> - 4.5.1-4
|
|
|
|
|
- Remove BR on reflections
|
|
|
|
|
|
|
|
|
|
* Thu Feb 22 2018 Michael Simacek <msimacek@redhat.com> - 4.5.1-3
|
|
|
|
|
- Disable -Werror
|
|
|
|
|