%global forgeurl https://github.com/photoshell/rawkit %global version %(date +%Y%m%d) %global commit 1e99fc96edc09fcceb68b7a790753b28560fa6e2 %global _forgeversionsuffix %{scm}%(printf %.7s %{commit}) %forgemeta %global pypi_name rawkit Name: python-%{pypi_name} Version: %{forgeversion} Release: %{autorelease} Summary: A ctypes-based set of LibRaw bindings for Python License: MIT URL: https://rawkit.readthedocs.io Source0: %{forgesource} BuildArch: noarch %description rawkit is a ctypes-based set of LibRaw bindings for Python. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-Cython BuildRequires: python3-pytest %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} rawkit is a ctypes-based set of LibRaw bindings for Python %prep %forgesetup %build %py3_build %install %py3_install # One test is currently failing #%check #pytest-%{python3_version} -v tests %files -n python3-%{pypi_name} %doc README.rst %license LICENSE %{python3_sitelib}/*.egg-info %{python3_sitelib}/libraw %{python3_sitelib}/rawkit/