12 |
|
|
13 |
Summary: A MySQL database connector for C++ |
Summary: A MySQL database connector for C++ |
14 |
Name: mysql-connector-c++ |
Name: mysql-connector-c++ |
15 |
Version: 8.0.28 |
Version: 8.0.32 |
16 |
Release: %mkrel 1 |
Release: %mkrel 3 |
17 |
Group: System/Libraries |
Group: System/Libraries |
18 |
License: GPLv2 |
License: GPLv2 |
19 |
URL: http://dev.mysql.com/downloads/connector/cpp/ |
URL: https://dev.mysql.com/downloads/connector/cpp/ |
20 |
Source0: https://dev.mysql.com/get/Downloads/Connector-C++/%{name}-%{version}-src.tar.gz |
Source0: https://dev.mysql.com/get/Downloads/Connector-C++/%{name}-%{version}-src.tar.gz |
|
Patch1: mysql-connector-cpp-openssl3.patch |
|
21 |
## from opensuse |
## from opensuse |
22 |
Patch3: mysql-connector-cpp-libmysql_dynamic_proxy_typos.patch |
Patch3: mysql-connector-cpp-libmysql_dynamic_proxy_typos.patch |
23 |
Patch4: mysql-connector-cpp-mariadb.patch |
Patch4: mysql-connector-cpp-mariadb.patch |
|
Patch6: mysql-connector-cpp-use-system-protobuf.patch |
|
24 |
Patch7: mysql-connector-cpp-test-feature.patch |
Patch7: mysql-connector-cpp-test-feature.patch |
25 |
|
|
26 |
BuildRequires: cmake |
BuildRequires: cmake |
27 |
|
BuildRequires: cmake(rapidjson) |
28 |
BuildRequires: mysql-devel |
BuildRequires: mysql-devel |
29 |
BuildRequires: boost-devel |
BuildRequires: boost-devel |
30 |
BuildRequires: rapidjson |
BuildRequires: pkgconfig(liblz4) |
31 |
BuildRequires: pkgconfig(protobuf) |
BuildRequires: pkgconfig(libzstd) |
32 |
|
BuildRequires: pkgconfig(protobuf) |
33 |
|
BuildRequires: pkgconfig(zlib) |
34 |
|
|
35 |
%description |
%description |
36 |
MySQL Connector/C++ is a MySQL database connector for C++ development. The |
MySQL Connector/C++ is a MySQL database connector for C++ development. The |
47 |
* Convenience of pure C++ - no C function calls |
* Convenience of pure C++ - no C function calls |
48 |
* Support of a well designed API - JDBC 4.0 |
* Support of a well designed API - JDBC 4.0 |
49 |
* Support of a commonly known and well documented API - JDBC 4.0 |
* Support of a commonly known and well documented API - JDBC 4.0 |
50 |
* Support of the object oriented programming paradigma |
* Support of the object oriented programming paradigm |
51 |
* Shorter development times |
* Shorter development times |
52 |
|
|
53 |
%package -n %{libname} |
%package -n %{libname} |
71 |
* Convenience of pure C++ - no C function calls |
* Convenience of pure C++ - no C function calls |
72 |
* Support of a well designed API - JDBC 4.0 |
* Support of a well designed API - JDBC 4.0 |
73 |
* Support of a commonly known and well documented API - JDBC 4.0 |
* Support of a commonly known and well documented API - JDBC 4.0 |
74 |
* Support of the object oriented programming paradigma |
* Support of the object oriented programming paradigm |
75 |
* Shorter development times |
* Shorter development times |
76 |
|
|
77 |
%package -n %{libname8} |
%package -n %{libname8} |
93 |
* Convenience of pure C++ - no C function calls |
* Convenience of pure C++ - no C function calls |
94 |
* Support of a well designed API - JDBC 4.0 |
* Support of a well designed API - JDBC 4.0 |
95 |
* Support of a commonly known and well documented API - JDBC 4.0 |
* Support of a commonly known and well documented API - JDBC 4.0 |
96 |
* Support of the object oriented programming paradigma |
* Support of the object oriented programming paradigm |
97 |
* Shorter development times |
* Shorter development times |
98 |
|
|
99 |
%package -n %{develname} |
%package -n %{develname} |
119 |
* Convenience of pure C++ - no C function calls |
* Convenience of pure C++ - no C function calls |
120 |
* Support of a well designed API - JDBC 4.0 |
* Support of a well designed API - JDBC 4.0 |
121 |
* Support of a commonly known and well documented API - JDBC 4.0 |
* Support of a commonly known and well documented API - JDBC 4.0 |
122 |
* Support of the object oriented programming paradigma |
* Support of the object oriented programming paradigm |
123 |
* Shorter development times |
* Shorter development times |
124 |
|
|
125 |
%prep |
%prep |
127 |
|
|
128 |
chmod -x jdbc/examples/*.{cpp,txt} |
chmod -x jdbc/examples/*.{cpp,txt} |
129 |
|
|
130 |
|
# drop bundled stuff |
131 |
|
rm -rf cdk/extra/protobuf/protobuf-*/ |
132 |
|
rm -rf cdk/extra/rapidjson/include/ |
133 |
|
rm -rf cdk/extra/lz4/ |
134 |
|
rm -rf cdk/extra/zlib/ |
135 |
|
rm -rf cdk/extra/zstd/ |
136 |
|
|
137 |
# Save examples to keep directory clean (for doc) |
# Save examples to keep directory clean (for doc) |
138 |
cp -apr jdbc/examples examples |
cp -apr jdbc/examples examples |
139 |
rm -rf examples/CMakeLists.txt |
rm -rf examples/CMakeLists.txt |
144 |
-DMYSQL_INCLUDE_DIR=%{_includedir}/mysql \ |
-DMYSQL_INCLUDE_DIR=%{_includedir}/mysql \ |
145 |
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |
146 |
-DMYSQL_LIB=%{_libdir}/libmysqlclient.so \ |
-DMYSQL_LIB=%{_libdir}/libmysqlclient.so \ |
147 |
|
-DBUNDLE_DEPENDENCIES=OFF \ |
148 |
|
-DWITH_PROTOBUF=system \ |
149 |
|
-DWITH_LZ4=system \ |
150 |
-DWITH_SSL=system \ |
-DWITH_SSL=system \ |
151 |
|
-DWITH_ZLIB=system \ |
152 |
|
-DWITH_ZSTD=system \ |
153 |
-DWITH_JDBC=ON \ |
-DWITH_JDBC=ON \ |
154 |
-DMYSQLCLIENT_STATIC_BINDING=OFF \ |
-DMYSQLCLIENT_STATIC_BINDING=OFF \ |
155 |
-DMYSQLCLIENT_STATIC_LINKING=OFF \ |
-DMYSQLCLIENT_STATIC_LINKING=OFF \ |