# Created by pyp2rpm-3.3.2 %global pypi_name python-utils %global srcname utils Name: python-%{srcname} Version: 2.3.0 Release: 1%{?dist} Summary: Python Utils is a module with some convenient utilities not included with the standard Python install License: BSD URL: https://github.com/WoLpH/python-utils Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-runner) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) %description Useful Python Utils Python Utils is a collection of small Python functions and classes which make common patterns shorter and easier. It is by no means a complete collection but it has served me quite a bit in the past and I will keep extending it.One of the libraries using Python Utils is Django Utils. %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3dist(six) %description -n python3-%{srcname} Useful Python Utils Python Utils is a collection of small Python functions and classes which make common patterns shorter and easier. It is by no means a complete collection but it has served me quite a bit in the past and I will keep extending it.One of the libraries using Python Utils is Django Utils. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/python_utils %{python3_sitelib}/python_utils-%{version}-py?.?.egg-info %changelog * Thu Oct 18 2018 mockbuilder - 2.3.0-1 - Initial package.