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 | |
---|
11 | License: BSD |
---|
12 | URL: https://lxml.de/ |
---|
13 | #URL: http://pypi.python.org/pypi/lxml |
---|
14 | Source: https://pypi.python.org/packages/source/l/%{_lxml}/%{_lxml}-%{version}.tar.gz |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | |
---|
17 | BuildRequires: libxml2-devel >= 2.6.21 |
---|
18 | BuildRequires: libxslt-devel >= 1.1.15 |
---|
19 | BuildRequires: python-rpm-macros |
---|
20 | |
---|
21 | BuildRequires: python-devel >= 2.3 |
---|
22 | BuildRequires: python2-rpm-macros |
---|
23 | BuildRequires: python-pyrex |
---|
24 | Requires: python(abi) = %{python_version} |
---|
25 | |
---|
26 | BuildRequires: python3-devel |
---|
27 | BuildRequires: python3-rpm-macros |
---|
28 | |
---|
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 | |
---|
36 | |
---|
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 バインディングです |
---|
40 | Group: programming |
---|
41 | Requires: python(abi) = %{python3_version} |
---|
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 | |
---|
50 | |
---|
51 | %prep |
---|
52 | %setup -q -n %{_lxml}-%{version} |
---|
53 | |
---|
54 | |
---|
55 | %build |
---|
56 | %py2_build |
---|
57 | %py3_build |
---|
58 | |
---|
59 | |
---|
60 | %install |
---|
61 | rm -rf $RPM_BUILD_ROOT |
---|
62 | %py2_install |
---|
63 | %py3_install |
---|
64 | |
---|
65 | find doc/ -type f | xargs chmod -x |
---|
66 | |
---|
67 | |
---|
68 | %clean |
---|
69 | rm -rf $RPM_BUILD_ROOT |
---|
70 | |
---|
71 | |
---|
72 | %files |
---|
73 | %defattr(-,root,root) |
---|
74 | %license LICENSE* |
---|
75 | %doc CHANGES.txt CREDITS.txt README.* TODO.txt |
---|
76 | %doc doc |
---|
77 | %{python2_sitearch}/%{_lxml} |
---|
78 | %{python2_sitearch}/%{_lxml}-*-info |
---|
79 | |
---|
80 | %files -n python3-lxml |
---|
81 | %defattr(-,root,root) |
---|
82 | %license LICENSE* |
---|
83 | %doc CHANGES.txt CREDITS.txt README.* TODO.txt |
---|
84 | %doc doc |
---|
85 | %{python3_sitearch}/%{_lxml} |
---|
86 | %{python3_sitearch}/%{_lxml}-*-info |
---|
87 | |
---|
88 | |
---|
89 | %changelog |
---|
90 | * Wed Aug 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.5.2-2 |
---|
91 | - fixed dependency. |
---|
92 | |
---|
93 | * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.5.2-1 |
---|
94 | - new upstream release. |
---|
95 | |
---|
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 | |
---|
100 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.6-4 |
---|
101 | - rebuild with VineSeed environment |
---|
102 | |
---|
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 | |
---|