From 4271372fec341c2735d25f6484c4719281d4e536 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 16 Jan 2025 17:39:35 +0800 Subject: [PATCH] drop useless perl(:MODULE_COMPAT) requirement --- spamassassin.service | 12 ++++++++++++ spamassassin.spec | 12 +++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/spamassassin.service b/spamassassin.service index 530f8f8..004a125 100644 --- a/spamassassin.service +++ b/spamassassin.service @@ -4,6 +4,18 @@ After=syslog.target network.target Wants=sa-update.timer [Service] +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectSystem=full +PrivateDevices=true +ProtectHostname=true +ProtectClock=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions EnvironmentFile=-/etc/sysconfig/spamassassin ExecStart=/usr/bin/spamd $SPAMDOPTIONS StandardOutput=null diff --git a/spamassassin.spec b/spamassassin.spec index fbe14c4..9fa3434 100644 --- a/spamassassin.spec +++ b/spamassassin.spec @@ -1,6 +1,6 @@ Name: spamassassin Version: 4.0.1 -Release: 1 +Release: 2 Summary: A program used for e-mail spam filtering License: Apache-2.0 URL: https://spamassassin.apache.org/ @@ -31,16 +31,14 @@ BuildRequires: perl(Mail::SPF) perl(Net::CIDR::Lite) perl(Net::DNS) perl(NetA BuildRequires: perl(Test::More) perl(Time::HiRes) systemd-units Requires: gnupg2 procmail perl-HTML-Parser >= 3.43 systemd-pam -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Archive::Tar) perl(BSD::Resource) perl(DB_File) perl(Data::Dumper) Requires: perl(Digest::MD5) perl(Digest::SHA) perl(Encode::Detect) perl(Errno) Requires: perl(Exporter) perl(HTTP::Date) perl(IO::Socket::INET6) perl(IO::Socket::SSL) Requires: perl(LWP::UserAgent) perl(List::Util) perl(Mail::DKIM) perl(Mail::SPF) Requires: perl(Net::CIDR::Lite) perl(Net::DNS) perl(Socket) perl(Time::HiRes) -Requires(preun): systemd-units -Requires(post): diffutils systemd-units systemd-sysv -Requires(postun): systemd-units +Requires(post): diffutils systemd-sysv +%{?systemd_requires} %description Apache SpamAssassin is the Open Source anti-spam platform giving system administrators @@ -156,6 +154,10 @@ fi %{_mandir}/man[13]/* %changelog +* Thu Jan 16 2025 Funda Wang - 4.0.1-2 +- drop useless perl(:MODULE_COMPAT) requirement +- harden systemd unit service + * Wed Jul 31 2024 wangkai <13474090681@163.com> - 4.0.1-1 - Update to 4.0.1 - It provides compatability with the latest version of Perl 5.38 -- Gitee