- Hardcode requirement for java 1.8 or newer to build

OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=39
This commit is contained in:
Tomáš Chvátal 2017-05-18 12:39:10 +00:00 committed by Git OBS Bridge
parent 64518923b8
commit de088f1e50
2 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 18 12:40:03 UTC 2017 - tchvatal@suse.com
- Hardcode requirement for java 1.8 or newer to build
-------------------------------------------------------------------
Thu May 18 11:55:03 UTC 2017 - tchvatal@suse.com

View File

@ -36,7 +36,7 @@ BuildRequires: ant
BuildRequires: ant-contrib
BuildRequires: apache-commons-logging
BuildRequires: geronimo-jta-1_1-api
BuildRequires: java-devel >= 1.6.0
BuildRequires: java-devel >= 1.8.0
BuildRequires: javapackages-tools
BuildRequires: junit
BuildRequires: log4j-mini
@ -101,19 +101,19 @@ export CLASSPATH=$(build-classpath \
junit \
log4j)
ant \
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
-DbuildDir=build-mysql-jdbc \
-DdistDir=dist-mysql-jdbc \
-Dcom.mysql.jdbc.jdk5.javac=%{javac} \
-Dcom.mysql.jdbc.jdk8.javac=%{javac} \
-Dsnapshot.version= \
-Dcom.mysql.jdbc.extra.libs=lib \
-Dcom.mysql.jdbc.jdk5.javac="%{javac}" \
-Dcom.mysql.jdbc.jdk8.javac="%{javac}" \
-Dcom.mysql.jdbc.jdk8.java="%{java}" \
-Dant.java.version=1.5 \
-Dant.build.javac.source=1.6 \
-Dant.build.javac.target=1.7 \
dist
%install
install -d -m 755 %{buildroot}%{_javadir}
install ./build-mysql-jdbc/%{name}-%{version}-SNAPSHOT/%{name}-%{version}-SNAPSHOT-bin.jar \
install ./build/%{name}-%{version}/%{name}-%{version}-bin.jar \
%{buildroot}%{_javadir}/%{name}.jar
rm -rf %{buildroot}%{name}-%{version}/docs/release-test-output