# Source0-md5: 822942bbc3109da9f6b472eb8ea4e3a4
URL: http://genshi.edgewall.org/
BuildRequires: python-devel
+BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
-BuildRequires: python-setuptools-devel
BuildRequires: rpmbuild(macros) >= 1.219
+%{!?with_speedups:BuildArch: noarch}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%{!?with_speedups:%{expand:%%global py_sitedir %{py_sitescriptdir}}}
+
%description
Genshi is a Python library that provides an integrated set of
components for parsing, generating, and processing HTML, XML or other
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --skip-build \
+%{__python} setup.py \
%{!?with_speedups:--without-speedups} \
+ install \
+ --optimize=2 \
--root=$RPM_BUILD_ROOT
%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
%files
%defattr(644,root,root,755)
%doc ChangeLog
+
%{py_sitedir}/genshi/*.py[co]
%dir %{py_sitedir}/genshi/filters
%{py_sitedir}/genshi/filters/*.py[co]
%attr(755,root,root) %{py_sitedir}/genshi/_speedups.so
%endif
-# egg info is built with py 2.4 too
+# egg-info is built with setuptools under py 2.4 too
%{py_sitedir}/Genshi-*.egg-info