OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itemadapter?expand=0&rev=14
This commit is contained in:
parent
3fb426d0f1
commit
423230cf28
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user