]>
Commit | Line | Data |
---|---|---|
7321ac76 AM |
1 | # |
2 | %define module lxml | |
3 | # | |
4 | Summary: A Pythonic binding for the libxml2 and libxslt libraries | |
e1640e5a | 5 | Summary(pl.UTF-8): Pythonowe wiązanie do bibliotek libxml2 i libxslt |
7321ac76 | 6 | Name: python-%{module} |
c1d4e651 | 7 | Version: 2.2.6 |
bc31b8eb | 8 | Release: 1 |
7321ac76 | 9 | License: BSD |
eb4ef173 | 10 | Group: Libraries/Python |
7321ac76 | 11 | Source0: http://codespeak.net/lxml/%{module}-%{version}.tgz |
c1d4e651 | 12 | # Source0-md5: b1f700fb22d7ee9b977ee3eceb65b20c |
7321ac76 | 13 | URL: http://codespeak.net/lxml/ |
0f893bb9 AM |
14 | BuildRequires: libxml2-devel |
15 | BuildRequires: libxslt-devel | |
0f893bb9 | 16 | BuildRequires: python-devel |
7217b13f | 17 | BuildRequires: python-modules |
18 | BuildRequires: rpm-pythonprov | |
7321ac76 AM |
19 | BuildRequires: rpmbuild(macros) >= 1.219 |
20 | BuildRequires: unzip | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | lxml is a Pythonic binding for the libxml2 and libxslt libraries. | |
25 | ||
8b26c81f JR |
26 | %description -l pl.UTF-8 |
27 | lxml to pythonowe wiązanie do bibliotek libxml2 i libxslt. | |
459884ee | 28 | |
7321ac76 AM |
29 | %prep |
30 | %setup -q -n %{module}-%{version} | |
31 | ||
32 | %build | |
33 | python setup.py build | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
7321ac76 AM |
37 | |
38 | python setup.py install \ | |
39 | --root=$RPM_BUILD_ROOT \ | |
40 | --optimize=2 | |
41 | ||
42 | %py_postclean | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc doc/* CHANGES.txt CREDITS.txt TODO.txt | |
0f893bb9 AM |
50 | %dir %{py_sitedir}/lxml |
51 | %{py_sitedir}/lxml/*.py[co] | |
75dd257f MB |
52 | %dir %{py_sitedir}/lxml/html |
53 | %{py_sitedir}/lxml/html/*.py[co] | |
54 | %attr(755,root,root) %{py_sitedir}/lxml/etree.so | |
55 | %attr(755,root,root) %{py_sitedir}/lxml/objectify.so | |
31980435 | 56 | %{py_sitedir}/lxml-*.egg-info |