]>
Commit | Line | Data |
---|---|---|
de705fd4 JB |
1 | Summary: AntiVirus Scanner |
2 | Summary(pl.UTF-8): Skaner antywirusowy | |
3 | Name: avscan | |
4 | Version: 5.1.1 | |
cb3b97f0 | 5 | Release: 7 |
de705fd4 JB |
6 | License: GPL v2 with OpenSSL exception |
7 | Group: X11/Applications | |
8 | Source0: http://wolfsinger.com/~wolfpack/packages/%{name}-%{version}-openssl.tar.bz2 | |
9 | # Source0-md5: e8e76867fbdf4ddef9504b604db95667 | |
10 | Patch0: %{name}-verbose.patch | |
b3cb6093 | 11 | Patch1: %{name}-clamav.patch |
de705fd4 JB |
12 | URL: http://freecode.com/projects/avscan |
13 | BuildRequires: clamav-devel | |
14 | BuildRequires: endeavour-devel >= 3 | |
15 | BuildRequires: gtk+-devel >= 1.2 | |
16 | BuildRequires: libstdc++-devel | |
17 | Requires: endeavour >= 3 | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | AVScan is an anti-virus scanner that uses the ClamAV library | |
22 | (libclamav) and GTK+ 1.2. It allows you to create a list of scan items | |
23 | for frequently scanned locations and features on-demand virus database | |
24 | updating, manual drag and drop object scanning, and pausing and | |
25 | resuming of scanning, all in a simple GUI environment. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | AVScan to skaner antywirusowy wykorzystujący bibliotekę narzędzia | |
29 | ClamAV (libclamav) oraz GTK+ 1.2. Pozwala na tworzenie list elementów | |
30 | do regularnego skanowania, umożliwia uaktualnianie na żądanie bazy | |
31 | danych wirusów, ręczne przeciąganie obiektów do przeskanowania, | |
32 | zatrzymywanie i wznawianie skanowania - wszystko w prostym środowisku | |
33 | graficznym. | |
34 | ||
35 | %prep | |
36 | %setup -q -n %{name}-%{version}-openssl | |
37 | %patch0 -p1 | |
b3cb6093 | 38 | %patch1 -p1 |
de705fd4 JB |
39 | |
40 | %build | |
41 | ./configure Linux | |
42 | %{__make} \ | |
43 | CC="%{__cc}" \ | |
44 | CPP="%{__cxx}" \ | |
45 | CFLAGS="%{rpmcflags} -Wall \ | |
46 | `gtk-config --cflags` \ | |
47 | -DHAVE_CLAMAV `clamav-config --cflags` \ | |
48 | -DHAVE_LIBENDEAVOUR2 `endeavour2-base-config --cflags`" | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT%{_bindir} | |
53 | ||
54 | %{__make} install \ | |
55 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ | |
56 | EDV_BIN_DIR=$RPM_BUILD_ROOT%{_libdir}/endeavour2/bin \ | |
57 | MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \ | |
58 | INSTBINFLAGS="-m755" | |
59 | ||
60 | # fix symlink to buildroot | |
61 | ln -sf ../%{_lib}/endeavour2/bin/avscan $RPM_BUILD_ROOT%{_bindir}/avscan | |
62 | ||
63 | bzip2 -d $RPM_BUILD_ROOT%{_mandir}/man1/*.bz2 | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc AUTHORS LICENSE README | |
71 | %attr(755,root,root) %{_bindir}/avscan | |
72 | %attr(755,root,root) %{_libdir}/endeavour2/bin/avscan | |
73 | %{_datadir}/endeavour2/help/avscan | |
74 | %{_mandir}/man1/avscan.1* |