]> git.pld-linux.org Git - packages/clamav-database-phish.git/blame - clamav-database-phish.spec
- new
[packages/clamav-database-phish.git] / clamav-database-phish.spec
CommitLineData
30e5e930
ER
1%define database_version 20080416
2%define rel 0.2
3Summary: Phish database for clamav
4Name: clamav-database-phish
5Version: 0.1
6Release: %{database_version}.%{rel}
7License: GPL
8Group: Applications/Databases
9Source0: http://www.sanesecurity.com/clamav/scamsigs/phish.ndb.gz
10# Source0-md5: 4ff089e09706b9212cd7b63a3b7e87ea
11Source1: http://www.sanesecurity.co.uk/clamav/phish_sigtest.txt
12# Source1-md5: d7a251c62cdd2f1b78a33476816447f3
13URL: http://www.sanesecurity.co.uk/clamav/
14BuildRequires: clamav
15Requires: clamav
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Phish database for ClamAV which will help detect some types of stock, lottery,
21419 and some image spams that are around at the moment. (Updated
22%{database_version}).
23
24%prep
25%setup -qcT
26%{__gzip} -dc %{SOURCE0} > $(basename %{SOURCE0} .gz)
27
28%build
29# test
30res=$(clamscan %{SOURCE1} --database phish.ndb | head -n1 | sed -e 's,^.*: ,,')
31if [ "$res" != "Html.Phishing.Sanesecurity.TestSig FOUND" ]; then
32 : Scan test failed: [$res]
33 exit 1
34fi
35
36%install
37rm -rf $RPM_BUILD_ROOT
38install -d $RPM_BUILD_ROOT/var/lib/clamav
39install *.ndb $RPM_BUILD_ROOT/var/lib/clamav
40
41%clean
42rm -rf $RPM_BUILD_ROOT
43
44%files
45%defattr(644,root,root,755)
46%attr(644,clamav,root) %verify(not md5 mtime size) /var/lib/clamav/*.ndb
This page took 0.065936 seconds and 4 git commands to generate.