- Updated to 5.1.47 - Bug#28449601, MASTER : UNITTEST FOR BUG#22305979 (TESTBUG22305979) STILL FAILS ON QA SETUP. - Bug#81063 (23098159), w/ rewriteBatchedStatements, when 2 tables involved, the rewriting not correct. - Bug#84813 (25501750), rewriteBatchedStatements fails in INSERT. - Fix for Bug#81196 (23227334), CONNECTOR/J NOT FOLLOWING DATABASE CHARACTER SET. - Bug#72609 (18749544), SETDATE() NOT USING A PROLEPTIC GREGORIAN CALENDAR. - Bug#87534 (26730196), UNION ALL query fails when useServerPrepStmts=true on database connection. Test case only. Base bug fixed in MySQL 5.7.22. - Bug#89948 (27658489), Batched statements are not committed for useLocalTransactionState=true. - BUG#80532 (22847443), ENCODING OF RESULTSET.UPDATEROW IS BROKEN FOR NON ASCII CHARCTERS. - BUG#22305979, WRONG RECORD UPDATED IF SENDFRACTIONALSECONDS=FALSE AND SMT IS SCROLLABLE. - BUG#90024 (27677574), SOME TESTS FAILED AGAINST MYSQL 8.0.5 BECAUSE OF DEPRECATED FEATURES REMOVAL. - Updated to 5.1.46 - WL#11629, Change caching_sha2_password padding. - Bug#86741 (26314325), Multi-Host connection with autocommit=0 getAutoCommit maybe wrong. - Bug#27231383, PROVIDE MAVEN-FRIENDLY COMMERCIAL PACKAGES WITHOUT "-BIN". - Bug#26819691, SETTING PACKETDEBUGBUFFERSIZE=0 RESULTS IN CONNECTION FAILURE. - WL#11200, Add caching_sha2_password support. - Bug#88227 (27029657), Connector/J 5.1.44 cannot be used against MySQL 5.7.20 without warnings. - Bug#27374581, CONNECTION FAILS WHEN GPL SERVER STARTED WITH TLS-VERSION=TLSV1.2. - Bug#79612 (22362474), CONNECTION ATTRIBUTES LOST WHEN CONNECTING WITHOUT DEFAULT DATABASE. - Updated to 5.1.45 - Bug#27131768, NULL POINTER EXCEPTION IN CONNECTION. - Bug#88232 (27047676), c/J does not rollback transaction when autoReconnect=true. - Bug#88242 (27040063), autoReconnect and socketTimeout JDBC option makes wrong order of client packet. - Bug#88021 (26939943), High GC pressure when driver configured with serversideprepared statements. - Bug#26724085, CHARSET MAPPING TO BE UPDATED FOR MYSQL 8.0.3. - Bug#26794652, TEST FAILING DUE TO BINARY LOGGING ENABLED BY DEFAULT IN MYSQL 8.0.3. - Bug#26794602, TESTS FAILING DUE TO CHANGE IN INFORMATION_SCHEMA.INNODB_SYS_* NAMING. - Bug#87704 (26771560), THE STREAM GETS THE RESULT SET ?THE DRIVER SIDE GET WRONG ABOUT GETLONG(). OBS-URL: https://build.opensuse.org/request/show/646450 OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=51
141 lines
4.3 KiB
RPMSpec
141 lines
4.3 KiB
RPMSpec
#
|
|
# spec file for package mysql-connector-java
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: mysql-connector-java
|
|
Version: 5.1.47
|
|
Release: 0
|
|
Summary: Official JDBC Driver for MySQL
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Libraries/Java
|
|
Url: http://dev.mysql.com/downloads/connector/j/
|
|
Source0: %{name}-%{version}-suse.tar.xz
|
|
# Script to repack upstream tarball
|
|
# ./generate-tarball.sh VERSION
|
|
Source99: generate-tarball.sh
|
|
Patch0: javac-check.patch
|
|
Patch1: hibernate-check.patch
|
|
Patch2: mysql-connector-java-jdbc-4.1.patch
|
|
Patch3: disable-testsuite.patch
|
|
Patch4: compile-jdk7.patch
|
|
Patch5: mysql-connector-java-sourcetarget.patch
|
|
BuildRequires: ant
|
|
BuildRequires: ant-contrib
|
|
BuildRequires: apache-commons-logging
|
|
BuildRequires: geronimo-jta-1_1-api
|
|
BuildRequires: java-devel >= 1.8
|
|
BuildRequires: javapackages-local
|
|
BuildRequires: javapackages-tools
|
|
BuildRequires: junit
|
|
BuildRequires: log4j-mini
|
|
BuildRequires: slf4j
|
|
BuildRequires: xz
|
|
Requires: jta >= 1.0
|
|
Requires: log4j
|
|
Requires: slf4j
|
|
Provides: mm.mysql = %{version}
|
|
Obsoletes: mm.mysql < %{version}
|
|
# manual is no longer distributed
|
|
Provides: %{name}-manual = %{version}
|
|
Obsoletes: %{name}-manual < %{version}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
MySQL Connector/J is a native Java driver that converts JDBC (Java
|
|
Database Connectivity) calls into the network protocol used by the
|
|
MySQL database. It lets developers working with the Java programming
|
|
language easily build programs and applets that interact with MySQL and
|
|
connect all corporate data, even in a heterogeneous environment. MySQL
|
|
Connector/J is a Type IV JDBC driver and has a complete JDBC feature
|
|
set that supports the capabilities of MySQL.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
|
|
# dup
|
|
rm -f README
|
|
# wrong end of line encoding
|
|
sed -i -e 's/.$//' README.txt
|
|
|
|
# extra libs
|
|
mkdir -p lib
|
|
mkdir -p src/lib
|
|
ln -f -s %{_datadir}/java/ant/ant-contrib.jar lib/ant-contrib.jar
|
|
ln -f -s %{_datadir}/java/slf4j/api.jar lib/slf4j-api.jar
|
|
|
|
%build
|
|
# disable jboss integration
|
|
rm -rf src/com/mysql/jdbc/integration/jboss
|
|
rm src/testsuite/regression/ConnectionRegressionTest.java
|
|
rm src/testsuite/regression/DataSourceRegressionTest.java
|
|
rm src/testsuite/simple/ReadOnlyCallableStatementTest.java
|
|
rm src/testsuite/simple/jdbc4/StatementsTest.java
|
|
# disable hibernate4 integration
|
|
rm -rf src/com/mysql/fabric/hibernate
|
|
rm -rf src/demo
|
|
|
|
export CLASSPATH=$(build-classpath \
|
|
ant-contrib \
|
|
commons-logging \
|
|
slf4j \
|
|
jdbc-stdext\
|
|
jta \
|
|
junit \
|
|
log4j)
|
|
ant \
|
|
-Dcom.mysql.jdbc.jdk5.javac=%javac \
|
|
-Dcom.mysql.jdbc.jdk8.javac=%javac \
|
|
-Dsnapshot.version= \
|
|
-Dcom.mysql.jdbc.extra.libs=lib \
|
|
-Dant.java.version=1.6 \
|
|
-Dant.build.javac.source=1.6 \
|
|
-Dant.build.javac.target=1.6 \
|
|
dist
|
|
|
|
%install
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
|
install ./build/%{name}-%{version}/%{name}-%{version}-bin.jar \
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
rm -rf %{buildroot}%{name}-%{version}/docs/release-test-output
|
|
|
|
# Install the Maven build information
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
install -pm 644 src/doc/sources/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
sed -i 's/>@.*</>%{version}</' %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
|
%files
|
|
%doc CHANGES COPYING README.txt
|
|
%attr(0644,root,root) %{_javadir}/%{name}.jar
|
|
%if %{defined _maven_repository}
|
|
%config(noreplace) %{_mavendepmapfragdir}/*
|
|
%else
|
|
%config(noreplace) %{_datadir}/maven-metadata/%{name}.xml*
|
|
%endif
|
|
%{_mavenpomdir}/*.pom
|
|
|
|
%changelog
|