Summary: A Python interface to libclamav
Summary(pl): Interfejs Pythona do libclamav
Name: python-pyclamav
-Version: 0.2.2
-Release: 0.1
+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: 0b274b73f71b8e4481c8fb30fd1c2bb2
+# Source0-md5: cf8e0e7850c417c76134cb4b11856e2c
URL: http://xael.org/norman/python/pyclamav/index.html
BuildRequires: clamav-devel >= 0:0.80
BuildRequires: python
%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
+%doc README.txt CHANGELOG
%attr(755,root,root) %{py_sitedir}/*.so
+%dir %{_examplesdir}/%{name}-%{version}
+%{_examplesdir}/%{name}-%{version}/example.py
##%{py_sitedir}/*.py[co]