[python-genshi] Build with the optional C speed-enhancements

Luke Macken lmacken at fedoraproject.org
Thu Nov 18 21:04:13 UTC 2010


commit ed9bf0463126290f87d77dae2ea6dcc2283dd1d5
Author: Luke Macken <lmacken at redhat.com>
Date:   Thu Nov 18 16:04:09 2010 -0500

    Build with the optional C speed-enhancements

 python-genshi.spec |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/python-genshi.spec b/python-genshi.spec
index e56b886..67b8ddd 100644
--- a/python-genshi.spec
+++ b/python-genshi.spec
@@ -1,6 +1,6 @@
 Name:           python-genshi
 Version:        0.6
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Toolkit for stream-based generation of output for the web
 
 Group:          Development/Languages
@@ -9,7 +9,6 @@ URL:            http://genshi.edgewall.org/
 
 Source0:        http://ftp.edgewall.com/pub/genshi/Genshi-%{version}.tar.gz
 
-BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  python-devel
@@ -25,17 +24,15 @@ a template language, which is heavily inspired by Kid.
 
 %prep
 %setup0 -q -n Genshi-%{version}
-#patch0 -p0 -b .length_hint
-#patch1 -p1
 
 find examples -type f | xargs chmod a-x
 
 %build
-%{__python} setup.py build
+%{__python} setup.py --with-speedups build
 
 %install
 rm -rf %{buildroot}
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%{__python} setup.py --with-speedups install -O1 --skip-build --root %{buildroot}
 
 %check
 %{__python} setup.py test
@@ -46,10 +43,13 @@ rm -rf %{buildroot}
 %files
 %defattr(-,root,root,-)
 %doc ChangeLog COPYING doc examples README.txt 
-%{python_sitelib}/Genshi-%{version}-py*.egg-info
-%{python_sitelib}/genshi
+%{python_sitearch}/Genshi-%{version}-py*.egg-info
+%{python_sitearch}/genshi
 
 %changelog
+* Thu Nov 18 2010 Luke Macken <lmacken at redhat.com> - 0.6-2
+- Build with the optional C speed-enhancements
+
 * Sun Aug 22 2010 Jeffrey C. Ollie <jeff at ocjtech.us> - 0.6-1
 - Version 0.6
 - http://svn.edgewall.org/repos/genshi/tags/0.6.0/


More information about the scm-commits mailing list