From 3d2b9c07571385d79bd7cf387cc0891ae1506dd1 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sun, 21 Apr 2019 11:49:03 +0200 Subject: [PATCH] make zstd and lz4 optional dependencies --- groonga/groonga.spec | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/groonga/groonga.spec b/groonga/groonga.spec index a33c7b1b45..4f6635cba9 100644 --- a/groonga/groonga.spec +++ b/groonga/groonga.spec @@ -32,10 +32,12 @@ Class: EVAL Group: Database License: GPL Version: 9.0.0 -Release: 20190208 +Release: 20190421 # package options %option with_zlib no +%option with_zstd no +%option with_lz4 no %option with_msgpack no # list of sources @@ -51,6 +53,14 @@ PreReq: glib BuildPreReq: zlib PreReq: zlib %endif +%if "%{with_zstd}" == "yes" +BuildPreReq: zstd +PreReq: zstd +%endif +%if "%{with_lz4}" == "yes" +BuildPreReq: lz4 +PreReq: lz4 +%endif %if "%{with_msgpack}" == "yes" BuildPreReq: msgpack PreReq: msgpack @@ -88,6 +98,16 @@ PreReq: msgpack %else --without-zlib \ %endif +%if "%{with_zstd}" == "yes" + --with-zstd=%{l_prefix} \ +%else + --without-zstd \ +%endif +%if "%{with_lz4}" == "yes" + --with-lz4=%{l_prefix} \ +%else + --without-lz4 \ +%endif %if "%{with_msgpack}" == "yes" --enable-message-pack \ --with-message-pack=%{l_prefix} \ @@ -96,8 +116,6 @@ PreReq: msgpack --without-message-pack \ %endif --without-libstemmer \ - --without-lz4 \ - --without-zstd \ --without-ssl \ --without-zeromq \ --disable-groonga-httpd \