diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-16 12:06:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-16 12:07:38 +0000 |
commit | 8f6a9243083dc611f30d83def8451298385d4ad4 (patch) | |
tree | 1379c5dbb8eaf10c5bf22588d1f63947a5f0196c /centos/rspamd.spec | |
parent | 576837a761dbb2fa0728b91706c347a645398102 (diff) | |
download | rspamd-8f6a9243083dc611f30d83def8451298385d4ad4.tar.gz rspamd-8f6a9243083dc611f30d83def8451298385d4ad4.zip |
Import spec tunes from OBS.
Diffstat (limited to 'centos/rspamd.spec')
-rw-r--r-- | centos/rspamd.spec | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/centos/rspamd.spec b/centos/rspamd.spec index 45010b145..7714d4d82 100644 --- a/centos/rspamd.spec +++ b/centos/rspamd.spec @@ -21,7 +21,11 @@ License: BSD2c %endif URL: https://rspamd.com BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} +%if 0%{?centos_version} == 600 +BuildRequires: cmake28,glib2-devel,gmime24-devel,libevent-devel,openssl-devel,lua-devel,pcre-devel,perl +%else BuildRequires: cmake,glib2-devel,gmime-devel,libevent-devel,openssl-devel,lua-devel,pcre-devel,perl +%endif %if 0%{?suse_version} || 0%{?el7} || 0%{?fedora} BuildRequires: systemd Requires(pre): systemd @@ -61,7 +65,12 @@ lua. %endif %build +%if 0%{?el6} +%define __cmake /usr/bin/env cmake28 +%endif # el6 + %{__cmake} \ + -DCMAKE_C_OPT_FLAGS="%{optflags}" \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCONFDIR=%{_sysconfdir}/rspamd \ -DMANDIR=%{_mandir} \ |