diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-02-18 17:57:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-02-18 17:57:59 +0000 |
commit | 667ffddf018da1b770dc709fcc051f6f483fd466 (patch) | |
tree | d2eeaeb3f210aa12bde2137c878de40ef9bccba9 /centos | |
parent | c7283f8e50304ec0e0efa13a674ebe867f51be07 (diff) | |
download | rspamd-667ffddf018da1b770dc709fcc051f6f483fd466.tar.gz rspamd-667ffddf018da1b770dc709fcc051f6f483fd466.zip |
Remove judy and use glib hash tables.
There is no significant advantage to use Judy arrays over glib
HashTables to store hashes in fuzzy storage. Therefore, drop support of
Judy completely. Also rename `use_judy` parameter to `strict_hash`
indicating that hashes are matched strictly (not a fuzzy match but a hash
lookup).
Diffstat (limited to 'centos')
-rw-r--r-- | centos/rspamd.spec | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/centos/rspamd.spec b/centos/rspamd.spec index 595b8d7da..f11d66ec0 100644 --- a/centos/rspamd.spec +++ b/centos/rspamd.spec @@ -5,8 +5,6 @@ %define rspamd_confdir %{_sysconfdir}/rspamd %define rspamd_pluginsdir %{_datadir}/rspamd -%define USE_JUDY 0 - %if 0%{?suse_version} %define __cmake cmake %define __install install @@ -29,17 +27,8 @@ License: BSD2c %endif URL: https://rspamd.com BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} -%if "%{USE_JUDY}" == "1" -%if 0%{?suse_version} -BuildRequires: cmake,glib2-devel,gmime-devel,libevent-devel,openssl-devel,lua-devel,judy-devel,pcre-devel -%else -BuildRequires: cmake,glib2-devel,gmime-devel,libevent-devel,openssl-devel,lua-devel,Judy-devel,pcre-devel -%endif -Requires: lua, logrotate -%else BuildRequires: cmake,glib2-devel,gmime-devel,libevent-devel,openssl-devel,lua-devel,pcre-devel Requires: lua, logrotate -%endif # for /user/sbin/useradd %if 0%{?suse_version} Requires(pre): shadow @@ -96,12 +85,7 @@ lua. -DNO_SHARED=ON \ -DDEBIAN_BUILD=1 \ -DRSPAMD_GROUP=%{rspamd_group} \ - -DRSPAMD_USER=%{rspamd_user} \ -%if "%{USE_JUDY}" == "1" - -DENABLE_JUDY=ON -%else - -DENABLE_JUDY=OFF -%endif + -DRSPAMD_USER=%{rspamd_user} %{__make} %{?jobs:-j%jobs} |