5 |
Summary: A MySQL database connector for C++ |
Summary: A MySQL database connector for C++ |
6 |
Name: mysql-connector-c++ |
Name: mysql-connector-c++ |
7 |
Version: 1.1.6 |
Version: 1.1.6 |
8 |
Release: %mkrel 1 |
Release: %mkrel 1 |
9 |
Group: System/Libraries |
Group: System/Libraries |
10 |
License: GPL |
License: GPLv2 |
11 |
URL: http://dev.mysql.com/downloads/connector/cpp/ |
URL: http://dev.mysql.com/downloads/connector/cpp/ |
12 |
Source0: http://cdn.mysql.com/Downloads/Connector-C++/%{name}-%{version}.tar.gz |
Source0: http://cdn.mysql.com/Downloads/Connector-C++/%{name}-%{version}.tar.gz |
13 |
## patches from arch-linux |
## patches from arch-linux |
14 |
Patch0: mysql_cxx_linkage.patch |
Patch0: mysql_cxx_linkage.patch |
15 |
Patch1: mariadb_api.patch |
Patch1: mariadb_api.patch |
|
Patch2: FindMySQL_cmake.patch |
|
16 |
BuildRequires: cmake |
BuildRequires: cmake |
17 |
BuildRequires: mysql-devel |
BuildRequires: mysql-devel |
18 |
BuildRequires: boost-devel |
BuildRequires: boost-devel |
19 |
|
|
20 |
%description |
%description |
21 |
MySQL Connector/C++ is a MySQL database connector for C++ development. The |
MySQL Connector/C++ is a MySQL database connector for C++ development. The |
37 |
|
|
38 |
%package -n %{libname} |
%package -n %{libname} |
39 |
Summary: The shared mysql-connector-cpp library |
Summary: The shared mysql-connector-cpp library |
40 |
Group: System/Libraries |
Group: System/Libraries |
41 |
Provides: %{name} = %{version}-%{release} |
Provides: %{name} = %{version}-%{release} |
42 |
|
|
43 |
%description -n %{libname} |
%description -n %{libname} |
44 |
MySQL Connector/C++ is a MySQL database connector for C++ development. The |
MySQL Connector/C++ is a MySQL database connector for C++ development. The |
60 |
|
|
61 |
%package -n %{develname} |
%package -n %{develname} |
62 |
Summary: Development library and header files for development with mysql-connector-cpp |
Summary: Development library and header files for development with mysql-connector-cpp |
63 |
Group: Development/C++ |
Group: Development/C++ |
64 |
Requires: %{libname} = %{version} |
Requires: %{libname} = %{version} |
65 |
Provides: %{name}-devel = %{version}-%{release} |
Provides: %{name}-devel = %{version}-%{release} |
66 |
|
|
86 |
%setup -q |
%setup -q |
87 |
%patch0 -p1 -b .linkage |
%patch0 -p1 -b .linkage |
88 |
%patch1 -p1 -b .mariadb |
%patch1 -p1 -b .mariadb |
|
## %patch2 -p1 -b .FindMySQL_cmake |
|
89 |
%{__chmod} -x examples/*.cpp examples/*.txt |
%{__chmod} -x examples/*.cpp examples/*.txt |
90 |
|
|
91 |
# Save examples to keep directory clean (for doc) |
# Save examples to keep directory clean (for doc) |
94 |
|
|
95 |
%build |
%build |
96 |
%{cmake} \ |
%{cmake} \ |
97 |
|
-DMYSQL_INCLUDE_DIR=%{_includedir}/mysql \ |
98 |
-DCMAKE_INSTALL_PREFIX=/usr \ |
-DCMAKE_INSTALL_PREFIX=/usr \ |
99 |
-DCMAKE_BUILD_TYPE=Release \ |
-DCMAKE_BUILD_TYPE=Release \ |
100 |
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |