diff --git a/apache-commons-exec.spec b/apache-commons-exec.spec index e4508d576f9a42730af9ebc00f9a73575f6532ed..8f844306ca152541e6be3de0dbcf4db1c7a17ffe 100644 --- a/apache-commons-exec.spec +++ b/apache-commons-exec.spec @@ -1,14 +1,15 @@ Name: apache-commons-exec -Version: 1.3 -Release: 10 +Version: 1.6.0 +Release: 1 Summary: A library to reliably execute external processes from within the JVM -License: ASL 2.0 +License: Apache-2.0 URL: http://commons.apache.org/exec/ -Source0: http://www.apache.org/dist/commons/exec/source/commons-exec-%{version}-src.tar.gz +Source0: https://downloads.apache.org/commons/exec/source/commons-exec-%{version}-src.tar.gz BuildArch: noarch BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) iputils +BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform) %description The apache-commons-exec package contains a library to reliably @@ -26,23 +27,30 @@ The apache-commons-exec-help package contains related documents. %prep %autosetup -n commons-exec-%{version}-src -p1 -find src/test/scripts -name "*.sh" | xargs chmod a+x -find ./ -name Exec57Test.java | xargs rm +%pom_remove_dep org.junit-pioneer:junit-pioneer +find src/test/java/ -name "*.java" -exec sed -i '/SetSystemProperty/d' {} \; %mvn_file :commons-exec commons-exec %{name} %build -%mvn_build +%mvn_build -- \ + -Dcommons.osgi.symbolicName=org.apache.commons.exec \ + -Dcommons.packageId=exec \ + -Dtest=\!org.apache.commons.exec.issues.Exec34Test,\!org.apache.commons.exec.issues.Exec41Test,\!org.apache.commons.exec.issues.Exec57Test,\!org.apache.commons.exec.issues.Exec60Test,\!org.apache.commons.exec.issues.Exec65Test %install %mvn_install %files -f .mfiles -%doc LICENSE.txt NOTICE.txt STATUS RELEASE-NOTES.txt +%license LICENSE.txt NOTICE.txt +%doc RELEASE-NOTES.txt %files help -f .mfiles-javadoc -%doc LICENSE.txt NOTICE.txt +%license LICENSE.txt NOTICE.txt %changelog +* Mon Dec 15 2025 yaoxin <1024769339@qq.com> - 1.6.0-1 +- Update to 1.6.0 + * Wed Mar 11 2020 Jiangping Hu - 1.3-10 - Package init diff --git a/commons-exec-1.3-src.tar.gz b/commons-exec-1.3-src.tar.gz deleted file mode 100644 index aded4944984bc0bcbd7b2c81cd1e664d5b8b5730..0000000000000000000000000000000000000000 Binary files a/commons-exec-1.3-src.tar.gz and /dev/null differ diff --git a/commons-exec-1.6.0-src.tar.gz b/commons-exec-1.6.0-src.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8b771fba6b391b7a84d31d68f11725323632d5e5 Binary files /dev/null and b/commons-exec-1.6.0-src.tar.gz differ