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 |
16 |
|
Patch2: FindMySQL_cmake.patch |
17 |
BuildRequires: cmake |
BuildRequires: cmake |
18 |
BuildRequires: mysql-devel |
BuildRequires: mysql-devel |
19 |
BuildRequires: boost-devel |
BuildRequires: boost-devel |
87 |
%setup -q |
%setup -q |
88 |
%patch0 -p1 -b .linkage |
%patch0 -p1 -b .linkage |
89 |
%patch1 -p1 -b .mariadb |
%patch1 -p1 -b .mariadb |
90 |
## see http://bugs.mysql.com/bug.php?id=68320 |
%patch2 -p1 -b .FindMySQL_cmake |
|
%{__sed} -i -e 's/lib$/%{_lib}/' driver/CMakeLists.txt |
|
91 |
%{__chmod} -x examples/*.cpp examples/*.txt |
%{__chmod} -x examples/*.cpp examples/*.txt |
92 |
|
|
93 |
# Save examples to keep directory clean (for doc) |
# Save examples to keep directory clean (for doc) |
98 |
%{cmake} \ |
%{cmake} \ |
99 |
-DCMAKE_INSTALL_PREFIX=/usr \ |
-DCMAKE_INSTALL_PREFIX=/usr \ |
100 |
-DCMAKE_BUILD_TYPE=Release \ |
-DCMAKE_BUILD_TYPE=Release \ |
101 |
-DCMAKE_INSTALL_LIBDIR=/usr/lib \ |
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |
102 |
-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \ |
-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \ |
103 |
-DMYSQL_LIB=/usr/lib/libmysqlclient.so |
-DMYSQL_LIB=%{_libdir}/libmysqlclient.so |
104 |
%{make} |
%{make} |
105 |
|
|
106 |
%install |
%install |