diff --git a/clamav-unofficial-sigs.spec b/clamav-unofficial-sigs.spec index 4a3d639..42f7ce1 100644 --- a/clamav-unofficial-sigs.spec +++ b/clamav-unofficial-sigs.spec @@ -9,7 +9,7 @@ %endif Name: clamav-unofficial-sigs Version: 6.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Scripts to download unofficial clamav signatures Group: Applications/System License: BSD @@ -46,8 +46,12 @@ cp %{SOURCE1} clamav-unofficial-sigs.cron cp %{SOURCE2} clamav-unofficial-sigs.logrotate cp %{SOURCE3} clamav-unofficial-sigs.man8 %if 0%{?rhel} && 0%{?rhel} == 6 -sed -i -e '/create/ s/clamupdate/clam-update/g' clamav-unofficial-sigs.logrotate +sed -i -e '/create/ s/clamupdate/%{clamupdateuser}/g' clamav-unofficial-sigs.logrotate %endif +# Fix shebang +sed -i -e 's^/usr/bin/env bash^/bin/bash^g' clamav-unofficial-sigs.sh +sed -i -e 's^/usr/bin/bash^/bin/bash^g' clamav-unofficial-sigs.cron + %if 0%{?rhel} && 0%{?rhel} <= 7 sed -i -e '/^#pkg_mgr/ s/^#//;s/""/"yum"/' config/master.conf %else @@ -106,6 +110,10 @@ rm -rf %{buildroot} %{_mandir}/man*/%{name}* %changelog +* Tue Oct 01 2019 Didier Fabert - 6.1.1-2 +- Fix bash path +- Fix shebang + * Sat Sep 21 2019 Didier Fabert - 6.1.1-1 - Update from upstream - Add cron, logrotate and man from fixed files (upstream way is too difficult to maintain)