!19 [sync] PR-18: fix %pkg_vcmp not being recognized

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-06-29 01:34:02 +00:00 committed by Gitee
commit 377e6323e9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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