From 8f6b92fd920aa9934e0d0282a579bd12006ec3125aba7dab306a545cea3db7a3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 21 Apr 2020 11:55:57 +0000 Subject: [PATCH] - Fix using update_alternatives. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python2-setuptools?expand=0&rev=9 --- python2-setuptools.changes | 5 +++++ python2-setuptools.spec | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/python2-setuptools.changes b/python2-setuptools.changes index ce377d0..340975c 100644 --- a/python2-setuptools.changes +++ b/python2-setuptools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 21 11:55:39 UTC 2020 - Matej Cepl + +- Fix using update_alternatives. + ------------------------------------------------------------------- Tue Apr 7 08:39:25 UTC 2020 - Tomáš Chvátal diff --git a/python2-setuptools.spec b/python2-setuptools.spec index bc7a4f4..a4e9492 100644 --- a/python2-setuptools.spec +++ b/python2-setuptools.spec @@ -57,7 +57,7 @@ sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py \ %install %python2_install -%prepare_alternative easy_install +%python_clone -a %{buildroot}%{_bindir}/easy_install %fdupes %{buildroot}%{python2_sitelib} %post @@ -72,7 +72,6 @@ sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py \ %python_alternative %{_bindir}/easy_install %{python2_sitelib}/setuptools %{python2_sitelib}/setuptools-%{version}-py*.egg-info -%{python2_sitelib}/easy_install.py* %dir %{python2_sitelib}/pkg_resources %{python2_sitelib}/pkg_resources/*