From 4f2873e8360928f85ff40f07a2ed2168ff666423 Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Tue, 19 Jul 2022 16:35:02 +0800 Subject: [PATCH] fix the compilation failure (cherry picked from commit e0f4b2c7f5a78c3cd912823f11c1eefef06be09d) --- apache-commons-pool2.spec | 7 ++++++- fix-build-fail.patch | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 fix-build-fail.patch diff --git a/apache-commons-pool2.spec b/apache-commons-pool2.spec index bf1456d..cdc70c3 100644 --- a/apache-commons-pool2.spec +++ b/apache-commons-pool2.spec @@ -1,10 +1,11 @@ Name: apache-commons-pool2 Version: 2.4.2 -Release: 2 +Release: 3 Summary: Apache Commons Object Pooling Library 2.x series License: ASL 2.0 URL: http://commons.apache.org/proper/commons-pool/ Source0: https://archive.apache.org/dist/commons/pool/source/commons-pool2-%{version}-src.tar.gz +Patch0: fix-build-fail.patch BuildRequires: maven-local mvn(cglib:cglib) mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) mvn(org.ow2.asm:asm-util) BuildArch: noarch @@ -27,6 +28,7 @@ This package contains javadoc for %{name}. %prep %setup -q -n commons-pool2-%{version}-src +%patch0 -p1 %pom_remove_plugin :maven-assembly-plugin %pom_remove_plugin org.apache.maven.plugins:maven-scm-publish-plugin %mvn_file : %{name} commons-pool2 @@ -45,6 +47,9 @@ This package contains javadoc for %{name}. %license LICENSE.txt NOTICE.txt %changelog +* Tue Jul 19 2022 wulei - 2.4.2-3 +- Fix the compilation failure + * Mon Oct 12 2020 chengzihan - 2.4.2-2 - Change url of Source0 diff --git a/fix-build-fail.patch b/fix-build-fail.patch new file mode 100644 index 0000000..f30a55f --- /dev/null +++ b/fix-build-fail.patch @@ -0,0 +1,18 @@ +diff -Nur a/pom.xml b/pom.xml +--- a/pom.xml 2015-07-29 10:19:50.000000000 +0800 ++++ b/pom.xml 2022-07-18 16:26:00.193672451 +0800 +@@ -170,6 +170,7 @@ + org.apache.maven.plugins + maven-surefire-plugin + ++ true + + 1800 + +@@ -313,4 +314,4 @@ + + + +- +\ No newline at end of file ++ -- Gitee