python-genshi-vl.spec 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %define ver 0.6
  3. %define rel 1
  4. Summary: Python toolkit for generation of output for the web
  5. Name: python-genshi
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: http://ftp.edgewall.com/pub/genshi/Genshi-%{version}.tar.gz
  9. License: modified BSD-style License
  10. Group: Development/Libraries
  11. URL: http://genshi.edgewall.org/
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Requires: python-babel >= 0.8 python-setuptools >= 0.6a2
  14. BuildRequires: python-devel
  15. BuildRequires: python-babel >= 0.8 python-setuptools >= 0.6a2
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. Genshi is a Python library that provides an integrated set of components for parsing, generating, and processing HTML, XML or other textual content for output generation on the web.
  20. %prep
  21. %setup -q -n Genshi-%{version}
  22. %build
  23. python setup.py build
  24. %install
  25. %{__rm} -rf ${RPM_BUILD_ROOT}
  26. python setup.py install --root=${RPM_BUILD_ROOT}
  27. %clean
  28. %{__rm} -rf ${RPM_BUILD_ROOT}
  29. %files
  30. %defattr(-,root,root)
  31. %doc COPYING ChangeLog README.txt doc examples
  32. %{python_sitearch}/Genshi-*.egg-info
  33. %{python_sitearch}/genshi
  34. %changelog
  35. * Sun Apr 10 2011 IWAI, Masaharu <iwai@alib.jp> 0.6-1
  36. - new upstream release
  37. - add BuildRequires: python-devel
  38. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.5.1-2
  39. - rebuild with python-2.6
  40. * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.5.1-1
  41. - initial release