From 6ca981057a7a76856a3f71f47d5a335c634ca810 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Wed, 26 Mar 2025 08:43:19 +0100 Subject: [PATCH 1/7] Switch to javapackages tests from CentOS Stream GitLab --- plans/javapackages.fmf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plans/javapackages.fmf b/plans/javapackages.fmf index 1e5c8de..36643ec 100644 --- a/plans/javapackages.fmf +++ b/plans/javapackages.fmf @@ -1,7 +1,7 @@ summary: Run javapackages-specific tests discover: how: fmf - url: https://src.fedoraproject.org/tests/javapackages + url: https://gitlab.com/redhat/centos-stream/tests/javapackages.git ref: main execute: how: tmt From 053bc923a578f81177dc8706fc8f3e86e2558155 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 4 Jun 2025 13:34:11 +0200 Subject: [PATCH 2/7] Drop javadoc subpackage --- jna.spec | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/jna.spec b/jna.spec index 064cade..b04b40e 100644 --- a/jna.spec +++ b/jna.spec @@ -59,6 +59,9 @@ BuildRequires: hamcrest BuildRequires: reflections %endif +# TODO Remove in Fedora 46 +Obsoletes: %{name}-javadoc < 5.15.0-4 + %description JNA provides Java programs easy access to native shared libraries (DLLs on Windows) without writing anything but Java code. JNA's @@ -67,13 +70,6 @@ minimum of effort. No boilerplate or generated code is required. While some attention is paid to performance, correctness and ease of use take priority. -%package javadoc -Summary: Javadocs for %{name} -BuildArch: noarch - -%description javadoc -This package contains the javadocs for %{name}. - %package contrib Summary: Contrib for %{name} License: LGPLv2+ or ASL 2.0 @@ -142,16 +138,13 @@ install -m 755 build/native*/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/ %mvn_artifact pom-jna.xml build/jna-min.jar %mvn_artifact pom-jna-platform.xml contrib/platform/dist/jna-platform.jar -%mvn_install -J doc/javadoc +%mvn_install %files -f .mfiles %doc OTHERS README.md CHANGES.md TODO %license LICENSE LGPL2.1 AL2.0 %{_libdir}/%{name} -%files javadoc -f .mfiles-javadoc -%license LICENSE LGPL2.1 AL2.0 - %files contrib -f .mfiles-contrib %changelog From f4f2c93a14eec9f01575099b0397d71999fd6765 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 4 Jun 2025 14:31:07 +0200 Subject: [PATCH 3/7] Update to upstream version 5.17.0 --- .gitignore | 1 + 0004-Fix-javadoc-build.patch | 10 +++++----- generate-tarball.sh | 12 +++++------- jna.spec | 14 ++++++++------ sources | 2 +- 5 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 988bc06..9d587c1 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ jna-3.2.7.tar.bz2 /jna-5.13.0-clean.tar.xz /jna-5.14.0-clean.tar.xz /jna-5.15.0-clean.tar.xz +/jna-5.17.0.tar.zst diff --git a/0004-Fix-javadoc-build.patch b/0004-Fix-javadoc-build.patch index dc5ab54..b2bc537 100644 --- a/0004-Fix-javadoc-build.patch +++ b/0004-Fix-javadoc-build.patch @@ -8,17 +8,17 @@ Subject: [PATCH 4/6] Fix javadoc build 1 file changed, 1 insertion(+) diff --git a/build.xml b/build.xml -index 835c02b..cecafd0 100644 +index 8f5733a..fb8d544 100644 --- a/build.xml +++ b/build.xml -@@ -1307,6 +1307,7 @@ cd .. +@@ -1343,6 +1343,7 @@ cd .. + - - +