forked from pool/python-Fabric
- Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=92
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue Jul 8 13:16:23 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -16,7 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%bcond_without libalternatives
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-Fabric
|
Name: python-Fabric
|
||||||
Version: 3.2.2
|
Version: 3.2.2
|
||||||
@@ -40,10 +44,8 @@ BuildRequires: %{python_module pip}
|
|||||||
BuildRequires: %{python_module pytest-relaxed}
|
BuildRequires: %{python_module pytest-relaxed}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: alts
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alts
|
|
||||||
Requires: python-Deprecated
|
Requires: python-Deprecated
|
||||||
Requires: python-decorator
|
Requires: python-decorator
|
||||||
Requires: python-invoke >= 2.0
|
Requires: python-invoke >= 2.0
|
||||||
@@ -54,6 +56,13 @@ Provides: python-Fabric3 = %{version}
|
|||||||
Provides: python-fabric = %{version}
|
Provides: python-fabric = %{version}
|
||||||
Provides: python-fabric2 = %{version}
|
Provides: python-fabric2 = %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -90,6 +99,12 @@ sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py int
|
|||||||
%pre
|
%pre
|
||||||
%python_libalternatives_reset_alternative fab
|
%python_libalternatives_reset_alternative fab
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative fab
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative fab
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Reference in New Issue
Block a user