%global pypi_name einops %global pypi_version 0.7.0 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: Deep learning operations reinvented License: MIT URL: https://github.com/arogozhnikov/einops Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{pypi_name}-%{pypi_version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %description Flexible and powerful tensor operations for readable and reliable code. Supports numpy, pytorch, tensorflow, jax, and others. %package -n python3-%{pypi_name} Summary: Deep learning operations reinvented %description -n python3-%{pypi_name} Flexible and powerful tensor operations for readable and reliable code. Supports numpy, pytorch, tensorflow, jax, and others. %prep %autosetup -n %{pypi_name}-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{pypi_version}.dist-info %changelog * Fri Dec 22 2023 Tom Rix - 0.7.0-1 - Initial package.