From fa96639809e63b0572400ad9dc224d209eadb2c5 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Feb 28 2023 02:30:52 +0000 Subject: Mark cvd files is clamav-data as %config(noreplace) (bz#2170876) Rename clamav-update to clamav-freshclam Make clamav-freshclam supplement clamd --- diff --git a/clamav.spec b/clamav.spec index bf5d886..1f5088b 100644 --- a/clamav.spec +++ b/clamav.spec @@ -25,7 +25,7 @@ Summary: End-user tools for the Clam Antivirus scanner Name: clamav Version: 1.0.1 -Release: 3%{?dist} +Release: 4%{?dist} License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2} URL: https://www.clamav.net/ %if %{with unrar} @@ -194,21 +194,22 @@ BuildArch: noarch This package contains the documentation for clamav. -%package update +%package freshclam Summary: Auto-updater for the Clam Antivirus scanner data-files Requires: clamav-filesystem = %{version}-%{release} Requires: clamav-lib = %{version}-%{release} +Supplements:clamd Provides: data(clamav) = empty Provides: clamav-data-empty = %{version}-%{release} Obsoletes: clamav-data-empty < %{version}-%{release} +Provides: clamav-update = %{version}-%{release} +Obsoletes: clamav-update < %{version}-%{release} -%description update -This package contains programs which can be used to update the clamav -anti-virus database automatically. It uses the freshclam(1) utility for -this task. To activate it use, uncomment the entry in /etc/cron.d/clamav-update. -Use this package when you go updating the virus database regulary and -do not want to download a >160MB sized rpm-package with outdated virus -definitions. +%description freshclam +This package contains the freshclam(1) program and clamav-freshclam +service which can be used to update the clamav anti-virus database +automatically. Most users should install this package in order to +keep their definitions up to date. %package -n clamd @@ -452,13 +453,13 @@ exit 0 %postun milter %systemd_postun_with_restart clamav-milter.service -%post update +%post freshclam %systemd_post clamav-freshclam.service -%preun update +%preun freshclam %systemd_preun clamav-freshclam.service -%postun update +%postun freshclam %systemd_postun_with_restart clamav-freshclam.service %ldconfig_scriptlets lib @@ -522,7 +523,7 @@ exit 0 %doc docs/html -%files update +%files freshclam %{_bindir}/freshclam %{_libdir}/libfreshclam.so.2* %{_mandir}/*/freshclam* @@ -554,6 +555,11 @@ exit 0 %changelog +* Mon Feb 27 2023 Orion Poplawski - 1.0.1-4 +- Mark cvd files is clamav-data as %%config(noreplace) (bz#2170876) +- Rename clamav-update to clamav-freshclam +- Make clamav-freshclam supplement clamd + * Fri Feb 24 2023 Sérgio Basto - 1.0.1-3 - Update data files with help of Cisco-Talos/cvdupdate