%global pypi_name imageio-ffmpeg Name: python-%{pypi_name} Version: 0.4.3 Release: 1%{?dist} Summary: FFMPEG wrapper for Python License: BSD URL: https://github.com/imageio/imageio-ffmpeg Source0: http://pypi.io/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description FFMPEG wrapper for Python. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: FFMPEG wrapper for Python BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-setuptools %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %description -n python%{python3_pkgversion}-%{pypi_name} FFMPEG wrapper for Python. This is the Python 3 build of %{pypi_name}. %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf imageio_ffmpeg.egg-info %build %py3_build %install %py3_install %files -n python%{python3_pkgversion}-%{pypi_name} %doc README.md %license LICENSE %{python3_sitelib}/imageio_ffmpeg/ %{python3_sitelib}/imageio_ffmpeg-%{version}-py%{python3_version}.egg-info/ %changelog * Sun May 09 2021 Jean-Marc Liger 0.4.3-1 - Import from OpenMandriva - Rename python3-%{pypi_name} to %{python3_pkgversion}-%{pypi_name}