From 4578d9609bf969ef99359af1d621b25e9dd68e35 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 7 Mar 2014 09:34:31 -0500 Subject: [PATCH] Fix macros for epel7. --- python-requests-oauthlib.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/python-requests-oauthlib.spec b/python-requests-oauthlib.spec index 3a54193..7aa98e4 100644 --- a/python-requests-oauthlib.spec +++ b/python-requests-oauthlib.spec @@ -1,11 +1,20 @@ -%bcond_without python3 +%if 0%{?el6}%{?el7} + # python3 and python version related macros + # required to build python3- subpackage + # are not available in el6 and el7 + %global with_python3 0 + %global __python2 %{__python} + %global python2_sitelib %{python_sitelib} +%else + %bcond_without python3 +%endif %global distname requests-oauthlib %global modname requests_oauthlib Name: python-requests-oauthlib Version: 0.4.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: OAuthlib authentication support for Requests. Group: Development/Libraries @@ -99,6 +108,10 @@ popd %endif %changelog +* Mon Mar 3 2014 Jakub Dorňák - 0.4.0-4 +- python3 and python version related macros required to build + python3- subpackage are not available in el6 and el7 + * Fri Nov 29 2013 Jakub Dorňák - 0.4.0-3 - added python3 subpackage