Fix EL6 build

Fix nose patch
This commit is contained in:
Haikel Guemar 2015-03-06 13:40:08 +01:00 committed by Ralph Bean
parent db79cbad44
commit af5280cb42
2 changed files with 14 additions and 10 deletions

View File

@ -1,14 +1,14 @@
From d1b64a6dc91bc9c350ac503febc34340c94c9066 Mon Sep 17 00:00:00 2001
From: Ralph Bean <rbean@redhat.com>
Date: Wed, 25 Sep 2013 13:28:37 -0400
Subject: [PATCH 3/3] old nose compat
From de33e923b6af308ca9f5aec5e5c3f625dc903f48 Mon Sep 17 00:00:00 2001
From: Haikel Guemar <hguemar@fedoraproject.org>
Date: Tue, 3 Mar 2015 15:28:22 +0100
Subject: [PATCH] Old nose compat
---
setup.cfg | 3 ---
1 file changed, 3 deletions(-)
diff --git a/setup.cfg b/setup.cfg
index 8f1fee7..a8b1d1d 100644
index b140696..eeb3f0b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,9 +1,6 @@
@ -19,8 +19,8 @@ index 8f1fee7..a8b1d1d 100644
-cover-min-percentage = 100
-cover-erase = true
[egg_info]
tag_build =
[flake8]
max-line-length = 99
--
1.8.3.1
2.1.0

View File

@ -1,7 +1,11 @@
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%if 0%{?fedora}
%global with_python3 1
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%endif
%global srcname urllib3