]>
Commit | Line | Data |
---|---|---|
7321ac76 AM |
1 | # |
2 | %define module lxml | |
3 | # | |
4 | Summary: A Pythonic binding for the libxml2 and libxslt libraries | |
8b26c81f | 5 | Summary(pl.UTF-8): Pythonowe wiązanie do bibliotek libxml2 i libxslt |
7321ac76 AM |
6 | Name: python-%{module} |
7 | Version: 0.8 | |
2c6e25e7 | 8 | Release: 2 |
7321ac76 AM |
9 | License: BSD |
10 | Group: Development/Languages/Python | |
11 | Source0: http://codespeak.net/lxml/%{module}-%{version}.tgz | |
12 | # Source0-md5: b156da08fea2af7b34774d5f9c4fa206 | |
0f893bb9 | 13 | Patch0: %{name}-path.patch |
7321ac76 | 14 | URL: http://codespeak.net/lxml/ |
0f893bb9 AM |
15 | BuildRequires: libxml2-devel |
16 | BuildRequires: libxslt-devel | |
2c6e25e7 | 17 | BuildRequires: python-Pyrex >= 0.9.4.2 |
0f893bb9 | 18 | BuildRequires: python-devel |
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} | |
0f893bb9 | 31 | %patch0 -p1 |
7321ac76 AM |
32 | |
33 | %build | |
34 | python setup.py build | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
7321ac76 AM |
38 | |
39 | python setup.py install \ | |
40 | --root=$RPM_BUILD_ROOT \ | |
41 | --optimize=2 | |
42 | ||
43 | %py_postclean | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc doc/* CHANGES.txt CREDITS.txt TODO.txt | |
0f893bb9 AM |
51 | %dir %{py_sitedir}/lxml |
52 | %{py_sitedir}/lxml/*.py[co] | |
53 | %attr(755,root,root) %{py_sitedir}/lxml/*.so | |
54 | %dir %{py_sitedir}/lxml/tests | |
55 | %{py_sitedir}/lxml/tests/*.py[co] | |
56 | %{py_sitedir}/lxml/tests/*.xml |