From 423230cf283e6e2d196450a435e47cc2648d544cc080c20b23c9484467a61d97 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 14 May 2024 08:11:22 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=14 --- python-itemadapter.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python-itemadapter.spec b/python-itemadapter.spec index 3ae769a..6e74844 100644 --- a/python-itemadapter.spec +++ b/python-itemadapter.spec @@ -35,7 +35,9 @@ URL: https://github.com/scrapy/itemadapter Source: https://github.com/scrapy/itemadapter/archive/v%{version}.tar.gz#/itemadapter-%{version}.tar.gz # PATCH-FIX-UPSTREAM pydantic2.patch gh#scrapy/itemadapter#76 Patch0: pydantic2.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 40.5.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} @@ -56,11 +58,11 @@ manner, regardless of their underlying implementation. %autosetup -p1 -n itemadapter-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -74,7 +76,7 @@ manner, regardless of their underlying implementation. %license LICENSE %doc README.md %{python_sitelib}/itemadapter -%{python_sitelib}/itemadapter-%{version}-py*.egg-info +%{python_sitelib}/itemadapter-%{version}.dist-info %endif %changelog