python-genshi-vl.spec 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %define ver 0.5.1
  3. %define rel 2
  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.bz2
  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-babel >= 0.8 python-setuptools >= 0.6a2
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. 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.
  19. %prep
  20. %setup -q -n Genshi-%{version}
  21. %build
  22. python setup.py build
  23. %install
  24. %{__rm} -rf ${RPM_BUILD_ROOT}
  25. python setup.py install --root=${RPM_BUILD_ROOT}
  26. %clean
  27. %{__rm} -rf ${RPM_BUILD_ROOT}
  28. %files
  29. %defattr(-,root,root)
  30. %doc COPYING ChangeLog README.txt doc examples
  31. %{python_sitearch}/Genshi-*.egg-info
  32. %{python_sitearch}/genshi
  33. %changelog
  34. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.5.1-2
  35. - rebuild with python-2.6
  36. * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.5.1-1
  37. - initial release