]> git.pld-linux.org Git - packages/avscan.git/blob - avscan.spec
Release 7 (by relup.sh)
[packages/avscan.git] / avscan.spec
1 Summary:        AntiVirus Scanner
2 Summary(pl.UTF-8):      Skaner antywirusowy
3 Name:           avscan
4 Version:        5.1.1
5 Release:        4
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
11 Patch1:         %{name}-clamav.patch
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
38 %patch1 -p1
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*
This page took 0.089885 seconds and 3 git commands to generate.