From b1717aafa379b007a093f16358acaf4b44fc03e2 Mon Sep 17 00:00:00 2001 From: Christian Glombek Date: Tue, 22 Aug 2017 22:43:49 +0200 Subject: [PATCH] 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 --- centos/rspamd.spec | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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 -- 2.39.5