!13 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:31:16 +00:00 committed by Gitee
commit 839fab7a58
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
%global namedversion %{version}%{?namedreltag}
Name: weld-core
Version: 2.3.5
Release: 3
Release: 4
Summary: Reference Implementation for JSR-299: Contexts and Dependency Injection (CDI)
License: ASL 2.0 and (CDDL-1.0 or GPLv2 with exceptions) and LGPLv2+ and MIT and OFL-1.1
URL: http://weld.cdi-spec.org/
@ -34,6 +34,9 @@ BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.jboss.weld:weld-api) mvn(org.jboss.weld:weld-parent:pom:)
BuildRequires: mvn(org.jboss.weld:weld-spi)
BuildRequires: java-11-openjdk-devel
Requires: java-11-openjdk
Requires: javapackages-tools
Provides: bundled(fontawesome-fonts) = 4.2.0
Provides: bundled(fontawesome-fonts-web) = 4.2.0
%description
@ -80,6 +83,9 @@ sed -i -e 's/InstantiationException/InstantiationException, NoSuchMethodExceptio
environments/servlet/core/src/main/java/org/jboss/weld/environment/tomcat/{Weld,}ForwardingInstanceManager.java
%build
export JAVA_HOME=%{_jvmdir}/java-11-openjdk
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${RPM_OPT_FLAGS}"
%mvn_build -f
%install
@ -91,6 +97,9 @@ sed -i -e 's/InstantiationException/InstantiationException, NoSuchMethodExceptio
%files javadoc -f .mfiles-javadoc
%changelog
* Mon Aug 21 2023 yaoxin <yao_xin001@hoperun.com> - 2.3.5-4
- Fix build failure caused by jboss-classfilewriter upgrade to 1.3.0
* Mon Aug 8 2022 Chenyx <chenyixiong3@huawei.com> - 2.3.5-3
- License compliance rectification