Browse Source

make zstd and lz4 optional dependencies

master
parent
commit
3d2b9c0757
  1. 24
      groonga/groonga.spec

24
groonga/groonga.spec

@ -32,10 +32,12 @@ Class: EVAL
Group: Database Group: Database
License: GPL License: GPL
Version: 9.0.0 Version: 9.0.0
Release: 20190208 Release: 20190421
# package options # package options
%option with_zlib no %option with_zlib no
%option with_zstd no
%option with_lz4 no
%option with_msgpack no %option with_msgpack no
# list of sources # list of sources
@ -51,6 +53,14 @@ PreReq: glib
BuildPreReq: zlib BuildPreReq: zlib
PreReq: zlib PreReq: zlib
%endif %endif
%if "%{with_zstd}" == "yes"
BuildPreReq: zstd
PreReq: zstd
%endif
%if "%{with_lz4}" == "yes"
BuildPreReq: lz4
PreReq: lz4
%endif
%if "%{with_msgpack}" == "yes" %if "%{with_msgpack}" == "yes"
BuildPreReq: msgpack BuildPreReq: msgpack
PreReq: msgpack PreReq: msgpack
@ -88,6 +98,16 @@ PreReq: msgpack
%else %else
--without-zlib \ --without-zlib \
%endif %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" %if "%{with_msgpack}" == "yes"
--enable-message-pack \ --enable-message-pack \
--with-message-pack=%{l_prefix} \ --with-message-pack=%{l_prefix} \
@ -96,8 +116,6 @@ PreReq: msgpack
--without-message-pack \ --without-message-pack \
%endif %endif
--without-libstemmer \ --without-libstemmer \
--without-lz4 \
--without-zstd \
--without-ssl \ --without-ssl \
--without-zeromq \ --without-zeromq \
--disable-groonga-httpd \ --disable-groonga-httpd \

Loading…
Cancel
Save