4 Summary: A Pythonic binding for the libxml2 and libxslt libraries
9 Group: Development/Languages/Python
10 Source0: http://codespeak.net/lxml/%{module}-%{version}.tgz
11 # Source0-md5: b156da08fea2af7b34774d5f9c4fa206
12 Patch0: %{name}-path.patch
13 URL: http://codespeak.net/lxml/
14 BuildRequires: libxml2-devel
15 BuildRequires: libxslt-devel
16 BuildRequires: python-Pyrex
17 BuildRequires: python-devel
18 BuildRequires: rpmbuild(macros) >= 1.219
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 lxml is a Pythonic binding for the libxml2 and libxslt libraries.
26 %setup -q -n %{module}-%{version}
33 rm -rf $RPM_BUILD_ROOT
35 python setup.py install \
36 --root=$RPM_BUILD_ROOT \
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
46 %doc doc/* CHANGES.txt CREDITS.txt TODO.txt
47 %dir %{py_sitedir}/lxml
48 %{py_sitedir}/lxml/*.py[co]
49 %attr(755,root,root) %{py_sitedir}/lxml/*.so
50 %dir %{py_sitedir}/lxml/tests
51 %{py_sitedir}/lxml/tests/*.py[co]
52 %{py_sitedir}/lxml/tests/*.xml