]> git.pld-linux.org Git - packages/python-genshi.git/commitdiff
- fix without speedups build
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 6 Aug 2008 17:37:23 +0000 (17:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-genshi.spec -> 1.3

python-genshi.spec

index 15945ca1c0a4213854802529213c1618ee13ba81..d0bf80c9cd4432e5de685478f0c1b1c05d42a494 100644 (file)
@@ -18,11 +18,14 @@ Source0:    http://ftp.edgewall.com/pub/genshi/Genshi-%{version}.tar.bz2
 # 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
@@ -38,10 +41,10 @@ export CFLAGS="%{rpmcflags}"
 
 %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}
@@ -54,6 +57,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog
+
 %{py_sitedir}/genshi/*.py[co]
 %dir %{py_sitedir}/genshi/filters
 %{py_sitedir}/genshi/filters/*.py[co]
@@ -64,5 +68,5 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.055478 seconds and 4 git commands to generate.