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