From 17f3f367b6ca0dfaa6523b8b4829b6d753b8376f7e4dda076dfeb3045c2ceb2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 May 2020 14:44:33 +0000 Subject: [PATCH] Accepting request 809550 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809550 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acefile?expand=0&rev=6 --- python-acefile.changes | 5 +++++ python-acefile.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-acefile.changes b/python-acefile.changes index 687fe22..cf5b440 100644 --- a/python-acefile.changes +++ b/python-acefile.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:35:56 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Fri Jun 7 11:38:05 UTC 2019 - pgajdos@suse.com diff --git a/python-acefile.spec b/python-acefile.spec index 42d81c7..df42742 100644 --- a/python-acefile.spec +++ b/python-acefile.spec @@ -1,7 +1,7 @@ # # spec file for package python-acefile # -# 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: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -46,12 +48,19 @@ export CFLAGS="%{optflags}" %install %python_install +%python_clone -a %{buildroot}%{_bindir}/acefile-unace %python_expand %fdupes %{buildroot}%{$python_sitearch} +%post +%python_install_alternative acefile-unace + +%postun +%python_uninstall_alternative acefile-unace + %files %{python_files} %doc NEWS.md README.md %license LICENSE.md -%python3_only %{_bindir}/acefile-unace +%python_alternative %{_bindir}/acefile-unace %{python_sitearch}/* %check