From: Christian Glombek Date: Tue, 22 Aug 2017 20:43:49 +0000 (+0200) Subject: Various changes to CentOS RPM X-Git-Tag: 1.7.0~710^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1805%2Fhead;p=rspamd.git Various changes to CentOS RPM Update License to be the same as repo (ASL 2.0) Remove hardcoded user and group Add %{rspamd_pluginsdir}/lib/*.lua --- diff --git a/centos/rspamd.spec b/centos/rspamd.spec index f080460c9..d1d370327 100644 --- a/centos/rspamd.spec +++ b/centos/rspamd.spec @@ -12,14 +12,7 @@ Version: 1.1.0 Release: 1 Summary: Rapid spam filtering system Group: System Environment/Daemons - -# BSD License (two clause) -# http://www.freebsd.org/copyright/freebsd-license.html -%if 0%{?suse_version} -License: BSD-2-Clause -%else -License: BSD2c -%endif +License: ASL 2.0 URL: https://rspamd.com BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRequires: glib2-devel,libevent-devel,openssl-devel,pcre-devel @@ -210,7 +203,7 @@ fi %config(noreplace) %{rspamd_confdir}/worker-fuzzy.inc %config(noreplace) %{rspamd_confdir}/worker-normal.inc %config(noreplace) %{rspamd_confdir}/modules.d/* -%attr(-, _rspamd, _rspamd) %dir %{rspamd_home} +%attr(-, %{rspamd_user}, %{rspamd_group}) %dir %{rspamd_home} %dir %{rspamd_rulesdir}/regexp %dir %{rspamd_rulesdir} %dir %{rspamd_confdir} @@ -225,6 +218,7 @@ fi %config(noreplace) %{rspamd_confdir}/surbl-whitelist.inc %config(noreplace) %{rspamd_confdir}/spf_dkim_whitelist.inc %config(noreplace) %{rspamd_confdir}/dmarc_whitelist.inc +%{rspamd_pluginsdir}/lib/*.lua %{rspamd_pluginsdir}/lua/*.lua %{rspamd_rulesdir}/regexp/*.lua %{rspamd_rulesdir}/*.lua