%global srcname face_recognition Name: python-%{srcname} Version: 1.2.3 Release: 1%{?dist} Summary: Simple facial recognition module License: MIT URL: https://pypi.org/project/%{srcname} Source0: %{pypi_source} BuildArch: noarch %description A python module for recognizing and manipulating faces %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pillow-devel Requires: python3-click Requires: python3-dlib Requires: python3-numpy %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{description} %prep %autosetup -n %{srcname}-%{version} %build %py3_build %install %py3_install # temporarily disable check as source url somehow failed #%%check #%%{__python3} setup.py test # Note that there is no %%files section for the unversioned python module %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}/ %{_bindir}/* %changelog * Tue Nov 27 2018 Luya Tshimbalanga - 1.2.3-1 - Initial package