%global modname attrs Name: python-attrs Version: 20.3.0 Release: 1%{?dist} Summary: Python attributes without boilerplate License: MIT URL: http://www.attrs.org/ BuildArch: noarch Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3-setuptools %description attrs is an MIT-licensed Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols. %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} %description -n python3-%{modname} attrs is an MIT-licensed Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols. %prep %setup -q -n %{modname}-%{version} %build %{__python3} setup.py build %install %{__python3} setup.py install --optimize 2 --root %{buildroot} %files -n python%{python3_pkgversion}-%{modname} %license LICENSE %doc AUTHORS.rst README.rst %{python3_sitelib}/* %changelog