use version of rpm in pomfiles
This commit is contained in:
parent
797ad810a3
commit
41e3e7904c
12
jna.spec
12
jna.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: jna
|
Name: jna
|
||||||
Version: 5.11.0
|
Version: 5.11.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Pure Java access to native libraries
|
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,
|
# 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 .
|
chmod -Rf a+rX,u+w,g-w,o-w .
|
||||||
sed -i 's|@LIBDIR@|%{_libdir}/%{name}|' src/com/sun/jna/Native.java
|
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
|
# clean LICENSE.txt
|
||||||
sed -i 's/\r//' LICENSE
|
sed -i 's/\r//' LICENSE
|
||||||
|
|
||||||
@ -156,6 +163,9 @@ install -m 755 build/native*/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Mar 28 2022 Zuzana Miklankova <zmiklank@redhat.com> - 5.11.0-1
|
||||||
- Rebase to version 5.11.0
|
- Rebase to version 5.11.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user