b31f115
%global pkg_name itemadapter
b31f115
%global desc %{expand:
b31f115
The ItemAdapter class is a wrapper for data container objects,
b31f115
providing a common interface to handle objects of different
b31f115
types in an uniform manner, regardless of their underlying implementation.}
b31f115
Name:		python-itemadapter
b31f115
Version:	0.2.0
b31f115
Release:	1%{?dist}
b31f115
Summary:	The ItemAdapter class is a wrapper for data container object
b31f115
b31f115
License:	BSD
b31f115
URL:		https://github.com/scrapy/itemadapter
b31f115
Source0:	%{pypi_source %pkg_name}
b31f115
b31f115
BuildArch:	noarch
b31f115
b31f115
b31f115
%description
b31f115
%{desc}
b31f115
b31f115
%package -n python3-%{pkg_name}
b31f115
Summary:	%{summary}
b31f115
b31f115
BuildRequires:	python3-devel
b31f115
BuildRequires:	python3-setuptools
b31f115
Requires:	python3-attrs
b31f115
b31f115
%py_provides  python3-%{pkg_name}
b31f115
b31f115
b31f115
%description -n python3-%{pkg_name}
b31f115
%{desc}
b31f115
b31f115
%prep
b31f115
%autosetup -n %{pkg_name}-%{version}
b31f115
b31f115
%build
b31f115
%py3_build
b31f115
b31f115
b31f115
%install
b31f115
%py3_install
b31f115
b31f115
%files -n python3-%{pkg_name}
b31f115
%license LICENSE
b31f115
%doc README.md
b31f115
%{python3_sitelib}/itemadapter
b31f115
%{python3_sitelib}/itemadapter-*.egg-info
b31f115
b31f115
%changelog
b31f115
* Sat Apr 3 2021 Eduardo Echeverria <echevemaster@gmail.com> - 0.2.0-1
b31f115
- Initial packaging
b31f115