Summary: A Python interface to libclamav Summary(pl): Interfejs Pythona do libclamav Name: python-pyclamav Version: 0.3.1 Release: 1 License: GPL Group: Libraries/Python Source0: http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz # Source0-md5: cf8e0e7850c417c76134cb4b11856e2c URL: http://xael.org/norman/python/pyclamav/index.html BuildRequires: clamav-devel >= 0:0.80 BuildRequires: python BuildRequires: python-devel >= 1:2.4 Requires: clamav >= 0:0.80 Requires: python %pyrequires_eq python-modules BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description A Python interface to libclamav. %description -l pl Interfejs Pythona do libclamav. %prep %setup -q -n pyclamav-%{version} %build env CFLAGS="%{rpmcflags}" %{_bindir}/python setup.py build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} python -- setup.py install \ --root=$RPM_BUILD_ROOT \ --optimize=2 cp -aR example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README.txt CHANGELOG %attr(755,root,root) %{py_sitedir}/*.so %dir %{_examplesdir}/%{name}-%{version} %{_examplesdir}/%{name}-%{version}/example.py ##%{py_sitedir}/*.py[co]