From 3e51fab75be55adaa95be6355c8bada855fa1c5c Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 3 Aug 2012 18:08:54 -0400 Subject: [PATCH] force regeneration of .c files by Cython (needed for python 3.3 support) --- python-zmq.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python-zmq.spec b/python-zmq.spec index 077e74a..674f34a 100644 --- a/python-zmq.spec +++ b/python-zmq.spec @@ -19,7 +19,7 @@ Name: python-zmq Version: 2.2.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Software library for fast, message-based applications Group: Development/Libraries @@ -36,6 +36,7 @@ BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: zeromq-devel BuildRequires: python-nose +BuildRequires: Cython %if 0%{?with_python3} BuildRequires: python3-devel @@ -108,6 +109,11 @@ This package contains the testsuite for the python bindings. %prep %setup -q -n %{srcname}-%{version} + +# forcibly regenerate the Cython-generated .c files: +find -name "*.c" -delete +%{__python} setup.py cython + # remove shebangs for lib in zmq/eventloop/*.py; do sed '/\/usr\/bin\/env/d' $lib > $lib.new && @@ -207,6 +213,9 @@ popd %changelog +* Fri Aug 3 2012 David Malcolm - 2.2.0-4 +- force regeneration of .c files by Cython (needed for python 3.3 support) + * Fri Aug 3 2012 David Malcolm - 2.2.0-3 - remove rhel logic from with_python3 conditional