fix %pkg_vcmp not being recognized

Signed-off-by: cherry530 <707078654@qq.com>
(cherry picked from commit 36c552c748f8a78730baeb2cda3c49d1835be27d)
This commit is contained in:
cherry530 2023-06-28 17:54:34 +08:00 committed by openeuler-sync-bot
parent cb71ab28cf
commit eb27d5c426

View File

@ -2,7 +2,7 @@
%global sover 1.2
Name: jffi
Version: 1.2.13
Release: 1
Release: 2
Summary: Java Foreign Function Interface
License: LGPL-3.0-or-later OR Apache-2.0
URL: http://github.com/jnr/jffi
@ -37,9 +37,7 @@ This package contains the API documentation for %{name}.
%patch0
%patch1
%patch2
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 1.8}%{!?pkg_vcmp:0}
%patch3 -p1
%endif
%patch4
sed -i.cpu -e '/m\$(MODEL)/d' jni/GNUmakefile libtest/GNUmakefile
rm -rf archive/* jni/libffi/ jni/win32/ lib/CopyLibs/ lib/junit*
@ -83,5 +81,8 @@ ant -Duse.system.libffi=1 test
%doc COPYING.GPL COPYING.LESSER LICENSE
%changelog
* Wed Jun 28 2023 xu_ping <70707865@qq.com> - 1.2.13-2
- fix %pkg_vcmp not being recognized
* Thu Jul 30 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.2.13-1
- Package init