python-lxml-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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.9.1
  6. Release: 1%{?_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: python2-setuptools
  21. BuildRequires: python-pyrex
  22. BuildRequires: python3-devel
  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. %debug_package
  40. %prep
  41. %setup -q -n %{_lxml}-%{version}
  42. %build
  43. %py2_build
  44. %pip3_build_wheel
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. %py2_install
  48. %pip3_install_wheel
  49. find doc/ -type f | xargs chmod -x
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %files
  53. %defattr(-,root,root)
  54. %license LICENSE*
  55. %doc CHANGES.txt CREDITS.txt README.* TODO.txt
  56. %doc doc
  57. %{python2_sitearch}/%{_lxml}
  58. %{python2_sitearch}/%{_lxml}-*-info
  59. %files -n python3-lxml
  60. %defattr(-,root,root)
  61. %license LICENSE*
  62. %doc CHANGES.txt CREDITS.txt README.* TODO.txt
  63. %doc doc
  64. %{python3_sitearch}/%{_lxml}
  65. %{python3_sitearch}/%{_lxml}-*-info
  66. %changelog
  67. * Tue Nov 01 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.9.1-1
  68. - new upstream release.
  69. * Thu Mar 25 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.6.3-1
  70. - new upstream release.
  71. * Wed Aug 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.5.2-2
  72. - fixed dependency.
  73. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.5.2-1
  74. - new upstream release.
  75. * Sat Sep 09 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.8.0-1
  76. - new upstream release.
  77. - added python3 support.
  78. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.6-4
  79. - rebuild with VineSeed environment
  80. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.6-3
  81. - rebuild with python-2.7.2
  82. * Wed Mar 10 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.2.6-2
  83. - change required version of libxml2-devel for Vine Plus/5
  84. (2.7.2 or later is recomended, but works with 2.6.21 or later)
  85. * Sun Mar 07 2010 Shu KONNO <owa@bg.wakwak.com> 2.2.6-1
  86. - initial build for vine linux