python-lxml-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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: programming
  6. Version: 4.5.2
  7. Release: 1%{?_dist_release}
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: BSD
  11. URL: https://lxml.de/
  12. #URL: http://pypi.python.org/pypi/lxml
  13. Source: https://pypi.python.org/packages/source/l/%{_lxml}/%{_lxml}-%{version}.tar.gz
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: libxml2-devel >= 2.6.21
  16. BuildRequires: libxslt-devel >= 1.1.15
  17. BuildRequires: python-rpm-macros
  18. BuildRequires: python-devel >= 2.3
  19. BuildRequires: python2-rpm-macros
  20. BuildRequires: python-pyrex
  21. BuildRequires: python3-devel
  22. BuildRequires: python3-rpm-macros
  23. %description
  24. lxml is a Pythonic binding for the libxml2_ and libxslt_ libraries. It is
  25. unique in that it combines the speed and feature completeness of these
  26. libraries with the simplicity of a native Python API, mostly compatible but
  27. superior to the well-known ElementTree_ API. See the introduction_ for more
  28. information about background and goals.
  29. %package -n python3-lxml
  30. Summary: lxml is a Pythonic binding for the libxml2 and libxslt libraries
  31. Summary(ja): lxml は libxml2 と libxslt の Python バインディングです
  32. Group: programming
  33. %description -n python3-lxml
  34. lxml is a Pythonic binding for the libxml2_ and libxslt_ libraries. It is
  35. unique in that it combines the speed and feature completeness of these
  36. libraries with the simplicity of a native Python API, mostly compatible but
  37. superior to the well-known ElementTree_ API. See the introduction_ for more
  38. information about background and goals.
  39. %prep
  40. %setup -q -n %{_lxml}-%{version}
  41. %build
  42. %py2_build
  43. %py3_build
  44. %install
  45. rm -rf $RPM_BUILD_ROOT
  46. %py2_install
  47. %py3_install
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files
  51. %defattr(-,root,root)
  52. %license LICENSE*
  53. %doc CHANGES.txt CREDITS.txt README.* TODO.txt
  54. %doc doc
  55. %{python2_sitearch}/%{_lxml}
  56. %{python2_sitearch}/%{_lxml}-*-info
  57. %files -n python3-lxml
  58. %defattr(-,root,root)
  59. %license LICENSE*
  60. %doc CHANGES.txt CREDITS.txt README.* TODO.txt
  61. %doc doc
  62. %{python3_sitearch}/%{_lxml}
  63. %{python3_sitearch}/%{_lxml}-*-info
  64. %changelog
  65. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.5.2-1
  66. - new upstream release.
  67. * Sat Sep 09 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.8.0-1
  68. - new upstream release.
  69. - added python3 support.
  70. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.6-4
  71. - rebuild with VineSeed environment
  72. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.6-3
  73. - rebuild with python-2.7.2
  74. * Wed Mar 10 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.2.6-2
  75. - change required version of libxml2-devel for Vine Plus/5
  76. (2.7.2 or later is recomended, but works with 2.6.21 or later)
  77. * Sun Mar 07 2010 Shu KONNO <owa@bg.wakwak.com> 2.2.6-1
  78. - initial build for vine linux