use version of rpm in pomfiles

This commit is contained in:
Zuzana Miklankova 2022-05-16 11:25:37 +02:00
parent 797ad810a3
commit 41e3e7904c
No known key found for this signature in database
GPG Key ID: 46A18EF4D17103A0

View File

@ -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 <zmiklank@redhat.com> - 5.11.0-2
- Use correct version in provided pom files
* Mon Mar 28 2022 Zuzana Miklankova <zmiklank@redhat.com> - 5.11.0-1
- Rebase to version 5.11.0