%endif
Source0: https://rspamd.com/downloads/%{name}-%{version}.tar.xz
-Patch0: %{name}.service.patch
%description
Rspamd is a rapid, modular and lightweight spam filter. It is designed to work
%prep
%setup -q
-%if 0%{?el7}
-%patch0 -p0
-%endif
%build
%{__cmake} \
+++ /dev/null
---- rspamd.service.orig 2016-07-06 22:35:44.164819553 +0200
-+++ rspamd.service 2016-07-06 22:36:16.665047224 +0200
-@@ -5,8 +5,7 @@
- [Service]
- Type=forking
- NonBlocking=true
--ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f
--User=_rspamd
-+ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f -u _rspamd -g _rspamd
- RuntimeDirectory=rspamd
- RuntimeDirectoryMode=0755
- Restart=always