Hello community,
here is the log from the commit of package python-colorcet for openSUSE:Factory
checked in at 2020-05-28 09:20:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-colorcet (Old)
and /work/SRC/openSUSE:Factory/.python-colorcet.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-colorcet"
Thu May 28 09:20:06 2020 rev:4 rq:809610 version:2.0.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-colorcet/python-colorcet.changes
2019-09-26 20:46:39.869671904 +0200
+++
/work/SRC/openSUSE:Factory/.python-colorcet.new.3606/python-colorcet.changes
2020-05-28 09:20:10.837303472 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:46 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-colorcet.spec ++++++
--- /var/tmp/diff_new_pack.hqj9CB/_old 2020-05-28 09:20:12.077305743 +0200
+++ /var/tmp/diff_new_pack.hqj9CB/_new 2020-05-28 09:20:12.077305743 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-colorcet
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -32,6 +32,8 @@
BuildRequires: python-rpm-macros
Requires: python-param >= 1.7.0
Requires: python-pyct >= 0.4.4
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
@@ -51,15 +53,22 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/colorcet
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
+%post
+%python_install_alternative colorcet
+
+%postun
+%python_uninstall_alternative colorcet
+
%files %{python_files}
%doc README.md
%license LICENSE.txt
-%python3_only %{_bindir}/colorcet
+%python_alternative %{_bindir}/colorcet
%{python_sitelib}/*
%changelog