Update to 1.4.0

This commit is contained in:
Mohamed El Morabity 2025-01-27 00:17:03 +01:00
commit 256ecb0ff4
3 changed files with 20 additions and 27 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ commons-exec-1.0.1-src.tar.gz
/commons-exec-1.1-src.tar.gz
/commons-exec-1.2-src.tar.gz
/commons-exec-1.3-src.tar.gz
/commons-exec-1.4.0-src.tar.gz

View file

@ -2,22 +2,21 @@
%global short_name commons-%{base_name}
Name: apache-commons-exec
Version: 1.3
Release: 33%{?dist}
Version: 1.4.0
Release: 1%{?dist}
Summary: Java library to reliably execute external processes from within the JVM
License: Apache-2.0
URL: http://commons.apache.org/exec/
URL: https://commons.apache.org/proper/%{short_name}
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Source0: https://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
# Tests execute /usr/bin/ping
# Tests require /usr/bin/ping
BuildRequires: iputils
%description
@ -33,32 +32,22 @@ This package contains the API documentation for %{name}.
%prep
%setup -q -n %{short_name}-%{version}-src
%autosetup -n %{short_name}-%{version}-src
# Fix wrong end-of-line encoding
for file in LICENSE.txt NOTICE.txt RELEASE-NOTES.txt STATUS; do
sed -i.orig "s/\r//" $file && \
touch -r $file.orig $file && \
rm $file.orig
done
# Shell scripts used for unit tests must be executable (see
# http://commons.apache.org/exec/faq.html#environment-testing)
chmod a+x src/test/scripts/*.sh
%mvn_file :%{short_name} %{short_name} %{name}
# Disable junit-pioneer features since it's not (yet) available in Fedora
%pom_remove_dep org.junit-pioneer:junit-pioneer
find src/test/java/ -name "*.java" -exec sed -i '/SetSystemProperty/d' {} \;
%build
# - Skip Exec57Test (it is unstable), see RHBZ #1202260
# - Skip Exec34Test/Exec41Test/Exec60Test ("socket: Operation not permitted" on Koji)
# - Skip Exec57Test (it is unstable), see RHBZ #1202260
# - Skip Exec65Test (calls sudo)
%mvn_build -- \
-Dcommons.osgi.symbolicName=org.apache.commons.exec \
-Dcommons.packageId=exec \
-Dmaven.compiler.source=1.8 \
-Dmaven.compiler.target=1.8 \
-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
-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
@ -66,7 +55,7 @@ chmod a+x src/test/scripts/*.sh
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc STATUS RELEASE-NOTES.txt
%doc RELEASE-NOTES.txt
%files javadoc -f .mfiles-javadoc
@ -74,6 +63,9 @@ chmod a+x src/test/scripts/*.sh
%changelog
* Sun Jan 26 2025 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.4.0-1
- Update to 1.4.0
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild

View file

@ -1 +1 @@
f7d050267a75115fcc4431bd7fa567fc commons-exec-1.3-src.tar.gz
SHA512 (commons-exec-1.4.0-src.tar.gz) = 18ec2f138100e7d029425b805093a40f9ae86362c2ce82bc828716c7c4eda6df64b17a4798afe05925d2730488b9d7cef1425d0ef5229345c77a00ffa250de9f