diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-07 15:37:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-07 15:37:24 +0100 |
commit | dbd4da541353736bcc9cbee062decd7a33169893 (patch) | |
tree | 37bf520b38f7a7af7303315b6353fde2882c1305 /centos | |
parent | 6973dc14dfb11e54d198da676e6214f60bfb9cb7 (diff) | |
download | rspamd-dbd4da541353736bcc9cbee062decd7a33169893.tar.gz rspamd-dbd4da541353736bcc9cbee062decd7a33169893.zip |
Allow explicit turning off of options.
Now there is a way to specify cmake to skip linking with undesired
libraries.
Fix rpm spec to include libevent and optional Judy.
Diffstat (limited to 'centos')
-rw-r--r-- | centos/rspamd.spec | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/centos/rspamd.spec b/centos/rspamd.spec index b0e4e881d..bbe66f1a0 100644 --- a/centos/rspamd.spec +++ b/centos/rspamd.spec @@ -4,6 +4,8 @@ %define rspamd_logdir %{_localstatedir}/log/rspamd %define rspamd_confdir %{_sysconfdir}/rspamd +%define USE_JUDY 0 + Name: rspamd Version: 0.5.5 Release: 1 @@ -15,8 +17,13 @@ Group: System Environment/Daemons License: BSD URL: https://bitbucket.org/vstakhov/rspamd/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} -BuildRequires: cmake,glib2-devel,gmime-devel,openssl-devel,lua-devel,Judy-devel -Requires: glib2,gmime,lua,Judy +%if USE_JUDY +BuildRequires: cmake,glib2-devel,gmime-devel,libevent-devel,openssl-devel,lua-devel,Judy-devel +Requires: glib2,gmime,lua,Judy,libevent +%else +BuildRequires: cmake,glib2-devel,gmime-devel,libevent-devel,openssl-devel,lua-devel +Requires: glib2,gmime,lua,libevent +%endif # for /user/sbin/useradd Requires(pre): shadow-utils Requires(post): chkconfig @@ -49,7 +56,12 @@ rm -rf %{buildroot} -DNO_SHARED=ON \ -DDEBIAN_BUILD=1 \ -DRSPAMD_GROUP=%{rspamd_group} \ - -DRSPAMD_USER=%{rspamd_user} + -DRSPAMD_USER=%{rspamd_user} \ +%if USE_JUDY + -DENABLE_JUDY=ON +%else + -DENABLE_JUDY=OFF +%endif %{__make} %{?jobs:-j%jobs} |