]> git.pld-linux.org Git - packages/clamav.git/blob - clamav.spec
- initial release
[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:        1
6 License:        GPL
7 Group:          System/Tools
8 ######          /home/mick3y/rpm/SOURCES/rpm.groups: no such file
9 Source0:        http://www.konarski.edu.pl/~zolw/clam/%{name}-%{version}.tar.gz
10 URL:            http://www.konarski.edu.pl/~zolw/clam.html
11 BuildRequires:  autoconf
12 BuildRequires:  automake
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 #%define                datadir         /var/lib
16
17 %description
18 Clam Antivirus is a powerful anti-virus scanner for Unix. It supports
19 AMaViS, compressed files, uses the virus database from
20 OpenAntivirus.org, and includes a program for auto-updating. The
21 scanner is multithreaded, written in C, and POSIX compliant.
22
23 %description -l pl
24 Clam Antivirus jest potê¿nym skanerem antywirusowym dla systemów
25 uniksowych. Wspiera on AMaViSa, skompresowane pliki, u¿ywa bazy
26 wirusów z OpenAntivirus.org, i posiada system automatycznej
27 aktualizacji. Skaner jest wielow±tkowy, napisany w C i zgodny z
28 POSIXem.
29
30 %prep
31 %setup -q
32
33 %build
34 %configure2_13 \
35         --disable-clamav \
36         --with-datadir=%{_datadir}/clam
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_prefix},%{_bindir},%{_mandir},%{_datadir}/clam}
40
41 %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} mandir=$RPM_BUILD_ROOT%{_mandir} datadir=$RPM_BUILD_ROOT%{_datadir}/clam install
42 gzip -9nf AUTHORS FAQ TODO
43
44 %clean
45 rm -fr $RPM_BUILD_ROOT
46
47 %pre
48 if [ -z "`id -u clanav 2>/dev/null`" ]; then
49  /usr/sbin/useradd -u 95 -r -d /usr/share/clam -s /bin/false -c "ClamAV" -g nobody clamav 1>&2
50 fi
51
52 %post
53  /usr/sbin/userdel clamav
54 fi
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.289937 seconds and 4 git commands to generate.