Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25d8c8d03d | ||
|
|
4b6d478af7 | ||
|
|
15fda0c0f6 | ||
|
|
d6b7eccc62 | ||
|
|
f4f2c93a14 | ||
|
|
053bc923a5 | ||
|
|
6ca981057a |
6 changed files with 27 additions and 34 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ..
|
||||
<group title="Platform Specific" packages="com.sun.jna.platform.*"/>
|
||||
|
||||
<arg value="-notimestamp"/>
|
||||
+ <arg value="--allow-script-in-comments"/>
|
||||
</javadoc>
|
||||
<jar jarfile="${platform-javadoc-jar}" createUnicodeExtraFields="never" encoding="UTF-8">
|
||||
<fileset dir="${javadoc}" />
|
||||
<!--
|
||||
Create an empty resources/fonts/dejavu.css - the file is reference by default
|
||||
--
|
||||
2.20.1
|
||||
2.49.0
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
version=`grep Version: *spec | sed -e 's/Version:\s*\(.*\)/\1/'`
|
||||
version=$(grep Version: *.spec | sed -e 's/Version:\s*\(.*\)/\1/')
|
||||
|
||||
|
||||
wget https://github.com/java-native-access/jna/archive/${version}.tar.gz -O jna-${version}.tar.gz
|
||||
curl -L https://github.com/java-native-access/jna/archive/${version}.tar.gz -o jna-${version}.tar.gz
|
||||
rm -rf jna-${version}
|
||||
tar xf jna-${version}.tar.gz
|
||||
#mv twall-jna-* jna-${version}
|
||||
|
|
@ -15,14 +14,13 @@ rm -rvf jna-${version}/{dist/*,www,native/libffi}
|
|||
# effect on resulting jar. One jar (depending on architecture) will
|
||||
# be replaced with full content (containing libjnidispatch.so)
|
||||
for njar in jna-${version}/lib/native/*.jar; do
|
||||
rm -v $njar
|
||||
rm -v ${njar}
|
||||
touch empty
|
||||
jar cf $njar empty
|
||||
jar -cf ${njar} empty
|
||||
rm -f empty
|
||||
done
|
||||
|
||||
find jna-${version} -iname '*jar' -size +1b -delete
|
||||
find jna-${version} -name '*.class' -delete
|
||||
|
||||
tar cf jna-${version}-clean.tar jna-${version}
|
||||
xz -9 jna-${version}-clean.tar
|
||||
tar -c jna-${version} | zstd -10 -f -o "jna-${version}.tar.zst"
|
||||
|
|
|
|||
34
jna.spec
34
jna.spec
|
|
@ -6,7 +6,7 @@
|
|||
%endif
|
||||
|
||||
Name: jna
|
||||
Version: 5.15.0
|
||||
Version: 5.17.0
|
||||
Release: %autorelease
|
||||
Summary: Pure Java access to native libraries
|
||||
# Most of code is dual-licensed under either LGPL 2.1+ only or Apache
|
||||
|
|
@ -16,7 +16,7 @@ License: Apache-2.0 OR LGPL-2.1-or-later
|
|||
|
||||
URL: https://github.com/java-native-access/jna/
|
||||
# ./generate-tarball.sh
|
||||
Source0: %{name}-%{version}-clean.tar.xz
|
||||
Source0: %{name}-%{version}.tar.zst
|
||||
Source1: package-list
|
||||
Source2: generate-tarball.sh
|
||||
|
||||
|
|
@ -46,9 +46,9 @@ ExclusiveArch: %{java_arches}
|
|||
Requires: libffi
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-local-openjdk25
|
||||
BuildRequires: libffi-devel
|
||||
BuildRequires: ant
|
||||
BuildRequires: ant-openjdk25
|
||||
BuildRequires: ant-junit
|
||||
BuildRequires: junit
|
||||
BuildRequires: libX11-devel
|
||||
|
|
@ -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,16 +70,8 @@ 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
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
|
|
@ -92,10 +87,12 @@ sed -i 's|@LIBDIR@|%{_libdir}/%{name}|' src/com/sun/jna/Native.java
|
|||
|
||||
# TEMPLATE has to be changed to %%version in the pom files
|
||||
# in order to generate correct provides
|
||||
sed -i 's/TEMPLATE/%{version}/' pom-jna-jpms.xml \
|
||||
pom-jna-platform.xml \
|
||||
pom-jna.xml \
|
||||
pom-jna-platform-jpms.xml
|
||||
sed -i 's/TEMPLATE/%{version}/' \
|
||||
pom-jna-jpms.xml \
|
||||
pom-jna-platform.xml \
|
||||
pom-jna.xml \
|
||||
pom-jna-platform-jpms.xml \
|
||||
;
|
||||
|
||||
# clean LICENSE.txt
|
||||
sed -i 's/\r//' LICENSE
|
||||
|
|
@ -142,16 +139,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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (jna-5.15.0-clean.tar.xz) = 321586504c7ae1769334bd73c4415c6b94bf2f3b56f269d21bb5e6aa0f2aebe32a3b1ac201531d0a033ba51b99d5fede3a4defd92c60c62d871d4781200f7a19
|
||||
SHA512 (jna-5.17.0.tar.zst) = 7e611377d6f91e68ce6939e5a544ad6efe4c069c1cd5b1c18aee0e21679fecebce82ab9fb20d904d7dc6b92122c734f518b346a51b296ac8475f407541ac0a9a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue