diff --git a/8.0.15.tar.gz b/8.0.15.tar.gz new file mode 100644 index 0000000..61deabb Binary files /dev/null and b/8.0.15.tar.gz differ diff --git a/java-version-detection.patch b/java-version-detection.patch new file mode 100644 index 0000000..e2ef9e3 --- /dev/null +++ b/java-version-detection.patch @@ -0,0 +1,25 @@ +From 7e9856cdde756339aa184c24cdb3d6a381bb5f11 Mon Sep 17 00:00:00 2001 +From: Jakub Janco +Date: Fri, 22 Feb 2019 11:08:05 +0100 +Subject: [PATCH] Fix version detection + +--- + build.xml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build.xml b/build.xml +index 00b2d7eb..a790ee15 100644 +--- a/build.xml ++++ b/build.xml +@@ -362,7 +362,7 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o + + + +- ++ + + + +-- +2.14.4 + diff --git a/mysql-connector-java.spec b/mysql-connector-java.spec new file mode 100644 index 0000000..accb99b --- /dev/null +++ b/mysql-connector-java.spec @@ -0,0 +1,60 @@ +Summary: Official JDBC driver for MySQL +Name: mysql-connector-java +Version: 8.0.15 +Release: 1 +Epoch: 1 +License: GPLv2 with exceptions +URL: http://dev.mysql.com/downloads/connector/j/ +Source0: https://github.com/mysql/mysql-connector-j/archive/%{version}.tar.gz +Patch3: java-version-detection.patch +Patch4: remove-coverage-test.patch + +BuildArch: noarch +BuildRequires: ant >= 1.6.0 ant-contrib >= 1.0 ant-junit apache-commons-logging c3p0 git +BuildRequires: hibernate java-devel >= 1:1.6.0 javapackages-local jta >= 1.0 junit +BuildRequires: protobuf-java slf4j +Requires: jta >= 1.0 slf4j + +%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 -n mysql-connector-j-%{version} + +for file in README README.md; do + sed -i.orig 's|\r||g' $file + touch -r $file.orig $file + rm $file.orig +done +sed -i 's/>@.*%{version} - 8.0.15-1 +- Package init diff --git a/mysql-connector-java.yaml b/mysql-connector-java.yaml new file mode 100644 index 0000000..671b327 --- /dev/null +++ b/mysql-connector-java.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/mysql/mysql-connector-j +version_control: github +src_repo: mysql/mysql-connector-j +tag_prefix: "^" +seperator: "." diff --git a/remove-coverage-test.patch b/remove-coverage-test.patch new file mode 100644 index 0000000..6abd285 --- /dev/null +++ b/remove-coverage-test.patch @@ -0,0 +1,157 @@ +diff --git a/build.xml b/build.xml +index 03efb55f..9bf9abfe 100644 +--- a/build.xml ++++ b/build.xml +@@ -306,13 +306,6 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o + + + +- +- +- +- +- +- +- + + + +@@ -1182,58 +1175,6 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o + + ${com.mysql.cj.testsuite.message.test.mode} + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + +@@ -1253,79 +1194,6 @@ See also com.mysql.cj.conf.PropertyDefinitions.SYSP_* variables for other test o + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + +