]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- rel 3 auto/th/mysql-5.7.30-3
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 1 Jun 2020 14:42:23 +0000 (16:42 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 1 Jun 2020 14:42:23 +0000 (16:42 +0200)
- build with bundled protobuf

mysql.spec

index 8c0d336be60d02d67e19a7b13b97c903e130b0e4..18175b290051501338e15a38a0495b3746545e76 100644 (file)
@@ -21,6 +21,7 @@
 %bcond_without sphinx          # Sphinx storage engine support
 # mysql needs boost 1.59.0 and doesn't support newer/older boost versions
 %bcond_with    system_boost
+%bcond_with    system_protobuf # mysql doesn't build with newer (3.12+) protobuf
 %bcond_without tests           # run test suite
 %bcond_with    ndb             # NDB is now a separate product, this here is broken, so disable it
 %bcond_without ldap            # LDAP auth support
@@ -35,7 +36,7 @@ Summary(uk.UTF-8):    MySQL - швидкий SQL-сервер
 Summary(zh_CN.UTF-8):  MySQL数据库服务器
 Name:          mysql
 Version:       5.7.30
-Release:       2
+Release:       3
 License:       GPL v2 + MySQL FOSS License Exception
 Group:         Applications/Databases
 #Source0Download: https://dev.mysql.com/downloads/mysql/5.7.html#downloads
@@ -88,7 +89,7 @@ BuildRequires:        ncurses-devel >= 4.2
 %{?with_ldap:BuildRequires:    openldap-devel}
 BuildRequires: pam-devel
 BuildRequires: perl-devel >= 1:5.6.1
-BuildRequires: protobuf-devel >= 2.5
+%{?with_system_protobuf:BuildRequires: protobuf-devel >= 2.5}
 BuildRequires: python-modules
 BuildRequires: readline-devel >= 6.2
 BuildRequires: rpm-perlprov >= 4.1-13
@@ -523,7 +524,7 @@ CPPFLAGS="%{rpmcppflags}" \
        -DWITH_PIC=ON \
        -DWITH_LZ4=system \
        -DWITH_LIBEVENT=system \
-       -DWITH_PROTOBUF=system \
+       %{?with_system_protobuf:-DWITH_PROTOBUF=system} \
        -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
        -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
        %{!?with_system_boost:-DWITH_BOOST="$(pwd)/$(ls -1d ../boost_*)"} \
This page took 0.056037 seconds and 4 git commands to generate.