X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=clamav-database.spec;h=f5e1bbea43263d7f976b8ba823c8a04283bb5cb2;hb=1bc32b4d76e15a41b262e632dd08a2019f55807c;hp=1d0c6191199275dd164ac87c7ef11e8b1459ea91;hpb=3cc065e56ae2feb342db321d63424cba4e078b64;p=packages%2Fclamav-database.git diff --git a/clamav-database.spec b/clamav-database.spec index 1d0c619..f5e1bbe 100644 --- a/clamav-database.spec +++ b/clamav-database.spec @@ -1,18 +1,25 @@ -%define main_version 45 -%define daily_version 7501 -%define database_version 20080618 +%define main_version 54 +%define daily_version 1523 +%define bytecode_version 188 +%define safebrowsing_version 3988 +%define database_version 20120809 %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: 5312db62b11f8faf48c669fb358488e0 +# Source0-md5: eb12490fda87d602e476d4b163f8a34b Source1: http://db.local.clamav.net/daily.cvd -# Source1-md5: a55e81db65b27779a7dbf8a1bff4f87b +# Source1-md5: dbbbb3bece4b934d148f1616dd64aba8 +Source2: http://db.local.clamav.net/bytecode.cvd +# Source2-md5: fd5ba1e66f8bbf12fc5fbfaa79af6b91 +Source3: http://db.local.clamav.net/safebrowsing.cvd +# Source3-md5: 679289375b71acc740b8c7ef24e80f99 URL: http://www.clamav.net/ BuildRequires: file Requires: clamav @@ -22,16 +29,21 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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 @@ -40,6 +52,14 @@ if [ "$daily_version" != %{daily_version} ]; then : 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