]> git.pld-linux.org Git - packages/clamav-database.git/blobdiff - clamav-database.spec
- bytecode ver 275
[packages/clamav-database.git] / clamav-database.spec
index 081e8e11c5512006f36519362f8d754ee6a8c904..1fa805c8bc3941ea33a2cb4bd822393908a0291a 100644 (file)
@@ -1,19 +1,25 @@
-%define                main_version            52
-%define                daily_version           1178
-%define                database_version        20100902
+%define                main_version            57
+%define                daily_version           2146
+%define                bytecode_version        275
+%define                safebrowsing_version    4450
+%define                database_version        20160318
 %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
+# Source0-md5: f13ead862171f50019c15c946d25e91f
 Source1:       http://db.local.clamav.net/daily.cvd
-# Source1-md5: 5d57375422fc0c78d9ca2175b56bf835
+# Source1-md5: 094537361a304e7fb3db64e11482cd9f
+Source2:       http://db.local.clamav.net/bytecode.cvd
+# Source2-md5: 656e67f4237f33ca5ee087a33b696d90
+Source3:       http://db.local.clamav.net/safebrowsing.cvd
+# Source3-md5: 2084da0d4ab09c719be128f893840b17
 URL:           http://www.clamav.net/
 BuildRequires: file
 Requires:      clamav
@@ -31,11 +37,13 @@ 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
@@ -44,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
This page took 0.064711 seconds and 4 git commands to generate.