Dirk Mueller 2024-05-14 08:11:22 +00:00 committed by Git OBS Bridge
parent b7de23503a
commit b9142bb89f

View File

@ -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 Source: https://github.com/scrapy/itemadapter/archive/v%{version}.tar.gz#/itemadapter-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pydantic2.patch gh#scrapy/itemadapter#76 # PATCH-FIX-UPSTREAM pydantic2.patch gh#scrapy/itemadapter#76
Patch0: pydantic2.patch Patch0: pydantic2.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 40.5.0} BuildRequires: %{python_module setuptools >= 40.5.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if %{with test} %if %{with test}
@ -56,11 +58,11 @@ manner, regardless of their underlying implementation.
%autosetup -p1 -n itemadapter-%{version} %autosetup -p1 -n itemadapter-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%if !%{with test} %if !%{with test}
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@ -74,7 +76,7 @@ manner, regardless of their underlying implementation.
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python_sitelib}/itemadapter %{python_sitelib}/itemadapter
%{python_sitelib}/itemadapter-%{version}-py*.egg-info %{python_sitelib}/itemadapter-%{version}.dist-info
%endif %endif
%changelog %changelog