forked from pool/python-gunicorn
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
5808cff867 | |||
64ee4de15a | |||
9dd9480a0b | |||
9991fa0836 |
@@ -1,13 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed Aug 20 08:51:10 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Convert to libalternatives on SLE-16+ only
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
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,11 +24,6 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%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-gunicorn%{psuffix}
|
Name: python-gunicorn%{psuffix}
|
||||||
Version: 23.0.0
|
Version: 23.0.0
|
||||||
@@ -43,6 +38,8 @@ BuildRequires: %{python_module setuptools >= 3.0}
|
|||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
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
|
||||||
@@ -51,13 +48,6 @@ Suggests: python-gthread
|
|||||||
Suggests: python-setproctitle
|
Suggests: python-setproctitle
|
||||||
Suggests: python-tornado
|
Suggests: python-tornado
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with libalternatives}
|
|
||||||
BuildRequires: alts
|
|
||||||
Requires: alts
|
|
||||||
%else
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
%endif
|
|
||||||
%if 0%{?sle_version} >= 150500
|
%if 0%{?sle_version} >= 150500
|
||||||
# Fixes the build on Leap
|
# Fixes the build on Leap
|
||||||
BuildRequires: %{python_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
@@ -117,9 +107,6 @@ 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}
|
||||||
|
|
||||||
%pre
|
|
||||||
%python_libalternatives_reset_alternative gunicorn
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative gunicorn
|
%python_install_alternative gunicorn
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user