You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
%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
|
|
|