]> git.pld-linux.org Git - packages/clamav-database.git/blobdiff - clamav-database.spec
- 53.1229.91.2509-20101122
[packages/clamav-database.git] / clamav-database.spec
index 8c7b80be814d712b8507c70011886ed35c2988e7..e1fdc543aa9f5be47c7a07911892c5055962fa90 100644 (file)
@@ -1,35 +1,70 @@
-%define                database_version        20061227
-Summary:       Virus database for clamav
-Summary(pl):   Bazy wirusów dla clamav
+%define                main_version            53
+%define                daily_version           1229
+%define                bytecode_version        91
+%define                safebrowsing_version    2509
+%define                database_version        20101122
+%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:       0.88.7.%{database_version}
-Release:       1
+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: 99c21c47952b6740d4ff03021a7c968a
+Source1:       http://db.local.clamav.net/daily.cvd
+# Source1-md5: f95e626ae657129e97f9e0bc13b64fea
+Source2:       http://db.local.clamav.net/bytecode.cvd
+# Source2-md5: d37979ae8870300d6ccf09035419ce86
+Source3:       http://db.local.clamav.net/safebrowsing.cvd
+# Source3-md5: 08f3a86580adb11ed379c87f790d6a62
 URL:           http://www.clamav.net/
+BuildRequires: file
 Requires:      clamav
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Virus database for clamav (updated %{database_version}).
+Virus databases for clamav (updated %{database_version}).
 
-%description -l pl
-Bazy wirusów dla clamav (aktualizowana %{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} %{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
+fi
+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
-install -d $RPM_BUILD_ROOT{/var/lib/clamav,%{_sbindir}}
-
-install %{SOURCE0} $RPM_BUILD_ROOT/var/lib/clamav
-install %{SOURCE1} $RPM_BUILD_ROOT/var/lib/clamav
+install -d $RPM_BUILD_ROOT/var/lib/clamav
+install *.cvd $RPM_BUILD_ROOT/var/lib/clamav
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.086594 seconds and 4 git commands to generate.