Hello community,
here is the log from the commit of package python-sortinghat for
openSUSE:Factory checked in at 2020-05-19 14:59:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sortinghat (Old)
and /work/SRC/openSUSE:Factory/.python-sortinghat.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sortinghat"
Tue May 19 14:59:01 2020 rev:6 rq:807294 version:0.7.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sortinghat/python-sortinghat.changes
2020-03-18 12:46:06.620981926 +0100
+++
/work/SRC/openSUSE:Factory/.python-sortinghat.new.2738/python-sortinghat.changes
2020-05-19 14:59:11.125493978 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:28:07 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-sortinghat.spec ++++++
--- /var/tmp/diff_new_pack.8DE0nN/_old 2020-05-19 14:59:14.253500914 +0200
+++ /var/tmp/diff_new_pack.8DE0nN/_new 2020-05-19 14:59:14.257500924 +0200
@@ -32,7 +32,19 @@
# CoerceToBool(), thus disabling
Patch0: python-sortinghat-gh-121-workaround.patch
BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: python-Jinja2
+Requires: python-PyMySQL >= 0.7.0
+Requires: python-PyYAML >= 3.12
+Requires: python-SQLAlchemy >= 1.2
+Requires: python-pandas >= 0.18.1
+Requires: python-python-dateutil >= 2.6.0
+Requires: python-requests >= 2.9
+Requires: python-urllib3 >= 1.22
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module PyMySQL >= 0.7.0}
@@ -46,17 +58,6 @@
BuildRequires: %{python_module requests >= 2.9}
BuildRequires: mariadb-rpm-macros
# /SECTION
-BuildRequires: fdupes
-Requires: python-Jinja2
-Requires: python-PyMySQL >= 0.7.0
-Requires: python-PyYAML >= 3.12
-Requires: python-SQLAlchemy >= 1.2
-Requires: python-pandas >= 0.18.1
-Requires: python-python-dateutil >= 2.6.0
-Requires: python-requests >= 2.9
-Requires: python-urllib3 >= 1.22
-BuildArch: noarch
-
%python_subpackages
%description
@@ -94,6 +95,15 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/stackalytics2sh
+%python_clone -a %{buildroot}%{_bindir}/mozilla2sh
+%python_clone -a %{buildroot}%{_bindir}/mailmap2sh
+%python_clone -a %{buildroot}%{_bindir}/grimoirelab2sh
+%python_clone -a %{buildroot}%{_bindir}/gitdm2sh
+%python_clone -a %{buildroot}%{_bindir}/eclipse2sh
+%python_clone -a %{buildroot}%{_bindir}/sortinghat
+%python_clone -a %{buildroot}%{_bindir}/sh2mg
+%python_clone -a %{buildroot}%{_bindir}/mg2sh
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -126,17 +136,39 @@
%mysql_testserver_stop
exit $exit_code
+%post
+%python_install_alternative stackalytics2sh
+%python_install_alternative mozilla2sh
+%python_install_alternative mailmap2sh
+%python_install_alternative grimoirelab2sh
+%python_install_alternative gitdm2sh
+%python_install_alternative eclipse2sh
+%python_install_alternative sortinghat
+%python_install_alternative sh2mg
+%python_install_alternative mg2sh
+
+%postun
+%python_uninstall_alternative stackalytics2sh
+%python_uninstall_alternative mozilla2sh
+%python_uninstall_alternative mailmap2sh
+%python_uninstall_alternative grimoirelab2sh
+%python_uninstall_alternative gitdm2sh
+%python_uninstall_alternative eclipse2sh
+%python_uninstall_alternative sortinghat
+%python_uninstall_alternative sh2mg
+%python_uninstall_alternative mg2sh
+
%files %{python_files}
%doc NEWS README.md
-%python3_only %{_bindir}/mg2sh
-%python3_only %{_bindir}/sh2mg
-%python3_only %{_bindir}/sortinghat
-%python3_only %{_bindir}/eclipse2sh
-%python3_only %{_bindir}/gitdm2sh
-%python3_only %{_bindir}/grimoirelab2sh
-%python3_only %{_bindir}/mailmap2sh
-%python3_only %{_bindir}/mozilla2sh
-%python3_only %{_bindir}/stackalytics2sh
+%python_alternative %{_bindir}/mg2sh
+%python_alternative %{_bindir}/sh2mg
+%python_alternative %{_bindir}/sortinghat
+%python_alternative %{_bindir}/eclipse2sh
+%python_alternative %{_bindir}/gitdm2sh
+%python_alternative %{_bindir}/grimoirelab2sh
+%python_alternative %{_bindir}/mailmap2sh
+%python_alternative %{_bindir}/mozilla2sh
+%python_alternative %{_bindir}/stackalytics2sh
%{python_sitelib}/*
%changelog