Compare commits

..

1 commit

3 changed files with 29 additions and 45 deletions

3
.gitignore vendored
View file

@ -2,6 +2,3 @@ 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
/commons-exec-1.5.0-src.tar.gz
/commons-exec-1.6.0-src.tar.gz

View file

@ -2,21 +2,22 @@
%global short_name commons-%{base_name}
Name: apache-commons-exec
Version: 1.6.0
Release: 2%{?dist}
Version: 1.3
Release: 31%{?dist}
Summary: Java library to reliably execute external processes from within the JVM
License: Apache-2.0
URL: https://commons.apache.org/proper/%{short_name}
URL: http://commons.apache.org/exec/
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
Source0: https://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
BuildRequires: maven-local-openjdk25
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
# Tests require /usr/bin/ping
# Tests execute /usr/bin/ping
BuildRequires: iputils
%description
@ -32,22 +33,32 @@ This package contains the API documentation for %{name}.
%prep
%autosetup -n %{short_name}-%{version}-src
%setup -q -n %{short_name}-%{version}-src
# 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' {} \;
# 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}
%build
# - Skip Exec34Test/Exec41Test/Exec60Test ("socket: Operation not permitted" on Koji)
# - Skip Exec57Test (it is unstable), see RHBZ #1202260
# - Skip Exec65Test (calls sudo)
# - Skip Exec34Test/Exec41Test/Exec60Test ("socket: Operation not permitted" on Koji)
%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
-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
%install
%mvn_install
@ -55,7 +66,7 @@ find src/test/java/ -name "*.java" -exec sed -i '/SetSystemProperty/d' {} \;
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc RELEASE-NOTES.txt
%doc STATUS RELEASE-NOTES.txt
%files javadoc -f .mfiles-javadoc
@ -63,31 +74,7 @@ find src/test/java/ -name "*.java" -exec sed -i '/SetSystemProperty/d' {} \;
%changelog
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Sat Jan 03 2026 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.6.0-1
- Update to 1.6.0
* Tue Jul 29 2025 jiri vanek <jvanek@redhat.com> - 1.5.0-3
- Rebuilt for java-25-openjdk as preffered jdk
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sat Jul 12 2025 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.5.0-1
- Update to 1.5.0
* 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
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Feb 27 2024 Jiri Vanek <jvanek@redhat.com> - 1.3-31
* Sat Mar 02 2024 Jiri Vanek <jvanek@redhat.com> - 1.3-31
- Rebuilt for java-21-openjdk as system jdk
* Wed Jan 31 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-30

View file

@ -1 +1 @@
SHA512 (commons-exec-1.6.0-src.tar.gz) = 00e8eb552e886ba9da0b9636ee9ffce142eb33faa9d2873e7619e6508ab59b214bde1818f43012ecdab928ddc0697514482b33c3c268729c3049ce4306a7ea1e
f7d050267a75115fcc4431bd7fa567fc commons-exec-1.3-src.tar.gz