Update to 0.103.5

This commit is contained in:
Sérgio M. Basto 2022-01-14 10:55:07 +00:00
parent bd3af06ca9
commit 02b701c4eb
3 changed files with 28 additions and 10 deletions

View File

@ -33,7 +33,7 @@
Summary: End-user tools for the Clam Antivirus scanner
Name: clamav
Version: 0.103.4
Version: 0.103.5
Release: 1%{?dist}
License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
URL: https://www.clamav.net/
@ -56,7 +56,7 @@ Source5: clamd-README
#http://database.clamav.net/main.cvd
Source10: main-62.cvd
#http://database.clamav.net/daily.cvd
Source11: daily-26345.cvd
Source11: daily-26420.cvd
#http://database.clamav.net/bytecode.cvd
Source12: bytecode-333.cvd
#for update
@ -579,6 +579,9 @@ test -e %{freshclamlog} || {
%changelog
* Thu Jan 13 2022 Sérgio Basto <sergio@serjux.com> - 0.103.5-1
- Update to 0.103.5
* Sun Nov 07 2021 Sérgio Basto <sergio@serjux.com> - 0.103.4-1
- Update to 0.103.4

View File

@ -1,4 +1,4 @@
SHA512 (clamav-0.103.4-norar.tar.xz) = bcdb1cc1f5dd1d4a881156e0e2b3a4662a0a67fe944ae1ebae149980149cd14a512d5364fcbdf6d9aa2f4cd843a225057fe044c2fd58bf255fe1fd3fe6422c1e
SHA512 (clamav-0.103.5-norar.tar.xz) = 90a725c3372dd309cd561934030a50fddd451f1e8d5ab525939e381d6f525a8f46cca40948c59ac0ab884a25bfb17dc526c5726419e8b7eb0c4f1aef47793317
SHA512 (main-62.cvd) = b52e5d9ecacbd9b11c3b0cc460388746fccb353a7520522ed15ee25f645a432bed5be7e6b38512f134f085eb9be76a1e26c19de8b09491d4ec46da8c5afc318e
SHA512 (daily-26345.cvd) = 7a7d004fa26a33b4b46a9ee09fb390865e32f9d746a42fa12d9a2143c2eb1006294ccf758ed1daed7c7e8b826f013e5da020eb271e291b21c3b1ff5ffc71401c
SHA512 (daily-26420.cvd) = c368cc0b9c6e9c1b401f184840178515e37619aaae088edc0bf8d5e403c5c1f49768b987de37fc2e17cd3254f2d1d4e32e4dfb4443889aec512e634775b65423
SHA512 (bytecode-333.cvd) = 895c41266b9bc332f3a00c9267907251ad32abe3a5bff7584285e087430fe0dd7343e4ac0245308f3734d971d6ecb5656fd9ce6caf0fa24f9da7a41a96bc4d07

View File

@ -1,17 +1,31 @@
VERSION=0.103.4
VERSION=0.103.5
if [ -z "$1" ]
then
stage=0
else
stage=$1
fi
NAME=clamav
TARBALL_CLEAN=${NAME}-${VERSION}-norar.tar.xz
TARBALL=${NAME}-${VERSION}.tar.gz
if test $stage -le 0
then
echo STAGE 0
wget -c https://www.clamav.net/downloads/production/${TARBALL}
wget -c https://www.clamav.net/downloads/production/${TARBALL}.sig
gpg --verify ${TARBALL}.sig ${TARBALL}
zcat ${TARBALL} | tar --delete -f - '*/libclamunrar/*' | xz -c > ${TARBALL_CLEAN}
fi
echo Press enter convert cvd into spec or n to skip ; read dummy;
if [[ "$dummy" != "n" ]]; then
# WIP clouflare don't allow wget we need download with browser
#wget http://database.clamav.net/main.cvd
#get http://database.clamav.net/daily.cvd
#get http://database.clamav.net/bytecode.cvd
#wget https://database.clamav.net/main.cvd
#wget https://database.clamav.net/daily.cvd
#wget https://database.clamav.net/bytecode.cvd
main_ver=$(file main.cvd | sed -e 's/.*version /main-/;s/,.*/.cvd/')
daily_ver=$(file daily.cvd | sed -e 's/.*version /daily-/;s/,.*/.cvd/')
@ -24,6 +38,7 @@ cp -f bytecode.cvd $bytecode_ver
sed -i "s|^Source10: .*|Source10: $main_ver|" clamav.spec
sed -i "s|^Source11: .*|Source11: $daily_ver|" clamav.spec
sed -i "s|^Source12: .*|Source12: $bytecode_ver|" clamav.spec
fi
rpmdev-bumpspec -n $VERSION -c "Update to $VERSION" clamav.spec
echo fedpkg new-sources ${TARBALL_CLEAN} $main_ver $daily_ver $bytecode_ver
@ -33,13 +48,13 @@ if [[ "$dummy" != "n" ]]; then
fedpkg scratch-build --srpm
fi
echo Press enter to upload sources and commit ; read dummy;
fedpkg new-sources ${TARBALL_CLEAN} $main_ver $daily_ver $bytecode_ver
fedpkg new-sources ${TARBALL_CLEAN} $(spectool -l clamav.spec | grep -P "Source10|Source11|Source12" | sed 's/.* //')
fedpkg ci -c && git show
echo Press enter to build rawhide; read dummy;
git push && fedpkg build --nowait
for repo in "f35 f34 f33 epel8-playground epel8 epel7" ; do
for repo in "f35 f34 epel8 epel7" ; do
echo Press enter to build on branch $repo; read dummy;
git checkout $repo && git merge rawhide && fedpkg push && fedpkg build --nowait; git checkout rawhide
done