commit mysql-connector-cpp for openSUSE:Factory
Hello community,
here is the log from the commit of package mysql-connector-cpp for openSUSE:Factory checked in at 2015-08-17 15:33:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mysql-connector-cpp (Old)
and /work/SRC/openSUSE:Factory/.mysql-connector-cpp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mysql-connector-cpp"
Changes:
--------
--- /work/SRC/openSUSE:Factory/mysql-connector-cpp/mysql-connector-cpp.changes 2014-08-31 09:58:50.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.mysql-connector-cpp.new/mysql-connector-cpp.changes 2015-08-17 15:33:28.000000000 +0200
@@ -1,0 +2,16 @@
+Wed Aug 12 14:11:08 UTC 2015 - tchvatal@suse.com
+
+- Version bump to 1.1.6:
+ * See the news files on
+ https://dev.mysql.com/doc/relnotes/connector-cpp/en/
+- Update soname to libmyslqcppcon7
+- Remove needlessly long description
+- Drop unneeded/merged patches:
+ mysql-connector-cpp-1.1.0-cmake-paths-fix.patch
+ mysql-connector-cpp-1.1.0-gcc44.patch
+- Refresh patch:
+ mysql-connector-cpp-1.1.0-disable_tests_and_examples.patch
+- Add patch to build with mariadb:
+ mariadb_api.patch
+
+-------------------------------------------------------------------
Old:
----
mysql-connector-c++-1.1.2.tar.bz2
mysql-connector-cpp-1.1.0-cmake-paths-fix.patch
mysql-connector-cpp-1.1.0-gcc44.patch
New:
----
mariadb_api.patch
mysql-connector-c++-1.1.6.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mysql-connector-cpp.spec ++++++
--- /var/tmp/diff_new_pack.1n6XYW/_old 2015-08-17 15:33:28.000000000 +0200
+++ /var/tmp/diff_new_pack.1n6XYW/_new 2015-08-17 15:33:28.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package mysql-connector-cpp
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -16,20 +16,17 @@
#
+%define libname libmysqlcppconn7
Name: mysql-connector-cpp
-Version: 1.1.2
+Version: 1.1.6
Release: 0
Summary: MySQL Connector/C++: Standardized database driver for C++ development
License: SUSE-GPL-2.0-with-FLOSS-exception
Group: Development/Libraries/C and C++
Url: http://dev.mysql.com/downloads/connector/
-# http://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-%%{version}.tar.gz
-Source: mysql-connector-c++-%{version}.tar.bz2
-# PATCH-SUSE-INTEGRATION - mysql-connector-cpp-1.0.4-beta-cmake-paths-fix.patch [] mhrusecky@suse.cz -- adjust some default paths
-Patch0: mysql-connector-cpp-1.1.0-cmake-paths-fix.patch
-# PATCH-UPSTREAM-FIX - mysql-connector-cpp-1.0.4-beta-gcc44.patch [ upstream#44931 ] mhrusecky@suse.cz -- adding missing includes
-# http://bugs.mysql.com/44931
-Patch1: mysql-connector-cpp-1.1.0-gcc44.patch
+Source: http://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM: work with mariadb versions properly too
+Patch0: mariadb_api.patch
# PATCH-FEATURE-OPENSUSE - mysql-connector-cpp-1.1.0-disable_tests_and_examples.patch adam@mizerski.pl -- disable building tests and examples
Patch2: mysql-connector-cpp-1.1.0-disable_tests_and_examples.patch
BuildRequires: boost-devel >= 1.34.0
@@ -49,19 +46,10 @@
full functionality is not available when connecting to MySQL 5.0. You cannot
connect to MySQL 4.1 or earlier.
-Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library)
-offers the following advantages for C++ users:
-
- * Convenience of pure C++ - no C function calls
- * Support of a well designed API - JDBC 4.0
- * Support of a commonly known and well documented API - JDBC 4.0
- * Support of the object oriented programming paradigma
- * Shorter development times
-
%package -n libmysqlcppconn-devel
Summary: Development files for MySQL Connector/C++
Group: Development/Libraries/C and C++
-Requires: libmysqlcppconn6 = %{version}
+Requires: %{libname} = %{version}
Obsoletes: mysql-connector-c++-devel < %{version}
Provides: mysql-connector-c++-devel = %{version}
@@ -74,20 +62,11 @@
full functionality is not available when connecting to MySQL 5.0. You cannot
connect to MySQL 4.1 or earlier.
-Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library)
-offers the following advantages for C++ users:
-
- * Convenience of pure C++ - no C function calls
- * Support of a well designed API - JDBC 4.0
- * Support of a commonly known and well documented API - JDBC 4.0
- * Support of the object oriented programming paradigma
- * Shorter development times
-
-%package -n libmysqlcppconn6
+%package -n %{libname}
Summary: MySQL Connector/C++: Standardized database driver for C++ development
Group: Development/Libraries/C and C++
-%description -n libmysqlcppconn6
+%description -n %{libname}
MySQL Connector/C++ is a MySQL database connector for C++ development. The
MySQL driver for C++ can be used to connect to MySQL from C++ applications. The
driver mimics the JDBC 4.0 API. It implements a significant subset of JDBC 4.0.
@@ -96,19 +75,9 @@
full functionality is not available when connecting to MySQL 5.0. You cannot
connect to MySQL 4.1 or earlier.
-Using MySQL Connector/C++ instead of the MySQL C API (MySQL Client Library)
-offers the following advantages for C++ users:
-
- * Convenience of pure C++ - no C function calls
- * Support of a well designed API - JDBC 4.0
- * Support of a commonly known and well documented API - JDBC 4.0
- * Support of the object oriented programming paradigma
- * Shorter development times
-
%prep
%setup -q -n mysql-connector-c++-%{version}
%patch0 -p1
-%patch1
%patch2 -p1
chmod -x examples/*
@@ -118,7 +87,8 @@
-DMYSQLCPPCONN_ICU_ENABLE=OFF \
-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \
-DCMAKE_INSTALL_LIB_DIR=%{_lib} \
- -DMYSQLCLIENT_STATIC_BINDING=0
+ -DMYSQLCLIENT_STATIC_BINDING=0 \
+ -DMYSQL_CXX_LINKAGE=0
make %{?_smp_mflags} VERBOSE=1
%install
@@ -126,9 +96,9 @@
rm -f %{buildroot}%{_libdir}/libmysqlcppconn-static.a
rm -f %{buildroot}%{_prefix}/[A-Z]*
-%post -n libmysqlcppconn6 -p /sbin/ldconfig
+%post -n %{libname} -p /sbin/ldconfig
-%postun -n libmysqlcppconn6 -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
%files -n libmysqlcppconn-devel
%defattr(-,root,root)
@@ -136,7 +106,7 @@
%{_includedir}/*
%{_libdir}/*.so
-%files -n libmysqlcppconn6
+%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*
++++++ mariadb_api.patch ++++++
Index: mysql-connector-c++-1.1.6/driver/nativeapi/libmysql_static_proxy.cpp
===================================================================
--- mysql-connector-c++-1.1.6.orig/driver/nativeapi/libmysql_static_proxy.cpp
+++ mysql-connector-c++-1.1.6/driver/nativeapi/libmysql_static_proxy.cpp
@@ -319,7 +319,7 @@ LibmysqlStaticProxy::options(MYSQL * mys
int
LibmysqlStaticProxy::get_option(MYSQL * mysql, enum mysql_option option, const void *arg)
{
-#if MYSQL_VERSION_ID >= 50703
+#if not defined MARIADB_BASE_VERSION && MYSQL_VERSION_ID >= 50703
if (::mysql_get_option(mysql, option, arg)) {
throw sql::InvalidArgumentException("Unsupported option provided to mysql_get_option()");
} else {
Index: mysql-connector-c++-1.1.6/driver/mysql_connection.cpp
===================================================================
--- mysql-connector-c++-1.1.6.orig/driver/mysql_connection.cpp
+++ mysql-connector-c++-1.1.6/driver/mysql_connection.cpp
@@ -1003,6 +1003,7 @@ MySQL_Connection::getClientOption(const
MY_CHARSET_INFO cs;
proxy->get_character_set_info(&cs);
*(static_cast
participants (1)
-
root@hilbert.suse.de