1 Summary: Antivirus for Unix
2 Summary(pl): Antywirus dla Unixów
8 Source0: http://www.konarski.edu.pl/~zolw/clam/%{name}-%{version}.tar.gz
9 URL: http://www.konarski.edu.pl/~zolw/clam.html
10 BuildRequires: autoconf
11 BuildRequires: automake
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 #%define datadir /var/lib
17 Clam Antivirus is a powerful anti-virus scanner for Unix. It supports
18 AMaViS, compressed files, uses the virus database from
19 OpenAntivirus.org, and includes a program for auto-updating. The
20 scanner is multithreaded, written in C, and POSIX compliant.
23 Clam Antivirus jest potê¿nym skanerem antywirusowym dla systemów
24 uniksowych. Wspiera on AMaViSa, skompresowane pliki, u¿ywa bazy
25 wirusów z OpenAntivirus.org, i posiada system automatycznej
26 aktualizacji. Skaner jest wielow±tkowy, napisany w C i zgodny z
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_prefix},%{_bindir},%{_mandir},%{_datadir}/clam}
40 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} mandir=$RPM_BUILD_ROOT%{_mandir} datadir=$RPM_BUILD_ROOT%{_datadir}/clam install
41 gzip -9nf AUTHORS FAQ TODO
44 rm -fr $RPM_BUILD_ROOT
47 if [ -z "`id -u clamav 2>/dev/null`" ]; then
48 /usr/sbin/groupadd -g 200 clamav
49 /usr/sbin/useradd -M -g clamav -r -d /usr/share/clam -s /bin/false -c "ClamAV" clamav 1>&2
53 /usr/sbin/userdel clamav
54 /usr/sbin/groupdel clamav
57 %defattr(644,root,root,755)
59 %attr(751,root,root)%{_bindir}/