]> git.pld-linux.org Git - packages/clamav-database.git/blob - clamav-database.spec
- 52.1178-20100902
[packages/clamav-database.git] / clamav-database.spec
1 %define         main_version            52
2 %define         daily_version           1178
3 %define         database_version        20100902
4 %define         rel     1
5 Summary:        Virus databases for clamav
6 Summary(hu.UTF-8):      Vírus adatbázis clamav-hoz
7 Summary(pl.UTF-8):      Bazy wirusów dla clamava
8 Name:           clamav-database
9 Version:        %{main_version}.%{daily_version}
10 Release:        %{database_version}.%{rel}
11 License:        GPL
12 Group:          Applications/Databases
13 Source0:        http://db.local.clamav.net/main.cvd
14 # Source0-md5:  b1e43b47f292fe18f5fd6155925b756b
15 Source1:        http://db.local.clamav.net/daily.cvd
16 # Source1-md5:  5d57375422fc0c78d9ca2175b56bf835
17 URL:            http://www.clamav.net/
18 BuildRequires:  file
19 Requires:       clamav
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Virus databases for clamav (updated %{database_version}).
25
26 %description  -l hu.UTF-8
27 Vírus adatbázis clamavhoz (%{database_version}).
28
29 %description -l pl.UTF-8
30 Bazy wirusów dla clamava (aktualizowane %{database_version}).
31
32 %prep
33 %setup -qcT
34 cp -a %{SOURCE0} %{SOURCE1} .
35
36 %build
37 main_version=$(file main.cvd | awk -F, '/version/{print $2}' | awk '{print $NF}')
38 daily_version=$(file daily.cvd | awk -F, '/version/{print $2}' | awk '{print $NF}')
39 if [ "$main_version" != %{main_version} ]; then
40         : Update %%define main_version $main_version, and retry
41         exit 1
42 fi
43 if [ "$daily_version" != %{daily_version} ]; then
44         : Update %%define daily_version $daily_version, and retry
45         exit 1
46 fi
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT/var/lib/clamav
51 install *.cvd $RPM_BUILD_ROOT/var/lib/clamav
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post   -p %{_sbindir}/clamav-post-updatedb
57
58 %files
59 %defattr(644,root,root,755)
60 %attr(644,clamav,root) %verify(not md5 mtime size) /var/lib/clamav/*.cvd
This page took 0.060467 seconds and 3 git commands to generate.