From 9e9ff4c19b2108b6aeb1d8597acb2cd8e2c8e8cc26bc2097ff8474fa04019084 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 8 Jan 2024 23:06:37 +0000 Subject: [PATCH] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=57 --- python-gunicorn.changes | 5 +++++ python-gunicorn.spec | 29 ++++++++++++++--------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/python-gunicorn.changes b/python-gunicorn.changes index 79bdab3..31e1002 100644 --- a/python-gunicorn.changes +++ b/python-gunicorn.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 8 23:05:51 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Mon Jan 8 09:03:41 UTC 2024 - Andreas Schneider diff --git a/python-gunicorn.spec b/python-gunicorn.spec index affc6e1..b40c46b 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -34,32 +34,30 @@ License: MIT Group: Development/Languages/Python URL: https://gunicorn.org Source: https://files.pythonhosted.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz +BuildRequires: %{python_module importlib_metadata} +BuildRequires: %{python_module setuptools >= 3.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun):update-alternatives +Suggests: python-evenlet +Suggests: python-gevent +Suggests: python-gthread +Suggests: python-setproctitle +Suggests: python-tornado +BuildArch: noarch %if 0%{?sle_version} >= 150500 # Fixes the build on Leap BuildRequires: %{python_module Sphinx} %else BuildRequires: python3-Sphinx %endif -BuildRequires: %{python_module importlib_metadata} -BuildRequires: %{python_module setuptools >= 3.0} -BuildRequires: fdupes -BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module eventlet} BuildRequires: %{python_module gevent >= 1.4} BuildRequires: %{python_module gunicorn} BuildRequires: %{python_module pytest} %endif -Requires: python-setuptools >= 3.0 -Requires(post): update-alternatives -Requires(postun):update-alternatives -Suggests: python-evenlet -Suggests: python-gevent -Suggests: python-gthread -Requires: python-importlib_metadata -Suggests: python-setproctitle -Suggests: python-tornado -BuildArch: noarch %python_subpackages %description @@ -114,7 +112,8 @@ sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html %files %{python_files} %license LICENSE %python_alternative %{_bindir}/gunicorn -%{python_sitelib}/* +%{python_sitelib}/gunicorn +%{python_sitelib}/gunicorn-%{version}*-info %if 0%{?suse_version} > 1500 %files -n python-gunicorn-doc