[python-pika/el5] make pika work on el5

icheishvili icheishvili at fedoraproject.org
Sun May 13 23:20:17 UTC 2012


commit 71f882bc3de84cf8bc2443e20783d506bf5f8dfa
Author: Ilia Cheishvili <ilia.cheishvili at gmail.com>
Date:   Sun May 13 17:20:05 2012 -0600

    make pika work on el5

 python-pika.spec |   47 ++++++++++++++++++++++++++++++++++-------------
 1 files changed, 34 insertions(+), 13 deletions(-)
---
diff --git a/python-pika.spec b/python-pika.spec
index f0e8f1d..aeccabc 100644
--- a/python-pika.spec
+++ b/python-pika.spec
@@ -1,17 +1,25 @@
+%if 0%{?rhel} <= 5
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%else
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%endif
 %define short_name pika
 
 Name:           python-%{short_name}
-Version:        0.5.2
-Release:        1%{?dist}
-Summary:        AMQP 0-8 and 0-9-1 client library for Python
+Version:        0.9.5
+Release:        3%{?dist}
+Summary:        AMQP 0-9-1 client library for Python
 
 Group:          Development/Libraries
 License:        MPLv1.1 or GPLv2
-URL:            http://github.com/tonyg/pika
-# The tarball comes from here: http://github.com/tonyg/pika/tarball/v0.5.2
+URL:            http://github.com/%{short_name}/%{short_name}
+# The tarball comes from here:
+# http://github.com/%{short_name}/%{short_name}/tarball/v%{version}
 # GitHub has layers of redirection and renames that make this a troublesome
 # URL to include directly.
-Source0:        tonyg-%{short_name}-v%{version}-0-gba01f9e.tar.gz
+Source0:        %{short_name}-%{short_name}-v%{version}-0-g120fdea.tar.gz
+Patch0:         blocking_connection.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
@@ -20,15 +28,14 @@ BuildRequires:  python-devel
 Requires:       python
 
 %description
-Pika is a pure-Python implementation of the AMQP 0-8 protocol (with an
-0-9-1 implementation on a separate git branch, for now) that tries to
-stay fairly independent of the underlying network support library. It
-also tries to stay neutral as to programming style, supporting (where
-possible) both synchronous and asynchronous approaches.
+Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
+tries to stay fairly independent of the underlying network support
+library.
 
 
 %prep
-%setup -q -n tonyg-%{short_name}-d7e7565
+%setup -q -n %{short_name}-%{short_name}-120fdea
+%patch0 -p0
 
 
 %build
@@ -52,10 +59,24 @@ possible) both synchronous and asynchronous approaches.
 %doc LICENSE-MPL-Pika
 %doc README.md
 %doc THANKS
-%doc TODO
 %doc examples
 
 %changelog
+* Sun May 13 2012 Ilia Cheishvili <dan at danielaharon.com> - 0.9.5-3
+- Make pika work on el5
+
+* Tue Dec 13 2011 Daniel Aharon <dan at danielaharon.com> - 0.9.5-2
+- Patch pika/adapters/blocking_connection.py
+
+* Sun Apr 3 2011 Ilia Cheishvili <ilia.cheishvili at gmail.com> - 0.9.5-1
+- Upgrade to version 0.9.5
+
+* Sun Mar 6 2011 Ilia Cheishvili <ilia.cheishvili at gmail.com> - 0.9.4-1
+- Upgrade to version 0.9.4
+
+* Sat Feb 19 2011 Ilia Cheishvili <ilia.cheishvili at gmail.com> - 0.9.3-1
+- Upgrade to version 0.9.3
+
 * Sat Oct 2 2010 Ilia Cheishvili <ilia.cheishvili at gmail.com> - 0.5.2-1
 - Initial Package
 


More information about the scm-commits mailing list