Fix build with JDK 17
This commit is contained in:
parent
cbae9b0338
commit
54968f8faf
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: apache-commons-exec
|
Name: apache-commons-exec
|
||||||
Version: 1.3
|
Version: 1.3
|
||||||
Release: 21%{?dist}
|
Release: 22%{?dist}
|
||||||
Summary: Java library to reliably execute external processes from within the JVM
|
Summary: Java library to reliably execute external processes from within the JVM
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://commons.apache.org/exec/
|
URL: http://commons.apache.org/exec/
|
||||||
@ -48,18 +48,17 @@ chmod a+x src/test/scripts/*.sh
|
|||||||
# Skip Exec57Test (it is unstable), see rhbz#1202260
|
# Skip Exec57Test (it is unstable), see rhbz#1202260
|
||||||
find -name Exec57Test.java -delete
|
find -name Exec57Test.java -delete
|
||||||
|
|
||||||
%pom_xpath_set pom:properties/pom:maven.compiler.source 6
|
|
||||||
%pom_xpath_set pom:properties/pom:maven.compiler.target 6
|
|
||||||
|
|
||||||
%mvn_file :%{short_name} %{short_name} %{name}
|
%mvn_file :%{short_name} %{short_name} %{name}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.exec
|
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.exec -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
|
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE.txt NOTICE.txt
|
%license LICENSE.txt NOTICE.txt
|
||||||
%doc STATUS RELEASE-NOTES.txt
|
%doc STATUS RELEASE-NOTES.txt
|
||||||
@ -68,7 +67,11 @@ find -name Exec57Test.java -delete
|
|||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%license LICENSE.txt NOTICE.txt
|
%license LICENSE.txt NOTICE.txt
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 06 2022 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.3-22
|
||||||
|
- Fix build with JDK 17
|
||||||
|
|
||||||
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.3-21
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.3-21
|
||||||
- Rebuilt for java-17-openjdk as system jdk
|
- Rebuilt for java-17-openjdk as system jdk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user