python-lxml-vl.spec 3.1 KB

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