OBS-URL: https://build.opensuse.org/package/show/Java:packages/mysql-connector-java?expand=0&rev=115
This commit is contained in:
parent
a6f604b76a
commit
d0402808f2
@ -25,13 +25,6 @@ License: GPL-2.0-or-later
|
|||||||
Group: Development/Languages/Java
|
Group: Development/Languages/Java
|
||||||
URL: https://dev.mysql.com/downloads/connector/j/
|
URL: https://dev.mysql.com/downloads/connector/j/
|
||||||
Source0: https://github.com/mysql/mysql-connector-j/archive/refs/tags/%{version}.tar.gz#:/%{name}-%{version}.tar.gz
|
Source0: https://github.com/mysql/mysql-connector-j/archive/refs/tags/%{version}.tar.gz#:/%{name}-%{version}.tar.gz
|
||||||
# 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
|
|
||||||
Patch0: javac-check.patch
|
Patch0: javac-check.patch
|
||||||
# NOTE: Oracle OCI is not packaged yet
|
# NOTE: Oracle OCI is not packaged yet
|
||||||
# The patch doesn't remove the file AuthenticationOciClient.java
|
# The patch doesn't remove the file AuthenticationOciClient.java
|
||||||
@ -48,6 +41,7 @@ BuildRequires: java-devel >= 1.8
|
|||||||
BuildRequires: javapackages-local >= 6
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: javassist >= 3.28.0
|
BuildRequires: javassist >= 3.28.0
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
|
BuildRequires: protobuf-devel
|
||||||
BuildRequires: protobuf-java >= 3.9.2
|
BuildRequires: protobuf-java >= 3.9.2
|
||||||
BuildRequires: slf4j
|
BuildRequires: slf4j
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
@ -85,15 +79,6 @@ set that supports the capabilities of MySQL.
|
|||||||
%patch -P 2 -p1
|
%patch -P 2 -p1
|
||||||
%patch -P 3 -p1
|
%patch -P 3 -p1
|
||||||
|
|
||||||
%if 0%{?suse_version} <= 1500
|
|
||||||
# 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
|
|
||||||
tar -xvf %{SOURCE1} -C .
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# remove OCI support
|
# remove OCI support
|
||||||
rm -rf src/main/protocol-impl/java/com/mysql/cj/protocol/a/authentication/AuthenticationOciClient.java
|
rm -rf src/main/protocol-impl/java/com/mysql/cj/protocol/a/authentication/AuthenticationOciClient.java
|
||||||
|
|
||||||
@ -121,7 +106,7 @@ export CLASSPATH=$(build-classpath \
|
|||||||
junit \
|
junit \
|
||||||
reload4j \
|
reload4j \
|
||||||
protobuf)
|
protobuf)
|
||||||
%{ant} \
|
ant \
|
||||||
-Dsnapshot.version= \
|
-Dsnapshot.version= \
|
||||||
-Dcom.mysql.jdbc.extra.libs=lib \
|
-Dcom.mysql.jdbc.extra.libs=lib \
|
||||||
-Dant.java.version=1.8 \
|
-Dant.java.version=1.8 \
|
||||||
|
Loading…
Reference in New Issue
Block a user