5 Commits

2 changed files with 28 additions and 6 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Aug 14 13:29:28 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
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,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-Fabric
Version: 3.2.2
@@ -45,16 +50,19 @@ 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
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -86,7 +94,11 @@ sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py int
%python_clone -a %{buildroot}%{_bindir}/fab
%check
%pytest tests/
# fake, fake_agent, no_stdin - pytest-relaxed collects fixtures for some reason
%pytest tests/ -k "not (fake or no_stdin)"
%pre
%python_libalternatives_reset_alternative fab
%post
%python_install_alternative fab