2007-01-15 23:26:13 +00:00
|
|
|
#
|
2012-05-21 06:06:41 +00:00
|
|
|
# spec file for package mysql-connector-java
|
2007-01-15 23:26:13 +00:00
|
|
|
#
|
2023-01-27 07:15:22 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:26:13 +00:00
|
|
|
#
|
2008-08-07 09:59:22 +00:00
|
|
|
# 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.
|
|
|
|
|
Accepting request 646450 from home:pmonrealgonzalez:branches:Java:packages
- 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
2018-11-05 22:17:24 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:26:13 +00:00
|
|
|
#
|
|
|
|
|
2012-05-21 06:06:41 +00:00
|
|
|
|
Accepting request 1041322 from home:david.anes:branches:Java:packages
- Rebased javac-check.patch to new build.xml.
- Changed ant target from "dist" to "build", as it's been renamed.
- As Oracle renamed the package to "mysql-connector-j", we are
"providing" both names for now, but the package has to be renamed
to accommodate the change because the old name will be deprecated
at some point in the future without further notice.
- Update to 8.0.31:
Functionality Added or Changed
* Important Change: To comply with proper naming guidelines, the
Maven groupId and artifactId for Connector/J have been changed
to the following starting with this release:
groupId: com.mysql
artifactId: mysql-connector-j
* The old groupId and artifactId can still be used for linking
the Connector/J library, but they will point to a Maven
relocation POM, redirecting users to the new coordinates.
Please switch to the new coordinates as soon as possible, as
the old coordinates could be discontinued anytime without
notice. See Installing Connector/J Using Maven.
* Also, to go with these changes, the .jar library for
Connector/J has been renamed to mysql-connector-j-x.y.z for
all channels of distribution by Oracle, not just the Maven
repository.
* Before release 8.0.29, Connector/J always interpolated byte
arrays as hexadecimal literals when obtaining a prepared
statement's string representation by the toString() method.
Since 8.0.29, all byte array values were displayed as
** BYTE ARRAY DATA ** when converted to strings. The same is
also true for null values.
* To allow different ways to display byte array data and null
OBS-URL: https://build.opensuse.org/request/show/1041322
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=71
2022-12-08 13:24:10 +00:00
|
|
|
%define new_name mysql-connector-j
|
2007-01-15 23:26:13 +00:00
|
|
|
Name: mysql-connector-java
|
Accepting request 1125701 from home:david.anes:branches:Java:packages
- Update to 8.2.0:
- Added the missing implementation for
Connection.releaseSavepoint(). (Bug #35811592)
- Connector/J now supports WebAuthn Authentication. See Connecting
Using Web Authentication (WebAuthn) Authentication for details.
(WL #15197)
- The auto-deserialization function for BLOB objects, deprecated
since release 8.1.0, is now removed. (WL #15747)
- The SessionStateChanges objects failed to provide proper values
for section state changes. This was because Connector/J parsed
the OK_Packet incorrectly, and this patch fixes the issue.
(Bug #35358417)
- Using javax.sql.rowset.CachedRowSet#getDate() or
javax.sql.rowset.CachedRowSet#getTimestamp() on DATETIME fields
resulted in a ClassCastException. It was because the default
return type of DATETIME fields by ResultSet.getObject() was
java.time.LocalDateTime instead of java.sql.Timestamp. To
prevent the exception, a new connection property,
treatMysqlDatetimeAsTimestamp, now allows the return type of
DATETIME by ResultSet.getObject() to be changed to
java.sql.Timestamp. (Bug #107215, Bug #34139593)
- Obtaining a connection from a MysqlConnectionPoolDataSource made
Connector/J reset its connection state unless the connection
property paranoid was set to be true. During the reset, the
autocommit mode of the session was restored to the default value
specified on the server by the system variable autocommit, while
the JDBC specification mandates that autocommit be always
enabled for a freshly created connection. With this patch, the
connection reset will always enable autocommit in the situation.
(Bug #91351, Bug #28225464)
OBS-URL: https://build.opensuse.org/request/show/1125701
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=99
2023-11-13 19:07:55 +00:00
|
|
|
Version: 8.2.0
|
2012-06-18 13:16:55 +00:00
|
|
|
Release: 0
|
2007-01-15 23:26:13 +00:00
|
|
|
Summary: Official JDBC Driver for MySQL
|
2018-05-17 19:55:26 +00:00
|
|
|
License: GPL-2.0-or-later
|
2023-06-06 17:00:36 +00:00
|
|
|
Group: Development/Languages/Java
|
2019-10-01 09:16:24 +00:00
|
|
|
URL: https://dev.mysql.com/downloads/connector/j/
|
Accepting request 957902 from home:david.anes:branches:Java:packages
- Build now from GitHub official repo:
* Updated source package to build from gihub official repository.
* Remove utility generate-tarball.sh which is not needed anymore.
- Add patch to temporarily remove OCI IAM support while it's
packaged:
* Add mysql-connector-java-remove-oci-support.patch
- Update to 8.0.28 (CVE-2021-2471, bsc#1195557):
Changes in 8.0.28:
* Fix for Bug#99260 (31189960), statement.setQueryTimeout,creates a database connection and does not close.
* Fix for Bug#103324 (32770013), X DevAPI Collection.replaceOne() missing matching _id check.
* Fix for Bug#105197 (33461744), Statement.executeQuery() may return non-navigable ResultSet.
* Fix for Bug#105323 (33507321), README.md contains broken links.
* Fix for Bug#96900 (30355150), STATEMENT.CANCEL()CREATE A DATABASE CONNECTION BUT DOES NOT CLOSE THE CONNECTION.
* Fix for Bug#104067 (33054827), No reset autoCommit after unknown issue occurs.
* Fix for Bug#85223 (25656020), MYSQLSQLXML SETSTRING CRASH.
* Fix for Bug#84365 (33425867), INSERT..VALUE with VALUES function lead to a StringIndexOutOfBoundsException.
* Fix for Bug#105211 (33468860), class java.time.LocalDate cannot be cast to class java.sql.Date.
* Fix for Bug#101389 (32089018), GETWARNINGS SHOULD CHECK WARNING COUNT BEFORE SENDING SHOW.
* Fix for Bug#33488091, Remove all references to xdevapi.useAsyncProtocol from properties and code.
* WL#14805, Remove support for TLS 1.0 and 1.1.
* WL#14650, Support for MFA (multi factor authentication) authentication.
Changesd in 8.0.27
* Fix for Bug#103612 (32902019), Incorrectly identified WITH...SELECT as unsafe for read-only connections.
* Fix for Bug#71929 (18346501), Prefixing query with double comments cancels query DML validation.
* Fix for Bug#23204652, CURSOR POSITIONING API'S DOESNOT CHECK THE VALIDITY OF RESULTSET.
* Fix for Bug#28725534, MULTI HOST CONNECTION WOULD BLOCK IN CONNECTION POOLING.
* Fix for Bug#95139 (29807572), CACHESERVERCONFIGURATION APPEARS TO THWART CHARSET DETECTION.
* Fix for Bug#104641 (33237255), DatabaseMetaData.getImportedKeys can return duplicated foreign keys.
* Fix for Bug#33185116, Have method ResultSet.getBoolean() supporting conversion of 'T' and 'F' in a VARCHAR to True/False (boolean).
* Fix for Bug#31117686, PROTOCOL ALLOWLIST NOT COMPATIBLE WITH IBM JAVA.
OBS-URL: https://build.opensuse.org/request/show/957902
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=64
2022-02-28 08:08:26 +00:00
|
|
|
Source0: https://github.com/mysql/mysql-connector-j/archive/refs/tags/%{version}.tar.gz#:/%{name}-%{version}.tar.gz
|
2023-01-27 19:50:24 +00:00
|
|
|
# NOTE:
|
|
|
|
# the following file contains the generated protobuf files with
|
|
|
|
# previous versions of protoc (protobuf) that are needed to build
|
|
|
|
# in previous SUSE distros.
|
|
|
|
# Source from:
|
|
|
|
# https://github.com/mysql/mysql-connector-j/commit/6976d9d779b498c254fc5cab5e69cfc74fc3e4f0
|
|
|
|
Source1: mysql-connector-java-generated-for-protobuf-3.9.2.tar.xz
|
2017-05-18 11:11:06 +00:00
|
|
|
Patch0: javac-check.patch
|
Accepting request 973641 from home:david.anes:branches:Java:packages
- Update to 8.0.29:
Functionality added or changed:
* Historically, MySQL has used utf8 as an alias for utf8mb3.
Since release 8.0.29, utf8mb3 has become a recognized (though
deprecated) character set on its own for MySQL Server.
Therefore, Connector/J has added utf8mb3 to its character set
mapping, and users are encouraged to update to
Connector/J 8.0.29 to avoid potential issues when working with
MySQL Server 8.0.29 or later. (Bug #33850155)
* A new connection property socksProxyRemoteDns has been added,
which, when set to true, makes the SocksProxySocketFactory
execute its own connect() implementation that passes the
unresolved InetSocketAddress of a MySQL Server host to the
created proxy socket, instead of having the address resolved
locally. (Bug #77924, Bug #25710160)
* The code for prepared statements has been refactored to make
the code simpler and the logic for binding more consistent
between ServerPreparedStatement and ClientPreparedStatement.
* Connector/J now supports Fast Identity Online (FIDO)
Authentication. See Connecting Using Fast Identity Online
(FIDO) Authentication for details.
Bugs fixed:
* X DevAPI: If the connection property xdevapi.ssl-mode was set
to DISABLED (or xdevapi.ssl-mode was not set, but the value
was picked up from the sslMode setting), specifying some of
the security properties caused Connector/J to throw an error.
With this fix, even when encryption is turned off and
irrelevant security properties are set, Connector/J does not
throw an error.
* DatabaseMetaData.getDefaultTransactionIsolation() returned a
OBS-URL: https://build.opensuse.org/request/show/973641
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=65
2022-04-28 10:29:44 +00:00
|
|
|
# NOTE: Oracle OCI is not packaged yet
|
|
|
|
# The patch doesn't remove the file AuthenticationOciClient.java
|
|
|
|
# therefore it's removed during prep phase
|
Accepting request 957902 from home:david.anes:branches:Java:packages
- Build now from GitHub official repo:
* Updated source package to build from gihub official repository.
* Remove utility generate-tarball.sh which is not needed anymore.
- Add patch to temporarily remove OCI IAM support while it's
packaged:
* Add mysql-connector-java-remove-oci-support.patch
- Update to 8.0.28 (CVE-2021-2471, bsc#1195557):
Changes in 8.0.28:
* Fix for Bug#99260 (31189960), statement.setQueryTimeout,creates a database connection and does not close.
* Fix for Bug#103324 (32770013), X DevAPI Collection.replaceOne() missing matching _id check.
* Fix for Bug#105197 (33461744), Statement.executeQuery() may return non-navigable ResultSet.
* Fix for Bug#105323 (33507321), README.md contains broken links.
* Fix for Bug#96900 (30355150), STATEMENT.CANCEL()CREATE A DATABASE CONNECTION BUT DOES NOT CLOSE THE CONNECTION.
* Fix for Bug#104067 (33054827), No reset autoCommit after unknown issue occurs.
* Fix for Bug#85223 (25656020), MYSQLSQLXML SETSTRING CRASH.
* Fix for Bug#84365 (33425867), INSERT..VALUE with VALUES function lead to a StringIndexOutOfBoundsException.
* Fix for Bug#105211 (33468860), class java.time.LocalDate cannot be cast to class java.sql.Date.
* Fix for Bug#101389 (32089018), GETWARNINGS SHOULD CHECK WARNING COUNT BEFORE SENDING SHOW.
* Fix for Bug#33488091, Remove all references to xdevapi.useAsyncProtocol from properties and code.
* WL#14805, Remove support for TLS 1.0 and 1.1.
* WL#14650, Support for MFA (multi factor authentication) authentication.
Changesd in 8.0.27
* Fix for Bug#103612 (32902019), Incorrectly identified WITH...SELECT as unsafe for read-only connections.
* Fix for Bug#71929 (18346501), Prefixing query with double comments cancels query DML validation.
* Fix for Bug#23204652, CURSOR POSITIONING API'S DOESNOT CHECK THE VALIDITY OF RESULTSET.
* Fix for Bug#28725534, MULTI HOST CONNECTION WOULD BLOCK IN CONNECTION POOLING.
* Fix for Bug#95139 (29807572), CACHESERVERCONFIGURATION APPEARS TO THWART CHARSET DETECTION.
* Fix for Bug#104641 (33237255), DatabaseMetaData.getImportedKeys can return duplicated foreign keys.
* Fix for Bug#33185116, Have method ResultSet.getBoolean() supporting conversion of 'T' and 'F' in a VARCHAR to True/False (boolean).
* Fix for Bug#31117686, PROTOCOL ALLOWLIST NOT COMPATIBLE WITH IBM JAVA.
OBS-URL: https://build.opensuse.org/request/show/957902
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=64
2022-02-28 08:08:26 +00:00
|
|
|
Patch1: %{name}-remove-oci-support.patch
|
2023-09-26 05:03:35 +00:00
|
|
|
Patch2: reproducible-build.patch
|
2008-08-07 09:59:22 +00:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant-contrib
|
2012-05-21 06:06:41 +00:00
|
|
|
BuildRequires: apache-commons-logging
|
2013-09-19 14:22:42 +00:00
|
|
|
BuildRequires: geronimo-jta-1_1-api
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
BuildRequires: git
|
2017-10-06 12:38:26 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2017-05-19 11:43:26 +00:00
|
|
|
BuildRequires: javapackages-local
|
Accepting request 957902 from home:david.anes:branches:Java:packages
- Build now from GitHub official repo:
* Updated source package to build from gihub official repository.
* Remove utility generate-tarball.sh which is not needed anymore.
- Add patch to temporarily remove OCI IAM support while it's
packaged:
* Add mysql-connector-java-remove-oci-support.patch
- Update to 8.0.28 (CVE-2021-2471, bsc#1195557):
Changes in 8.0.28:
* Fix for Bug#99260 (31189960), statement.setQueryTimeout,creates a database connection and does not close.
* Fix for Bug#103324 (32770013), X DevAPI Collection.replaceOne() missing matching _id check.
* Fix for Bug#105197 (33461744), Statement.executeQuery() may return non-navigable ResultSet.
* Fix for Bug#105323 (33507321), README.md contains broken links.
* Fix for Bug#96900 (30355150), STATEMENT.CANCEL()CREATE A DATABASE CONNECTION BUT DOES NOT CLOSE THE CONNECTION.
* Fix for Bug#104067 (33054827), No reset autoCommit after unknown issue occurs.
* Fix for Bug#85223 (25656020), MYSQLSQLXML SETSTRING CRASH.
* Fix for Bug#84365 (33425867), INSERT..VALUE with VALUES function lead to a StringIndexOutOfBoundsException.
* Fix for Bug#105211 (33468860), class java.time.LocalDate cannot be cast to class java.sql.Date.
* Fix for Bug#101389 (32089018), GETWARNINGS SHOULD CHECK WARNING COUNT BEFORE SENDING SHOW.
* Fix for Bug#33488091, Remove all references to xdevapi.useAsyncProtocol from properties and code.
* WL#14805, Remove support for TLS 1.0 and 1.1.
* WL#14650, Support for MFA (multi factor authentication) authentication.
Changesd in 8.0.27
* Fix for Bug#103612 (32902019), Incorrectly identified WITH...SELECT as unsafe for read-only connections.
* Fix for Bug#71929 (18346501), Prefixing query with double comments cancels query DML validation.
* Fix for Bug#23204652, CURSOR POSITIONING API'S DOESNOT CHECK THE VALIDITY OF RESULTSET.
* Fix for Bug#28725534, MULTI HOST CONNECTION WOULD BLOCK IN CONNECTION POOLING.
* Fix for Bug#95139 (29807572), CACHESERVERCONFIGURATION APPEARS TO THWART CHARSET DETECTION.
* Fix for Bug#104641 (33237255), DatabaseMetaData.getImportedKeys can return duplicated foreign keys.
* Fix for Bug#33185116, Have method ResultSet.getBoolean() supporting conversion of 'T' and 'F' in a VARCHAR to True/False (boolean).
* Fix for Bug#31117686, PROTOCOL ALLOWLIST NOT COMPATIBLE WITH IBM JAVA.
OBS-URL: https://build.opensuse.org/request/show/957902
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=64
2022-02-28 08:08:26 +00:00
|
|
|
BuildRequires: javassist >= 3.28.0
|
2012-06-18 13:16:55 +00:00
|
|
|
BuildRequires: junit
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
BuildRequires: protobuf-java >= 3.9.2
|
2014-06-27 12:34:22 +00:00
|
|
|
BuildRequires: slf4j
|
|
|
|
BuildRequires: xz
|
2012-06-18 13:16:55 +00:00
|
|
|
Requires: jta >= 1.0
|
|
|
|
Requires: slf4j
|
2012-05-21 06:06:41 +00:00
|
|
|
Provides: mm.mysql = %{version}
|
|
|
|
Obsoletes: mm.mysql < %{version}
|
Accepting request 1041322 from home:david.anes:branches:Java:packages
- Rebased javac-check.patch to new build.xml.
- Changed ant target from "dist" to "build", as it's been renamed.
- As Oracle renamed the package to "mysql-connector-j", we are
"providing" both names for now, but the package has to be renamed
to accommodate the change because the old name will be deprecated
at some point in the future without further notice.
- Update to 8.0.31:
Functionality Added or Changed
* Important Change: To comply with proper naming guidelines, the
Maven groupId and artifactId for Connector/J have been changed
to the following starting with this release:
groupId: com.mysql
artifactId: mysql-connector-j
* The old groupId and artifactId can still be used for linking
the Connector/J library, but they will point to a Maven
relocation POM, redirecting users to the new coordinates.
Please switch to the new coordinates as soon as possible, as
the old coordinates could be discontinued anytime without
notice. See Installing Connector/J Using Maven.
* Also, to go with these changes, the .jar library for
Connector/J has been renamed to mysql-connector-j-x.y.z for
all channels of distribution by Oracle, not just the Maven
repository.
* Before release 8.0.29, Connector/J always interpolated byte
arrays as hexadecimal literals when obtaining a prepared
statement's string representation by the toString() method.
Since 8.0.29, all byte array values were displayed as
** BYTE ARRAY DATA ** when converted to strings. The same is
also true for null values.
* To allow different ways to display byte array data and null
OBS-URL: https://build.opensuse.org/request/show/1041322
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=71
2022-12-08 13:24:10 +00:00
|
|
|
# we'll be providing the new package name until this one is deprecated
|
|
|
|
Provides: %{new_name}
|
2012-05-21 06:06:41 +00:00
|
|
|
# manual is no longer distributed
|
|
|
|
Provides: %{name}-manual = %{version}
|
|
|
|
Obsoletes: %{name}-manual < %{version}
|
2014-06-27 12:34:22 +00:00
|
|
|
BuildArch: noarch
|
2023-06-06 17:00:36 +00:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
BuildRequires: log4j
|
2023-06-06 17:24:01 +00:00
|
|
|
Requires: log4j
|
2023-06-06 17:00:36 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: reload4j
|
2023-06-06 17:24:01 +00:00
|
|
|
Requires: reload4j
|
2023-06-06 17:00:36 +00:00
|
|
|
%endif
|
2007-01-15 23:26:13 +00:00
|
|
|
|
|
|
|
%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
|
Accepting request 957902 from home:david.anes:branches:Java:packages
- Build now from GitHub official repo:
* Updated source package to build from gihub official repository.
* Remove utility generate-tarball.sh which is not needed anymore.
- Add patch to temporarily remove OCI IAM support while it's
packaged:
* Add mysql-connector-java-remove-oci-support.patch
- Update to 8.0.28 (CVE-2021-2471, bsc#1195557):
Changes in 8.0.28:
* Fix for Bug#99260 (31189960), statement.setQueryTimeout,creates a database connection and does not close.
* Fix for Bug#103324 (32770013), X DevAPI Collection.replaceOne() missing matching _id check.
* Fix for Bug#105197 (33461744), Statement.executeQuery() may return non-navigable ResultSet.
* Fix for Bug#105323 (33507321), README.md contains broken links.
* Fix for Bug#96900 (30355150), STATEMENT.CANCEL()CREATE A DATABASE CONNECTION BUT DOES NOT CLOSE THE CONNECTION.
* Fix for Bug#104067 (33054827), No reset autoCommit after unknown issue occurs.
* Fix for Bug#85223 (25656020), MYSQLSQLXML SETSTRING CRASH.
* Fix for Bug#84365 (33425867), INSERT..VALUE with VALUES function lead to a StringIndexOutOfBoundsException.
* Fix for Bug#105211 (33468860), class java.time.LocalDate cannot be cast to class java.sql.Date.
* Fix for Bug#101389 (32089018), GETWARNINGS SHOULD CHECK WARNING COUNT BEFORE SENDING SHOW.
* Fix for Bug#33488091, Remove all references to xdevapi.useAsyncProtocol from properties and code.
* WL#14805, Remove support for TLS 1.0 and 1.1.
* WL#14650, Support for MFA (multi factor authentication) authentication.
Changesd in 8.0.27
* Fix for Bug#103612 (32902019), Incorrectly identified WITH...SELECT as unsafe for read-only connections.
* Fix for Bug#71929 (18346501), Prefixing query with double comments cancels query DML validation.
* Fix for Bug#23204652, CURSOR POSITIONING API'S DOESNOT CHECK THE VALIDITY OF RESULTSET.
* Fix for Bug#28725534, MULTI HOST CONNECTION WOULD BLOCK IN CONNECTION POOLING.
* Fix for Bug#95139 (29807572), CACHESERVERCONFIGURATION APPEARS TO THWART CHARSET DETECTION.
* Fix for Bug#104641 (33237255), DatabaseMetaData.getImportedKeys can return duplicated foreign keys.
* Fix for Bug#33185116, Have method ResultSet.getBoolean() supporting conversion of 'T' and 'F' in a VARCHAR to True/False (boolean).
* Fix for Bug#31117686, PROTOCOL ALLOWLIST NOT COMPATIBLE WITH IBM JAVA.
OBS-URL: https://build.opensuse.org/request/show/957902
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=64
2022-02-28 08:08:26 +00:00
|
|
|
%setup -q -n mysql-connector-j-%{version}
|
2017-05-18 12:08:48 +00:00
|
|
|
%patch0 -p1
|
Accepting request 957902 from home:david.anes:branches:Java:packages
- Build now from GitHub official repo:
* Updated source package to build from gihub official repository.
* Remove utility generate-tarball.sh which is not needed anymore.
- Add patch to temporarily remove OCI IAM support while it's
packaged:
* Add mysql-connector-java-remove-oci-support.patch
- Update to 8.0.28 (CVE-2021-2471, bsc#1195557):
Changes in 8.0.28:
* Fix for Bug#99260 (31189960), statement.setQueryTimeout,creates a database connection and does not close.
* Fix for Bug#103324 (32770013), X DevAPI Collection.replaceOne() missing matching _id check.
* Fix for Bug#105197 (33461744), Statement.executeQuery() may return non-navigable ResultSet.
* Fix for Bug#105323 (33507321), README.md contains broken links.
* Fix for Bug#96900 (30355150), STATEMENT.CANCEL()CREATE A DATABASE CONNECTION BUT DOES NOT CLOSE THE CONNECTION.
* Fix for Bug#104067 (33054827), No reset autoCommit after unknown issue occurs.
* Fix for Bug#85223 (25656020), MYSQLSQLXML SETSTRING CRASH.
* Fix for Bug#84365 (33425867), INSERT..VALUE with VALUES function lead to a StringIndexOutOfBoundsException.
* Fix for Bug#105211 (33468860), class java.time.LocalDate cannot be cast to class java.sql.Date.
* Fix for Bug#101389 (32089018), GETWARNINGS SHOULD CHECK WARNING COUNT BEFORE SENDING SHOW.
* Fix for Bug#33488091, Remove all references to xdevapi.useAsyncProtocol from properties and code.
* WL#14805, Remove support for TLS 1.0 and 1.1.
* WL#14650, Support for MFA (multi factor authentication) authentication.
Changesd in 8.0.27
* Fix for Bug#103612 (32902019), Incorrectly identified WITH...SELECT as unsafe for read-only connections.
* Fix for Bug#71929 (18346501), Prefixing query with double comments cancels query DML validation.
* Fix for Bug#23204652, CURSOR POSITIONING API'S DOESNOT CHECK THE VALIDITY OF RESULTSET.
* Fix for Bug#28725534, MULTI HOST CONNECTION WOULD BLOCK IN CONNECTION POOLING.
* Fix for Bug#95139 (29807572), CACHESERVERCONFIGURATION APPEARS TO THWART CHARSET DETECTION.
* Fix for Bug#104641 (33237255), DatabaseMetaData.getImportedKeys can return duplicated foreign keys.
* Fix for Bug#33185116, Have method ResultSet.getBoolean() supporting conversion of 'T' and 'F' in a VARCHAR to True/False (boolean).
* Fix for Bug#31117686, PROTOCOL ALLOWLIST NOT COMPATIBLE WITH IBM JAVA.
OBS-URL: https://build.opensuse.org/request/show/957902
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=64
2022-02-28 08:08:26 +00:00
|
|
|
%patch1 -p1
|
2023-09-26 05:03:35 +00:00
|
|
|
%patch2 -p1
|
2007-01-15 23:26:13 +00:00
|
|
|
|
2023-01-27 19:50:24 +00:00
|
|
|
%if 0%{?suse_version} <= 1500 && 0%{?sle_version} <= 150200
|
|
|
|
# ship protobuf generated files compatible with protobuf 3.9.2
|
|
|
|
# which is the version we have in SLE15 SP2, the files were taken
|
|
|
|
# from commit 6976d9d779b498c254fc5cab5e69cfc74fc3e4f0, which is
|
|
|
|
# the last version compatible with that version of protobuf and
|
|
|
|
# are equivalent in functionality
|
2023-06-06 17:00:36 +00:00
|
|
|
tar -xvf %{SOURCE1} -C .
|
2023-01-27 19:50:24 +00:00
|
|
|
%endif
|
|
|
|
|
Accepting request 973641 from home:david.anes:branches:Java:packages
- Update to 8.0.29:
Functionality added or changed:
* Historically, MySQL has used utf8 as an alias for utf8mb3.
Since release 8.0.29, utf8mb3 has become a recognized (though
deprecated) character set on its own for MySQL Server.
Therefore, Connector/J has added utf8mb3 to its character set
mapping, and users are encouraged to update to
Connector/J 8.0.29 to avoid potential issues when working with
MySQL Server 8.0.29 or later. (Bug #33850155)
* A new connection property socksProxyRemoteDns has been added,
which, when set to true, makes the SocksProxySocketFactory
execute its own connect() implementation that passes the
unresolved InetSocketAddress of a MySQL Server host to the
created proxy socket, instead of having the address resolved
locally. (Bug #77924, Bug #25710160)
* The code for prepared statements has been refactored to make
the code simpler and the logic for binding more consistent
between ServerPreparedStatement and ClientPreparedStatement.
* Connector/J now supports Fast Identity Online (FIDO)
Authentication. See Connecting Using Fast Identity Online
(FIDO) Authentication for details.
Bugs fixed:
* X DevAPI: If the connection property xdevapi.ssl-mode was set
to DISABLED (or xdevapi.ssl-mode was not set, but the value
was picked up from the sslMode setting), specifying some of
the security properties caused Connector/J to throw an error.
With this fix, even when encryption is turned off and
irrelevant security properties are set, Connector/J does not
throw an error.
* DatabaseMetaData.getDefaultTransactionIsolation() returned a
OBS-URL: https://build.opensuse.org/request/show/973641
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=65
2022-04-28 10:29:44 +00:00
|
|
|
# remove OCI support
|
|
|
|
rm -rf src/main/protocol-impl/java/com/mysql/cj/protocol/a/authentication/AuthenticationOciClient.java
|
|
|
|
|
2017-05-18 12:08:48 +00:00
|
|
|
# extra libs
|
|
|
|
mkdir -p lib
|
|
|
|
mkdir -p src/lib
|
2017-05-19 11:43:26 +00:00
|
|
|
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
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
ln -s %{_datadir}/java/javassist.jar lib/javassist.jar
|
|
|
|
ln -s %{_datadir}/java/protobuf.jar lib/protobuf.jar
|
2017-05-18 12:08:48 +00:00
|
|
|
|
2007-01-15 23:26:13 +00:00
|
|
|
%build
|
2012-06-18 13:16:55 +00:00
|
|
|
|
|
|
|
export CLASSPATH=$(build-classpath \
|
|
|
|
ant-contrib \
|
|
|
|
commons-logging \
|
|
|
|
slf4j \
|
|
|
|
jdbc-stdext\
|
|
|
|
jta \
|
|
|
|
junit \
|
2022-02-22 19:02:04 +00:00
|
|
|
reload4j \
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
protobuf)
|
2019-10-01 09:16:24 +00:00
|
|
|
%{ant} \
|
2017-05-18 12:39:10 +00:00
|
|
|
-Dsnapshot.version= \
|
2017-05-18 12:08:48 +00:00
|
|
|
-Dcom.mysql.jdbc.extra.libs=lib \
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
-Dant.java.version=1.8 \
|
|
|
|
-Dant.build.javac.source=1.8 \
|
|
|
|
-Dant.build.javac.target=1.8 \
|
|
|
|
-Dcom.mysql.cj.build.jdk=%{java_home} \
|
2023-06-06 17:00:36 +00:00
|
|
|
-Dcom.mysql.cj.build.jdk.javac=%javac \
|
|
|
|
-Dcom.mysql.cj.build.jdk.java=%java \
|
Accepting request 1041322 from home:david.anes:branches:Java:packages
- Rebased javac-check.patch to new build.xml.
- Changed ant target from "dist" to "build", as it's been renamed.
- As Oracle renamed the package to "mysql-connector-j", we are
"providing" both names for now, but the package has to be renamed
to accommodate the change because the old name will be deprecated
at some point in the future without further notice.
- Update to 8.0.31:
Functionality Added or Changed
* Important Change: To comply with proper naming guidelines, the
Maven groupId and artifactId for Connector/J have been changed
to the following starting with this release:
groupId: com.mysql
artifactId: mysql-connector-j
* The old groupId and artifactId can still be used for linking
the Connector/J library, but they will point to a Maven
relocation POM, redirecting users to the new coordinates.
Please switch to the new coordinates as soon as possible, as
the old coordinates could be discontinued anytime without
notice. See Installing Connector/J Using Maven.
* Also, to go with these changes, the .jar library for
Connector/J has been renamed to mysql-connector-j-x.y.z for
all channels of distribution by Oracle, not just the Maven
repository.
* Before release 8.0.29, Connector/J always interpolated byte
arrays as hexadecimal literals when obtaining a prepared
statement's string representation by the toString() method.
Since 8.0.29, all byte array values were displayed as
** BYTE ARRAY DATA ** when converted to strings. The same is
also true for null values.
* To allow different ways to display byte array data and null
OBS-URL: https://build.opensuse.org/request/show/1041322
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=71
2022-12-08 13:24:10 +00:00
|
|
|
build
|
2007-01-15 23:26:13 +00:00
|
|
|
|
|
|
|
%install
|
2012-05-21 06:06:41 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
|
|
Accepting request 1041322 from home:david.anes:branches:Java:packages
- Rebased javac-check.patch to new build.xml.
- Changed ant target from "dist" to "build", as it's been renamed.
- As Oracle renamed the package to "mysql-connector-j", we are
"providing" both names for now, but the package has to be renamed
to accommodate the change because the old name will be deprecated
at some point in the future without further notice.
- Update to 8.0.31:
Functionality Added or Changed
* Important Change: To comply with proper naming guidelines, the
Maven groupId and artifactId for Connector/J have been changed
to the following starting with this release:
groupId: com.mysql
artifactId: mysql-connector-j
* The old groupId and artifactId can still be used for linking
the Connector/J library, but they will point to a Maven
relocation POM, redirecting users to the new coordinates.
Please switch to the new coordinates as soon as possible, as
the old coordinates could be discontinued anytime without
notice. See Installing Connector/J Using Maven.
* Also, to go with these changes, the .jar library for
Connector/J has been renamed to mysql-connector-j-x.y.z for
all channels of distribution by Oracle, not just the Maven
repository.
* Before release 8.0.29, Connector/J always interpolated byte
arrays as hexadecimal literals when obtaining a prepared
statement's string representation by the toString() method.
Since 8.0.29, all byte array values were displayed as
** BYTE ARRAY DATA ** when converted to strings. The same is
also true for null values.
* To allow different ways to display byte array data and null
OBS-URL: https://build.opensuse.org/request/show/1041322
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=71
2022-12-08 13:24:10 +00:00
|
|
|
install build/%{new_name}-%{version}-SNAPSHOT/%{new_name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{new_name}.jar
|
2023-09-25 07:19:28 +00:00
|
|
|
ln -sf %{_javadir}/%{new_name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
|
Accepting request 1041322 from home:david.anes:branches:Java:packages
- Rebased javac-check.patch to new build.xml.
- Changed ant target from "dist" to "build", as it's been renamed.
- As Oracle renamed the package to "mysql-connector-j", we are
"providing" both names for now, but the package has to be renamed
to accommodate the change because the old name will be deprecated
at some point in the future without further notice.
- Update to 8.0.31:
Functionality Added or Changed
* Important Change: To comply with proper naming guidelines, the
Maven groupId and artifactId for Connector/J have been changed
to the following starting with this release:
groupId: com.mysql
artifactId: mysql-connector-j
* The old groupId and artifactId can still be used for linking
the Connector/J library, but they will point to a Maven
relocation POM, redirecting users to the new coordinates.
Please switch to the new coordinates as soon as possible, as
the old coordinates could be discontinued anytime without
notice. See Installing Connector/J Using Maven.
* Also, to go with these changes, the .jar library for
Connector/J has been renamed to mysql-connector-j-x.y.z for
all channels of distribution by Oracle, not just the Maven
repository.
* Before release 8.0.29, Connector/J always interpolated byte
arrays as hexadecimal literals when obtaining a prepared
statement's string representation by the toString() method.
Since 8.0.29, all byte array values were displayed as
** BYTE ARRAY DATA ** when converted to strings. The same is
also true for null values.
* To allow different ways to display byte array data and null
OBS-URL: https://build.opensuse.org/request/show/1041322
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=71
2022-12-08 13:24:10 +00:00
|
|
|
rm -rf %{buildroot}%{new_name}-%{version}/docs/release-test-output
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
|
|
Accepting request 1041322 from home:david.anes:branches:Java:packages
- Rebased javac-check.patch to new build.xml.
- Changed ant target from "dist" to "build", as it's been renamed.
- As Oracle renamed the package to "mysql-connector-j", we are
"providing" both names for now, but the package has to be renamed
to accommodate the change because the old name will be deprecated
at some point in the future without further notice.
- Update to 8.0.31:
Functionality Added or Changed
* Important Change: To comply with proper naming guidelines, the
Maven groupId and artifactId for Connector/J have been changed
to the following starting with this release:
groupId: com.mysql
artifactId: mysql-connector-j
* The old groupId and artifactId can still be used for linking
the Connector/J library, but they will point to a Maven
relocation POM, redirecting users to the new coordinates.
Please switch to the new coordinates as soon as possible, as
the old coordinates could be discontinued anytime without
notice. See Installing Connector/J Using Maven.
* Also, to go with these changes, the .jar library for
Connector/J has been renamed to mysql-connector-j-x.y.z for
all channels of distribution by Oracle, not just the Maven
repository.
* Before release 8.0.29, Connector/J always interpolated byte
arrays as hexadecimal literals when obtaining a prepared
statement's string representation by the toString() method.
Since 8.0.29, all byte array values were displayed as
** BYTE ARRAY DATA ** when converted to strings. The same is
also true for null values.
* To allow different ways to display byte array data and null
OBS-URL: https://build.opensuse.org/request/show/1041322
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=71
2022-12-08 13:24:10 +00:00
|
|
|
# Install the Maven build information as new name
|
2023-09-25 07:19:28 +00:00
|
|
|
%mvn_install_pom build/%{new_name}-%{version}-SNAPSHOT/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{new_name}.pom
|
Accepting request 1041322 from home:david.anes:branches:Java:packages
- Rebased javac-check.patch to new build.xml.
- Changed ant target from "dist" to "build", as it's been renamed.
- As Oracle renamed the package to "mysql-connector-j", we are
"providing" both names for now, but the package has to be renamed
to accommodate the change because the old name will be deprecated
at some point in the future without further notice.
- Update to 8.0.31:
Functionality Added or Changed
* Important Change: To comply with proper naming guidelines, the
Maven groupId and artifactId for Connector/J have been changed
to the following starting with this release:
groupId: com.mysql
artifactId: mysql-connector-j
* The old groupId and artifactId can still be used for linking
the Connector/J library, but they will point to a Maven
relocation POM, redirecting users to the new coordinates.
Please switch to the new coordinates as soon as possible, as
the old coordinates could be discontinued anytime without
notice. See Installing Connector/J Using Maven.
* Also, to go with these changes, the .jar library for
Connector/J has been renamed to mysql-connector-j-x.y.z for
all channels of distribution by Oracle, not just the Maven
repository.
* Before release 8.0.29, Connector/J always interpolated byte
arrays as hexadecimal literals when obtaining a prepared
statement's string representation by the toString() method.
Since 8.0.29, all byte array values were displayed as
** BYTE ARRAY DATA ** when converted to strings. The same is
also true for null values.
* To allow different ways to display byte array data and null
OBS-URL: https://build.opensuse.org/request/show/1041322
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=71
2022-12-08 13:24:10 +00:00
|
|
|
sed -i 's/-SNAPSHOT//' %{buildroot}%{_mavenpomdir}/JPP-%{new_name}.pom
|
2023-09-25 07:19:28 +00:00
|
|
|
%add_maven_depmap JPP-%{new_name}.pom %{new_name}.jar -a com.mysql:%{name}
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
|
|
|
|
%files -f .mfiles
|
2023-09-25 07:19:28 +00:00
|
|
|
%{_javadir}/%{name}.jar
|
Accepting request 907300 from home:jgrassler:branches:Java:packages
- Remove hibernate-check.patch (fixed upstream)
- Remove mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove disable-testsuite.patch mysql-connector-java-jdbc-4.1.patch (fixed upstream)
- Remove compile-jdk7.patch (fixed upstream)
- Remove mysql-connector-java-sourcetarget.patch (fixed upstream)
- Refresh javac-check.patch
- Depend on log4j rather than log4j-mini and adjust log4j dependencies to
account for the lack of log4j12 Provides in some code streams.
- Add missing Group tag
- Update to 8.0.25 (SOC-11543)
Changes in 8.0.25
* No functional changes: version alignment with MySQL Server 8.0.25.
Changes in 8.0.24
* Bug#102188 (32526663), AccessControlException with AuthenticationLdapSaslClientPlugin.
* Bug#22508715, SETSESSIONMAXROWS() CALL ON CLOSED CONNECTION RESULTS IN NPE.
* Bug#102131 (32338451), UPDATABLERESULTSET NPE WHEN USING DERIVED QUERIES OR VIEWS.
* Bug#101596 (32151143), GET THE 'HOST' PROPERTY ERROR AFTER CALLING TRANSFORMPROPERTIES() METHOD.
* Bug#20391832, SETOBJECT() FOR TYPES.TIME RESULTS IN EXCEPTION WHEN VALUE HAS FRACTIONAL PART.
* Bug#97730 (31699993), xdev api: ConcurrentModificationException at Session.close.
* Bug#99708 (31510398), mysql-connector-java 8.0.20 ASSERTION FAILED: Unknown message type: 57 s.close.
* Bug#32122553, EXTRA BYTE IN COM_STMT_EXECUTE.
* Bug#101558 (32141210), NULLPOINTEREXCEPTION WHEN EXECUTING INVALID QUERY WITH USEUSAGEADVISOR ENABLED.
* Bug#102076 (32329915), CONTRIBUTION: MYSQL JDBC DRIVER RESULTSET.GETLONG() THROWS NUMBEROUTOFRANGE.
* Bug#31747910, BUG 30474158 FIX IMPROVES JDBC COMPLIANCE BUT CHANGES DEFAULT RESULTSETTYPE HANDLING.
* Bug#102321 (32405590), CALLING RESULTSETMETADATA.GETCOLUMNCLASSNAME RETURNS WRONG VALUE FOR DATETIME.
* WL#14453, Pluggable authentication: new default behavior & user-less authentications.
* WL#14392, Improve timeout error messages [classic].
* WL#14202, XProtocol: Support connection close notification.
Changes in 8.0.23
* Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
OBS-URL: https://build.opensuse.org/request/show/907300
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=57
2021-07-20 11:41:31 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README
|
|
|
|
|
2008-07-17 21:28:46 +00:00
|
|
|
%changelog
|