From 384e68b798455b5f16797eab35b097e2e4c51634f29e7256b8adb951f5ebe9e2 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 12 Mar 2025 13:56:06 +0000 Subject: [PATCH] Accepting request 1252310 from home:dgarcia:branches:devel:languages:python - Add missing dependency python-packaging, bsc#1239443 OBS-URL: https://build.opensuse.org/request/show/1252310 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=63 --- python-gunicorn.changes | 5 +++++ python-gunicorn.spec | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-gunicorn.changes b/python-gunicorn.changes index eb19472..8785c51 100644 --- a/python-gunicorn.changes +++ b/python-gunicorn.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 12 07:43:22 UTC 2025 - Daniel Garcia + +- Add missing dependency python-packaging, bsc#1239443 + ------------------------------------------------------------------- Thu Oct 24 08:29:17 UTC 2024 - Dirk Müller diff --git a/python-gunicorn.spec b/python-gunicorn.spec index 9a2a615..1de3799 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -1,7 +1,7 @@ # # spec file for package python-gunicorn # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -40,6 +40,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(postun): update-alternatives +Requires: python-packaging +Requires: (python-importlib_metadata if python-base < 3.8) Suggests: python-evenlet Suggests: python-gevent Suggests: python-gthread @@ -56,6 +58,8 @@ BuildRequires: python3-Sphinx BuildRequires: %{python_module eventlet} BuildRequires: %{python_module gevent >= 1.4} BuildRequires: %{python_module gunicorn} +BuildRequires: %{python_module importlib_metadata if %python-base < 3.8} +BuildRequires: %{python_module packaging} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} %endif @@ -81,13 +85,12 @@ This package contains the documentation. %endif %prep -%setup -q -n gunicorn-%{version} +%autosetup -p1 -n gunicorn-%{version} # remove version pinning for test requirements sed -i 's/==.*//' requirements_test.txt sed -i -e '/cover/d' requirements_test.txt # do not check coverage sed -i -e 's/--cov[^ ]*//' -e 's/--cov-report[^ ]*//' setup.cfg -%autopatch -p1 %if %{with test} %check