Sync from SUSE:SLFO:Main python-httpx revision 9d36e902bf61b443c9c681187d36bcaf
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 17 14:03:29 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- Use libalternatives instead of update-alternatives, bsc#1235784
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 8 13:05:12 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Sun Sep 8 13:05:12 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -25,6 +25,12 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-httpx%{psuffix}
|
Name: python-httpx%{psuffix}
|
||||||
Version: 0.27.2
|
Version: 0.27.2
|
||||||
@@ -50,8 +56,13 @@ Recommends: python-Pygments >= 2
|
|||||||
Recommends: python-click >= 8
|
Recommends: python-click >= 8
|
||||||
Recommends: python-h2 >= 3.0
|
Recommends: python-h2 >= 3.0
|
||||||
Recommends: python-rich >= 10
|
Recommends: python-rich >= 10
|
||||||
|
%if %{with libalternatives}
|
||||||
|
Requires: alts
|
||||||
|
BuildRequires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
@@ -99,6 +110,10 @@ donttest="$donttest or socks"
|
|||||||
%pytest -vv -k "not ($donttest)" --asyncio-mode=strict
|
%pytest -vv -k "not ($donttest)" --asyncio-mode=strict
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative httpx
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative httpx
|
%python_install_alternative httpx
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user