remove redundant macro pkg_vcmp

This commit is contained in:
chen-jan 2023-05-18 15:39:19 +08:00
parent 71d41d39b0
commit fd5a91dfd5

View File

@ -1,6 +1,6 @@
Name: jnr-ffi
Version: 2.1.8
Release: 1
Release: 2
Summary: Java Abstracted Foreign Function Layer
License: Apache-2.0
URL: http://github.com/jnr/%{name}/
@ -29,11 +29,7 @@ find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;
sed -i 's|-Werror||' libtest/GNUmakefile
%build
%{mvn_build} -f -- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=6 \
%endif
-Dasm.version=7.0
%{mvn_build} -f -- -Dasm.version=7.0
%install
%mvn_install
@ -46,5 +42,8 @@ sed -i 's|-Werror||' libtest/GNUmakefile
%license LICENSE
%changelog
* Thu May 18 2023 chenchen <chen_aka_jan@163.com> - 2.1.8-2
- remove redundant macro pkg_vcmp
* Fri Jul 31 2020 Jeffery.Gao <gaojianxing@huawei.com> - 2.1.8-1
- Package init