diff --git a/jna.spec b/jna.spec index f4a5e6e..06d1474 100644 --- a/jna.spec +++ b/jna.spec @@ -3,7 +3,7 @@ Name: jna Version: 5.11.0 -Release: 1%{?dist} +Release: 2%{?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, @@ -92,6 +92,13 @@ cp %{SOURCE1} . chmod -Rf a+rX,u+w,g-w,o-w . 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 + # clean LICENSE.txt sed -i 's/\r//' LICENSE @@ -156,6 +163,9 @@ install -m 755 build/native*/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/ %changelog +* Mon May 16 2022 Zuzana Miklankova - 5.11.0-2 +- Use correct version in provided pom files + * Mon Mar 28 2022 Zuzana Miklankova - 5.11.0-1 - Rebase to version 5.11.0