%global pypi_name retworkx Name: python-%{pypi_name} Version: 0.7.2 Release: 1%{?dist} Summary: A python graph library implemented in Rust License: Apache 2.0 URL: https://github.com/Qiskit/retworkx Source0: %{pypi_source} BuildArch: noarch BuildRequires: rust BuildRequires: python3-devel BuildRequires: (python3dist(numpy) >= 1.16.0) Requires: rust Requires: (python3dist(numpy) >= 1.16.0) %description retworkx is a general purpose graph library for python3 written in Rust to take advantage of the performance and safety that Rust provides. It was built as a replacement for qiskit's previous (and current) networkx usage (hence the name) but is designed to provide a high performance general purpose graph library for any python application. %package -n python3-%{pypi_name} Summary: %{summary} Provides: %{pypi_name}= %{version}-%{release} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} retworkx is a general purpose graph library for python3 written in Rust to take advantage of the performance and safety that Rust provides. It was built as a replacement for qiskit's previous (and current) networkx usage (hence the name) but is designed to provide a high performance general purpose graph library for any python application. %prep %setup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install %clean rm -rf $RPM_BUILD_ROOT %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/retworkx %{python3_sitelib}/retworkx-%{version}-py%{python3_version}.egg-info %changelog * Thu Jan 21 2021 Stephen Coady - 0.7.2-1 - Initial package.