%global pypi_name biscuits Name: python-%{pypi_name} Version: 0.2.1 Release: 1%{?dist} Summary: Fast and tasty cookies handling License: MIT URL: https://github.com/pyrates/%{pypi_name} Source0: https://github.com/pyrates/%{pypi_name}/archive/%{version}/%{name}-%{version}.tar.gz # The upstream makefile calls python directly, but we want to be able to pass # in a particular interpreter Patch0: 0000-makefile-python-param.patch BuildRequires: gcc BuildRequires: python3-Cython BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3dist(setuptools) %description Low level API for handling cookies. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Low level API for handling cookies. %prep %autosetup -n %{pypi_name}-%{version} %build make compile PYTHON=%{__python3} %py3_build %install %py3_install %check %{__python3} -m pytest -v %files -n python3-%{pypi_name} %doc README.md %{python3_sitearch}/biscuits.cpython-%{python3_version_nodots}m-*.so %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Mon Mar 11 2019 Eli Young - 0.2.1-1 - Initial package.