-%define main_version 41
-%define daily_version 2384
-%define database_version 20061227
-%define _rel 1
+%define main_version 52
+%define daily_version 1202
+%define bytecode_version 68
+%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}
-Release: %{database_version}.%{_rel}
+Version: %{main_version}.%{daily_version}.%{bytecode_version}.%{safebrowsing_version}
+Release: %{database_version}.%{rel}
License: GPL
Group: Applications/Databases
-Source0: http://db.local.clamav.net/daily.cvd
-# Source0-md5: 03769468fc0f2b563bc3ec5de295a4ae
-Source1: http://db.local.clamav.net/main.cvd
-# Source1-md5: 347c99544205184fbc1bd23fd7cfd782
+Source0: http://db.local.clamav.net/main.cvd
+# Source0-md5: b1e43b47f292fe18f5fd6155925b756b
+Source1: http://db.local.clamav.net/daily.cvd
+# Source1-md5: f0ed55471c1af8288e1e46bf5deb2681
+Source2: http://db.local.clamav.net/bytecode.cvd
+# Source2-md5: 62060232b00da9b0eb8e6a31c6236443
+Source3: http://db.local.clamav.net/safebrowsing.cvd
+# Source3-md5: 25f62973c69a17f1a4d9766d79f5179a
URL: http://www.clamav.net/
BuildRequires: file
Requires: clamav
%description
Virus databases for clamav (updated %{database_version}).
+%description -l hu.UTF-8
+Vírus adatbázis clamavhoz (%{database_version}).
+
%description -l pl.UTF-8
Bazy wirusów dla clamava (aktualizowane %{database_version}).
%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