From 684b5401d0af5e30505bf0faa091cb74f0c228f75b89f6b19cf67063ce3ecd67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 7 Jul 2025 09:26:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-copr-cli?expand=0&rev=23 --- python-copr-cli.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/python-copr-cli.spec b/python-copr-cli.spec index 2f09d2a..947e91a 100644 --- a/python-copr-cli.spec +++ b/python-copr-cli.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-copr-cli Version: 2.1 Release: 0 @@ -26,8 +27,10 @@ Source: https://files.pythonhosted.org/packages/source/c/copr-cli/copr-c BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-Jinja2 Requires: python-copr >= 1.116 Requires: python-humanize @@ -40,8 +43,6 @@ BuildRequires: %{python_module humanize} BuildRequires: %{python_module pytest} BuildRequires: %{python_module responses} # /SECTION -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages %description @@ -63,11 +64,8 @@ sed -i '1{/#!/d}' copr_cli/package_build_order.py %check %pytest -%post -%python_install_alternative copr-cli - -%postun -%python_uninstall_alternative copr-cli +%pre +%python_libalternatives_reset_alternative copr-cli %files %{python_files} %license LICENSE