]> git.pld-linux.org Git - packages/clamav.git/blob - clamav.spec
- added group clamav
[packages/clamav.git] / clamav.spec
1 Summary:        Antivirus for Unix
2 Summary(pl):    Antywirus dla Unixów
3 Name:           clamav
4 Version:        0.11
5 Release:        3
6 License:        GPL
7 Group:          System/Tools
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)
13
14 #%define                datadir         /var/lib
15
16 %description
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.
21
22 %description -l pl
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
27 POSIXem.
28
29 %prep
30 %setup -q
31
32 %build
33 %configure2_13 \
34         --disable-clamav
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_prefix},%{_bindir},%{_mandir},%{_datadir}/clam}
39
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
42
43 %clean
44 rm -fr $RPM_BUILD_ROOT
45
46 %pre
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
50 fi
51
52 %postun
53  /usr/sbin/userdel clamav
54  /usr/sbin/groupdel clamav
55
56 %files
57 %defattr(644,root,root,755)
58 %{_datadir}
59 %attr(751,root,root)%{_bindir}/
60 #{clamscan,freshclam}
61 %doc *.gz
This page took 0.035825 seconds and 4 git commands to generate.