]> git.pld-linux.org Git - packages/percona-server.git/commitdiff
without system boost bcond
authorElan Ruusamäe <glen@delfi.ee>
Mon, 20 Jun 2016 07:06:15 +0000 (10:06 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 20 Jun 2016 07:06:54 +0000 (10:06 +0300)
so that can at least build it locally

percona-server.spec

index fd52ab3dabf177ef4fffbdcb8281eab40383d128..9d1ecdc58cae7c1e0cae1a4eda324803f4afbfd5 100644 (file)
@@ -24,6 +24,7 @@
 %bcond_without tcpd            # libwrap (tcp_wrappers) support
 %bcond_without sphinx          # Sphinx storage engine support
 %bcond_without tokudb          # TokuDB
+%bcond_without system_boost    # Use system boost package
 %bcond_with    tests           # FIXME: don't run correctly
 %bcond_with    ndb             # NDB is now a separate product, this here is broken, so disable it
 
@@ -94,7 +95,7 @@ BuildRequires:        libstdc++4-devel >= 5:4.0
 BuildRequires: libstdc++-devel >= 5:4.0
 %endif
 BuildRequires: automake
-BuildRequires: boost-devel = 1.59.0
+%{?with_system_boost:BuildRequires:    boost-devel = 1.59.0}
 BuildRequires: libhsclient-devel
 %{?with_tcpd:BuildRequires:    libwrap-devel}
 BuildRequires: ncurses-devel >= 4.2
@@ -562,6 +563,9 @@ CPPFLAGS="%{rpmcppflags}" \
        -DWITH_SSL=%{?with_ssl:system}%{!?with_ssl:no} \
 %endif
        -DWITH_UNIT_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
+%if %{without system_boost}
+       -DDOWNLOAD_BOOST=1 -DWITH_BOOST=$(pwd)/boost \
+%endif
        -DWITH_ZLIB=system \
        -DWITH_READLINE=system
 
This page took 0.028927 seconds and 4 git commands to generate.