python-pyclamav-vl.spec 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Summary: a quick hack to use libclamav with python
  2. Name: python-pyclamav
  3. Version: 0.4.1
  4. Release: 1%{?_dist_release}
  5. License: GPLv2
  6. Group: Development/Libraries
  7. URL: http://xael.org/norman/python/pyclamav/
  8. Source0: pyclamav-%{version}.tar.gz
  9. ## from Debian python-clamav 0.4.1-5
  10. # http://svn.debian.org/viewsvn/python-modules/packages/python-clamav/trunk/debian/patches/clamav-095-compat.patch?revision=15795&view=markup
  11. Patch0: clamav-095-compat.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  13. BuildRequires: python-devel
  14. BuildRequires: clamav-devel >= 0.95
  15. %description
  16. pyClamAV is a python binding to libclamav written in C. By using pyClamAV,
  17. you can add virus detection capabilities to your python software in an
  18. efficient and easy way.
  19. %prep
  20. %setup -q -n pyclamav-%{version}
  21. %patch0 -p1 -b .debian
  22. %build
  23. %__python setup.py build
  24. %install
  25. %__rm -rf %{buildroot}
  26. %__python setup.py install --root %{buildroot}
  27. %clean
  28. %__rm -rf %{buildroot}
  29. %files
  30. %defattr(-,root,root,-)
  31. %doc CHANGELOG README.txt gpl.txt
  32. %{python_sitearch}/pyclamav*
  33. %changelog
  34. * Mon Mar 28 2011 IWAI, Masaharu <iwai@alib.jp> 0.4.1-1
  35. - Initial build.
  36. - add clamav-095-compat.patch (Patch0) from Debian python-clamav 0.4.1-5