Hello community, here is the log from the commit of package python2-setuptools for openSUSE:Factory checked in at 2020-04-22 20:54:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python2-setuptools (Old) and /work/SRC/openSUSE:Factory/.python2-setuptools.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python2-setuptools" Wed Apr 22 20:54:39 2020 rev:2 rq:796056 version:44.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python2-setuptools/python2-setuptools.changes 2020-04-08 19:54:28.213026375 +0200 +++ /work/SRC/openSUSE:Factory/.python2-setuptools.new.2738/python2-setuptools.changes 2020-04-22 20:54:41.391591633 +0200 @@ -1,0 +2,5 @@ +Tue Apr 21 11:55:39 UTC 2020 - Matej Cepl <[email protected]> + +- Fix using update_alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python2-setuptools.spec ++++++ --- /var/tmp/diff_new_pack.vMBWJj/_old 2020-04-22 20:54:42.083592987 +0200 +++ /var/tmp/diff_new_pack.vMBWJj/_new 2020-04-22 20:54:42.087592996 +0200 @@ -57,23 +57,35 @@ %install %python2_install -%prepare_alternative easy_install + +# update-alternatives +mkdir -p %{buildroot}%{_bindir} +mv %{buildroot}%{_bindir}/easy_install{,-%{python_version}} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives/ +touch %{buildroot}%{_sysconfdir}/alternatives/easy_install +ln -sf %{_sysconfdir}/alternatives/easy_install \ + %{buildroot}%{_bindir}/easy_install + %fdupes %{buildroot}%{python2_sitelib} %post -%python_install_alternative easy_install +%{_sbindir}/update-alternatives --install %{_bindir}/easy_install \ + easy_install %{_bindir}/easy_install-%{python_version} 27 %postun -%python_uninstall_alternative easy_install +if [ ! -f %{_bindir}/easy_install ] ; then + %{_sbindir}/update-alternatives --remove easy_install %{_bindir}/easy_install-%{python_version} +fi %files %license LICENSE %doc CHANGES.rst README.rst -%python_alternative %{_bindir}/easy_install +%{_bindir}/easy_install* +%{python2_sitelib}/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/* +%ghost %_sysconfdir/alternatives/easy_install %changelog
