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
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 \

Loading…
Cancel
Save