python-lxml.spec 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. %define _lxml lxml
  2. Summary: lxml is a Pythonic binding for the libxml2 and libxslt libraries
  3. Summary(ja): lxml は libxml2 と libxslt の Python バインディングです
  4. Name: python-%{_lxml}
  5. Group: Development/Libraries
  6. Version: 2.2.6
  7. Release: 2%{?_dist_release}
  8. License: BSD
  9. URL: http://codespeak.net/lxml
  10. #URL: http://pypi.python.org/pypi/lxml
  11. Source: http://pypi.python.org/packages/source/l/%{_lxml}/%{_lxml}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. BuildRequires: libxml2-devel >= 2.6.21
  16. BuildRequires: libxslt-devel >= 1.1.15
  17. BuildRequires: python-devel >= 2.3
  18. BuildRequires: python-pyrex
  19. %description
  20. lxml is a Pythonic binding for the libxml2_ and libxslt_ libraries. It is
  21. unique in that it combines the speed and feature completeness of these
  22. libraries with the simplicity of a native Python API, mostly compatible but
  23. superior to the well-known ElementTree_ API. See the introduction_ for more
  24. information about background and goals.
  25. %prep
  26. %setup -q -n %{_lxml}-%{version}
  27. %build
  28. %{__python} setup.py build
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. %{__python} setup.py install --root=$RPM_BUILD_ROOT
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %files
  35. %defattr(-,root,root)
  36. %doc CHANGES.txt CREDITS.txt LICENSES.txt README.txt TODO.txt
  37. %doc doc
  38. %{python_sitearch}/%{_lxml}
  39. %{python_sitearch}/%{_lxml}-*-info
  40. %changelog
  41. * Wed Mar 10 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.2.6-2
  42. - change required version of libxml2-devel for Vine Plus/5
  43. (2.7.2 or later is recomended, but works with 2.6.21 or later)
  44. * Sun Mar 07 2010 Shu KONNO <owa@bg.wakwak.com> 2.2.6-1
  45. - initial build for vine linux