From b1f0330cd5b78533310234c6a40f05e3c5f29739ccc5b62d5cc808277c9bcd51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 8 Jul 2025 13:17:29 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=90 --- python-Fabric.changes | 5 +++++ python-Fabric.spec | 16 ++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/python-Fabric.changes b/python-Fabric.changes index 60fd6ce..c88e067 100644 --- a/python-Fabric.changes +++ b/python-Fabric.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 8 13:16:23 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Thu Aug 22 06:25:46 UTC 2024 - Steve Kowalik diff --git a/python-Fabric.spec b/python-Fabric.spec index 2b6d28c..3f2de80 100644 --- a/python-Fabric.spec +++ b/python-Fabric.spec @@ -1,7 +1,7 @@ # # spec file for package python-Fabric # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-Fabric Version: 3.2.2 @@ -39,21 +40,19 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-relaxed} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-Deprecated Requires: python-decorator Requires: python-invoke >= 2.0 Requires: python-paramiko >= 3.2 -Requires(post): update-alternatives -Requires(postun): update-alternatives Conflicts: python-Fabric3 Provides: python-Fabric2 = %{version} Provides: python-Fabric3 = %{version} -Provides: python-Fabric3 = %{version} Provides: python-fabric = %{version} Provides: python-fabric2 = %{version} -Provides: python-fabric2 = %{version} BuildArch: noarch %python_subpackages @@ -88,11 +87,8 @@ sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py int %check %pytest tests/ -%post -%python_install_alternative fab - -%postun -%python_uninstall_alternative fab +%pre +%python_libalternatives_reset_alternative fab %files %{python_files} %license LICENSE