Name: pytooling Version: 2.1.0 Release: 3%{?dist} Summary: Powerful collection of arbitrary useful classes License: Apache URL: https://github.com/pyTooling/pyTooling Source0: pyTooling-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel python3-setuptools %if 0%{?rhel} == 8 Requires: python3-dataclasses %endif %description A powerful collection of arbitrary useful classes, decorators, meta-classes and exceptions. It's useful for any Python-base project independent if it's a library, framework or CLI tool. %prep %setup -q -n pyTooling-%{version} %build %if ! (0%{?rhel} == 8) %py3_build %endif %install %if ! (0%{?rhel} == 8) %py3_install %else mkdir -p %{buildroot}/%{python3_sitelib}/pyTooling cp -R pyTooling/* %{buildroot}/%{python3_sitelib}/pyTooling/ %endif %files %license LICENSE.md %doc README.md doc %{python3_sitelib}/* %changelog * Sun Dec 05 2021 Cristian Balint - new release