From 9aa5604b0f2554315849e6ce4b9da22f527e3ef5f8d7bd6d47a55a32940b4b22 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 22 Nov 2013 13:11:14 +0000 Subject: [PATCH] - Fix alternative link in buildroot OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=29 --- python-pip.changes | 5 +++++ python-pip.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-pip.changes b/python-pip.changes index 23b1a96..533e36a 100644 --- a/python-pip.changes +++ b/python-pip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 22 12:53:53 UTC 2013 - speilicke@suse.com + +- Fix alternative link in buildroot + ------------------------------------------------------------------- Thu Sep 26 11:33:58 UTC 2013 - rhafer@suse.com diff --git a/python-pip.spec b/python-pip.spec index ae48b2c..38b80da 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -1,7 +1,7 @@ # # spec file for package python-pip # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,7 +11,7 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -51,6 +51,8 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +rm %{buildroot}%{_bindir}/pip +ln -s %{_bindir}/pip-%{py_ver} %{buildroot}%{_bindir}/pip %pre # Since /usr/bin/pip became ghosted to be used with update-alternatives, we have to get rid @@ -73,5 +75,8 @@ fi %{_bindir}/pip-%{py_ver} %{python_sitelib}/pip-%{version}-py%{py_ver}.egg-info %{python_sitelib}/pip +%if 0%{?suse_version} >= 1230 +%ghost %{_sysconfdir}/alternatives/pip +%endif %changelog