%define main_version 52
-%define daily_version 1178
-%define database_version 20100902
+%define daily_version 1202
+%define bytecode_version 69
+%define safebrowsing_version 2405
+%define database_version 20100927
%define rel 1
Summary: Virus databases for clamav
Summary(hu.UTF-8): Vírus adatbázis clamav-hoz
Summary(pl.UTF-8): Bazy wirusów dla clamava
Name: clamav-database
-Version: %{main_version}.%{daily_version}
+Version: %{main_version}.%{daily_version}.%{bytecode_version}.%{safebrowsing_version}
Release: %{database_version}.%{rel}
License: GPL
Group: Applications/Databases
Source0: http://db.local.clamav.net/main.cvd
# Source0-md5: b1e43b47f292fe18f5fd6155925b756b
Source1: http://db.local.clamav.net/daily.cvd
-# Source1-md5: 5d57375422fc0c78d9ca2175b56bf835
+# Source1-md5: f0ed55471c1af8288e1e46bf5deb2681
+Source2: http://db.local.clamav.net/bytecode.cvd
+# Source2-md5: 5eaab1e04fc7e8a87266cac5ca41712c
+Source3: http://db.local.clamav.net/safebrowsing.cvd
+# Source3-md5: 25f62973c69a17f1a4d9766d79f5179a
URL: http://www.clamav.net/
BuildRequires: file
Requires: clamav
%prep
%setup -qcT
-cp -a %{SOURCE0} %{SOURCE1} .
+cp -a %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} .
%build
main_version=$(file main.cvd | awk -F, '/version/{print $2}' | awk '{print $NF}')
daily_version=$(file daily.cvd | awk -F, '/version/{print $2}' | awk '{print $NF}')
+bytecode_version=$(file bytecode.cvd | awk -F, '/version/{print $2}' | awk '{print $NF}')
+safebrowsing_version=$(file safebrowsing.cvd | awk -F, '/version/{print $2}' | awk '{print $NF}')
if [ "$main_version" != %{main_version} ]; then
: Update %%define main_version $main_version, and retry
exit 1
: Update %%define daily_version $daily_version, and retry
exit 1
fi
+if [ "$bytecode_version" != %{bytecode_version} ]; then
+ : Update %%define bytecode_version $bytecode_version, and retry
+ exit 1
+fi
+if [ "$safebrowsing_version" != %{safebrowsing_version} ]; then
+ : Update %%define safebrowsing_version $safebrowsing_version, and retry
+ exit 1
+fi
%install
rm -rf $RPM_BUILD_ROOT