/[packages]/updates/8/mysql-connector-c++/current/SPECS/mysql-connector-c++.spec
ViewVC logotype

Diff of /updates/8/mysql-connector-c++/current/SPECS/mysql-connector-c++.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1935260 by neoclust, Sat Jan 22 22:36:20 2022 UTC revision 1935261 by daviddavid, Mon Jan 23 18:41:04 2023 UTC
# Line 12  Line 12 
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
# Line 46  offers the following advantages for C++ Line 47  offers the following advantages for C++
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}
# Line 70  offers the following advantages for C++ Line 71  offers the following advantages for C++
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}
# Line 92  offers the following advantages for C++ Line 93  offers the following advantages for C++
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}
# Line 118  offers the following advantages for C++ Line 119  offers the following advantages for C++
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
# Line 126  offers the following advantages for C++ Line 127  offers the following advantages for C++
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
# Line 136  export CXXFLAGS="%{build_cxxflags} -Wno- Line 144  export CXXFLAGS="%{build_cxxflags} -Wno-
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 \

Legend:
Removed from v.1935260  
changed lines
  Added in v.1935261

  ViewVC Help
Powered by ViewVC 1.1.30