!4 Fix build failure caused by jboss-classfilewriter upgrade to 1.3.0

From: @starlet-dx 
Reviewed-by: @wangchong1995924 
Signed-off-by: @wangchong1995924
This commit is contained in:
openeuler-ci-bot 2023-08-22 00:32:18 +00:00 committed by Gitee
commit 0ab9186de8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
%global namedversion %{version}%{?namedreltag}
Name: jboss-invocation
Version: 1.7.0
Release: 1
Release: 2
Summary: JBoss Invocation API
License: LGPLv2+
URL: https://github.com/jbossas/jboss-invocation
@ -19,6 +19,9 @@ BuildRequires: mvn(org.wildfly.security:wildfly-security-manager)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.wildfly.security:wildfly-elytron)
BuildRequires: mvn(org.wildfly.common:wildfly-common)
BuildRequires: java-11-openjdk-devel
Requires: java-11-openjdk
Requires: javapackages-tools
%description
This package contains JBoss Invocation API
@ -31,12 +34,16 @@ This package contains the API documentation for %{name}.
%setup -q -n jboss-invocation-%{namedversion}
%pom_disable_module jakarta
%pom_add_dep org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:1.0.2.Final javax
%pom_remove_plugin "org.jboss.bridger:bridger"
%pom_remove_plugin "org.wildfly.extras.batavia:transformer-tools-mvn"
%pom_remove_dep "jakarta.interceptor:jakarta.interceptor-api"
%pom_remove_dep "jakarta.transaction:jakarta.transaction-api"
%build
export JAVA_HOME=%{_jvmdir}/java-11-openjdk
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${RPM_OPT_FLAGS}"
%mvn_build
%install
@ -47,6 +54,9 @@ This package contains the API documentation for %{name}.
%files javadoc -f .mfiles-javadoc
%changelog
* Mon Aug 21 2023 yaoxin <yao_xin001@hoperun.com> - 1.7.0-2
- Fix build failure caused by jboss-classfilewriter upgrade to 1.3.0
* Fri Jun 24 2022 Ge Wang <wangge20@h-partners.com> -1.7.0-1
- Upgrade to version 1.7.0