forked from pool/python-gunicorn
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=65
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 8 14:22:13 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 12 07:43:22 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
Wed Mar 12 07:43:22 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-gunicorn%{psuffix}
|
Name: python-gunicorn%{psuffix}
|
||||||
Version: 23.0.0
|
Version: 23.0.0
|
||||||
@@ -36,10 +37,10 @@ Source: https://files.pythonhosted.org/packages/source/g/gunicorn/gunico
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools >= 3.0}
|
BuildRequires: %{python_module setuptools >= 3.0}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun): update-alternatives
|
|
||||||
Requires: python-packaging
|
Requires: python-packaging
|
||||||
Requires: (python-importlib_metadata if python-base < 3.8)
|
Requires: (python-importlib_metadata if python-base < 3.8)
|
||||||
Suggests: python-evenlet
|
Suggests: python-evenlet
|
||||||
@@ -107,11 +108,8 @@ sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
|
|||||||
%python_clone -a %{buildroot}%{_bindir}/gunicorn
|
%python_clone -a %{buildroot}%{_bindir}/gunicorn
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative gunicorn
|
%python_libalternatives_reset_alternative gunicorn
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative gunicorn
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Reference in New Issue
Block a user