From f9212a694fcf703278726a6317528c9f77aed49e44af4ff309521222bdb05dd0 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:20:33 +0000 Subject: [PATCH] - Switch to pyroject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-contextvars?expand=0&rev=13 --- python-contextvars.changes | 6 ++++++ python-contextvars.spec | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-contextvars.changes b/python-contextvars.changes index 8d9defe..31a178a 100644 --- a/python-contextvars.changes +++ b/python-contextvars.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 16 06:14:47 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Feb 18 10:20:41 UTC 2025 - Pablo Suárez Hernández diff --git a/python-contextvars.spec b/python-contextvars.spec index 6303f99..87e4474 100644 --- a/python-contextvars.spec +++ b/python-contextvars.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15allpythons} %define skip_python2 1 Name: python-contextvars @@ -27,7 +26,9 @@ Summary: PEP 567 (context variables) backport URL: https://github.com/MagicStack/contextvars Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/c/contextvars/contextvars-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module immutables >= 0.9} @@ -46,10 +47,10 @@ PEP 567 (Context Variables) backport. %setup -q -n contextvars-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,6 +59,7 @@ PEP 567 (Context Variables) backport. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/contextvars +%{python_sitelib}/contextvars-%{version}.dist-info %changelog