Set compiler source and target to fix FTBFS

This commit is contained in:
Mat Booth 2019-11-30 15:10:26 +00:00
commit 1053e93251

View file

@ -3,7 +3,7 @@
Name: apache-%{short_name}
Version: 1.4
Release: 27%{?dist}
Release: 28%{?dist}
Summary: Apache Commons DataBase Pooling Package
License: ASL 2.0
URL: http://commons.apache.org/%{base_name}/
@ -51,7 +51,7 @@ iconv -f iso8859-1 -t utf-8 RELEASE-NOTES.txt > RELEASE-NOTES.txt.conv && mv -f
%build
# Skip tests, tomcat:naming-java and tomcat:naming-common not available
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.dbcp
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.dbcp -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
%mvn_install
@ -64,6 +64,9 @@ iconv -f iso8859-1 -t utf-8 RELEASE-NOTES.txt > RELEASE-NOTES.txt.conv && mv -f
%license LICENSE.txt NOTICE.txt
%changelog
* Sat Nov 30 2019 Mat Booth <mat.booth@redhat.com> - 1.4-28
- Set compiler source and target to fix FTBFS
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild