[python-docker-py] versioned python-requests only for f21+

Lokesh Mandvekar lsm5 at fedoraproject.org
Thu Oct 23 17:06:52 UTC 2014


commit 51b69596cf26864f3385c6b2aff0636fe29da8e5
Author: Lokesh Mandvekar <lsm5 at fedoraproject.org>
Date:   Thu Oct 23 10:06:16 2014 -0700

    versioned python-requests only for f21+
    
    Signed-off-by: Lokesh Mandvekar <lsm5 at fedoraproject.org>

 python-docker-py.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/python-docker-py.spec b/python-docker-py.spec
index 1b3ad25..75f52e4 100644
--- a/python-docker-py.spec
+++ b/python-docker-py.spec
@@ -3,7 +3,7 @@
 
 Name:           python-docker-py
 Version:        0.5.3
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        An API client for docker written in Python
 License:        ASL 2.0
 URL:            http://www.docker.com
@@ -14,7 +14,6 @@ Source0:        https://pypi.python.org/packages/source/d/docker-py/docker-py-%{
 BuildRequires:  python2-devel
 BuildRequires:  python-setuptools
 BuildRequires:  python-tools
-BuildRequires:  python-requests >= 2.2.1
 BuildRequires:  python-websocket-client >= 0.11.0
 
 # Resolves: rhbz#1132604 (epel7 only)
@@ -26,7 +25,14 @@ BuildRequires:  docker-io
 Requires:       docker-io
 %endif
 
+%if 0%{?fedora} >= 21
+BuildRequires:  python-requests >= 2.2.1
 Requires:       python-requests >= 2.2.1
+%else
+BuildRequires:  python-requests
+Requires:       python-requests
+%endif
+
 Requires:       python-websocket-client >= 0.11.0
 Requires:       python-six >= 1.3.0
 
@@ -50,6 +56,9 @@ Requires:       python-six >= 1.3.0
 %{python_sitelib}/docker_py-%{version}-py2*.egg-info/*
 
 %changelog
+* Thu Oct 23 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0.5.3-2
+- versioned python-requests req only for f21+
+
 * Wed Oct 22 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0.5.3-1
 - Resolves: rhbz#1153991 - update to 0.5.3
 


More information about the scm-commits mailing list