From e7cfcf5c3761ec83bfd1746a660f06ad749ea6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Fri, 17 Jan 2020 03:45:41 +0000 Subject: [PATCH] Fix scriplets (#1788338) --- clamav.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/clamav.spec b/clamav.spec index 9dbf271..80bc34e 100644 --- a/clamav.spec +++ b/clamav.spec @@ -37,7 +37,7 @@ Summary: End-user tools for the Clam Antivirus scanner Name: clamav Version: 0.101.5 -Release: 3%{?dist} +Release: 4%{?dist} License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2} URL: https://www.clamav.net/ %if %{with unrar} @@ -417,14 +417,14 @@ exit 0 # Point to the new service unit [ -L /etc/systemd/system/multi-user.target.wants/clamd@scan.service ] && ln -sf /usr/lib/systemd/system/clamd@.service /etc/systemd/system/multi-user.target.wants/clamd@scan.service || : -%systemd_post clamd@\*.service +%systemd_post clamd@.service %{?with_tmpfiles:/bin/systemd-tmpfiles --create %_tmpfilesdir/clamd.scan.conf || :} %preun -n clamd -%systemd_preun clamd@\*.service +%systemd_preun clamd@.service %postun -n clamd -%systemd_postun_with_restart clamd@\*.service +%systemd_postun_with_restart clamd@.service %post update @@ -570,6 +570,9 @@ test -e %milterlog || { %changelog +* Fri Jan 17 2020 Sérgio Basto - 0.101.5-4 +- Fix scriplets (#1788338) + * Tue Dec 17 2019 Sérgio Basto - 0.101.5-3 - Remove old init scripts and use systemd