X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpython-lxml.git;a=blobdiff_plain;f=python-lxml.spec;h=a304bd52e98a12d00bfd8a65b9e1b1afce3ff1a3;hp=e4f485611ef6c3e47265f3fe4720f9d7cdaca430;hb=0f893bb9ad46c1ebf8e587a60db7405248c40d97;hpb=2fa45afdc8dc321bb497d3111c9f0fe9082dfeee diff --git a/python-lxml.spec b/python-lxml.spec index e4f4856..a304bd5 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -4,13 +4,17 @@ Summary: A Pythonic binding for the libxml2 and libxslt libraries Name: python-%{module} Version: 0.8 -Release: 0.1 +Release: 1 License: BSD Group: Development/Languages/Python Source0: http://codespeak.net/lxml/%{module}-%{version}.tgz # Source0-md5: b156da08fea2af7b34774d5f9c4fa206 +Patch0: %{name}-path.patch URL: http://codespeak.net/lxml/ -BuildRequires: python +BuildRequires: libxml2-devel +BuildRequires: libxslt-devel +BuildRequires: python-Pyrex +BuildRequires: python-devel BuildRequires: rpmbuild(macros) >= 1.219 BuildRequires: unzip BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -20,14 +24,13 @@ lxml is a Pythonic binding for the libxml2 and libxslt libraries. %prep %setup -q -n %{module}-%{version} +%patch0 -p1 %build python setup.py build %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/ElementTree-%{version}-py%{py_ver}.egg-info python setup.py install \ --root=$RPM_BUILD_ROOT \ @@ -41,5 +44,9 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc doc/* CHANGES.txt CREDITS.txt TODO.txt -%{py_sitescriptdir}/%{module} -%{py_sitescriptdir}/ElementTree* +%dir %{py_sitedir}/lxml +%{py_sitedir}/lxml/*.py[co] +%attr(755,root,root) %{py_sitedir}/lxml/*.so +%dir %{py_sitedir}/lxml/tests +%{py_sitedir}/lxml/tests/*.py[co] +%{py_sitedir}/lxml/tests/*.xml