From 45dc0621e296e59ceeb856a6fecbea270f1ee66053d30ae2bed31eb1fc7d87a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 18 May 2020 13:01:26 +0000 Subject: [PATCH] Accepting request 806919 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/806919 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unify?expand=0&rev=14 --- python-unify.changes | 5 +++++ python-unify.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-unify.changes b/python-unify.changes index 550d117..f316c56 100644 --- a/python-unify.changes +++ b/python-unify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 18 09:10:41 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue Sep 10 09:32:34 UTC 2019 - Tomáš Chvátal diff --git a/python-unify.spec b/python-unify.spec index 0f9ec6e..5569b15 100644 --- a/python-unify.spec +++ b/python-unify.spec @@ -1,7 +1,7 @@ # # spec file for package python-unify # -# 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 @@ -31,6 +31,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools Requires: python-untokenize +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} @@ -59,11 +61,18 @@ cp %{SOURCE9} . %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} mv %{buildroot}%{_bindir}/unify %{buildroot}%{_bindir}/unify_quotes +%python_clone -a %{buildroot}%{_bindir}/unify_quotes + +%post +%python_install_alternative unify_quotes + +%postun +%python_uninstall_alternative unify_quotes %files %{python_files} %license LICENSE %doc README.rst README.suse -%python3_only %{_bindir}/unify_quotes +%python_alternative %{_bindir}/unify_quotes %{python_sitelib}/* %changelog