15
0
forked from pool/python-Fabric

Accepting request 1291279 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Fabric?expand=0&rev=46
This commit is contained in:
2025-07-09 15:26:13 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 8 13:16:23 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Thu Aug 22 06:25:46 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -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