From dd09f955ef4ffba72a527535e891e619667ed7dee2eb3b1d1d612614832974e9 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 30 Apr 2012 14:29:18 +0000 Subject: [PATCH] Accepting request 116069 from devel:languages:python3 Fix building python 3 package on openSUSE 11.4 x86_64 (forwarded request 116068 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/116069 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=16 --- python-pip.changes | 5 +++++ python3-pip.changes | 5 +++++ python3-pip.spec | 10 +++++++--- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/python-pip.changes b/python-pip.changes index 9ebe708..d1839da 100644 --- a/python-pip.changes +++ b/python-pip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 30 13:34:45 UTC 2012 - toddrme2178@gmail.com + +- Fix building python 3 package on openSUSE 11.4 x86_64 + ------------------------------------------------------------------- Fri Apr 27 11:25:53 UTC 2012 - toddrme2178@gmail.com diff --git a/python3-pip.changes b/python3-pip.changes index e64ec18..84de21e 100644 --- a/python3-pip.changes +++ b/python3-pip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 30 13:34:45 UTC 2012 - toddrme2178@gmail.com + +- Fix building python 3 package on openSUSE 11.4 x86_64 + ------------------------------------------------------------------- Fri Apr 27 11:25:53 UTC 2012 - toddrme2178@gmail.com diff --git a/python3-pip.spec b/python3-pip.spec index c70dd31..2d350ca 100644 --- a/python3-pip.spec +++ b/python3-pip.spec @@ -29,13 +29,17 @@ BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRequires: python3-distribute BuildRequires: python3-nose -Requires: python3-distribute %if 0%{?suse_version} <= 1140 %{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)} +%ifarch x86_64 +# to allow ownership of noarch python directories +BuildRequires: python3-32bit +%endif %endif -%if 0%{?suse_version} > 1110 BuildArch: noarch -%endif +Requires: python3 >= %{py3_ver} +Requires: python3-distribute %description Pip is a replacement for easy_install. It uses mostly the same techniques for