2 # - R: clamav? library requiring daemon???
3 Summary: A Python interface to libclamav
4 Summary(pl.UTF-8): Interfejs Pythona do libclamav
9 Group: Libraries/Python
10 Source0: http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz
11 # Source0-md5: 9e1f29ea118bac87223ff4df3c077556
12 Patch0: %{name}-new-api.patch
13 URL: http://xael.org/norman/python/pyclamav/index.html
14 BuildRequires: clamav-devel >= 0.95
15 BuildRequires: pkgconfig
16 BuildRequires: python >= 1:2.4
17 BuildRequires: python-devel >= 1:2.4
18 BuildRequires: python-modules >= 1:2.4
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.714
21 Requires: clamav >= 0.95
23 %pyrequires_eq python-modules
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A Python interface to libclamav.
29 %description -l pl.UTF-8
30 Interfejs Pythona do libclamav.
33 %setup -q -n pyclamav-%{version}
37 CFLAGS="%{rpmcflags} $(pkg-config --cflags libclamav)"
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46 cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc README.txt CHANGELOG
54 %attr(755,root,root) %{py_sitedir}/pyclamav.so
55 %dir %{_examplesdir}/%{name}-%{version}
56 %{_examplesdir}/%{name}-%{version}/example.py
57 %if "%{py_ver}" > "2.4"
58 %{py_sitedir}/pyclamav-%{version}-py*.egg-info