From 4c989945931f897d4e176309d18471fa04a23a878e5c8096f74ce8347636577a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 19 May 2020 08:53:45 +0000 Subject: [PATCH] Accepting request 807145 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807145 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-technicolor?expand=0&rev=7 --- python-technicolor.changes | 5 +++++ python-technicolor.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-technicolor.changes b/python-technicolor.changes index b70f963..db1da64 100644 --- a/python-technicolor.changes +++ b/python-technicolor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 19 08:03:12 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Thu Jun 6 05:30:56 UTC 2019 - pgajdos@suse.com diff --git a/python-technicolor.spec b/python-technicolor.spec index 715dad1..778d559 100644 --- a/python-technicolor.spec +++ b/python-technicolor.spec @@ -1,7 +1,7 @@ # # spec file for package python-technicolor # -# 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 @@ -30,6 +30,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -45,15 +47,22 @@ means of a decorator. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/technicolor %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # no testsuite found +%post +%python_install_alternative technicolor + +%postun +%python_uninstall_alternative technicolor + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/technicolor +%python_alternative %{_bindir}/technicolor %{python_sitelib}/* %changelog