%global pypi_name coincurve Name: python-%{pypi_name} Version: 20.0.0 Release: %autorelease Summary: Cross-platform Python bindings for libsecp256k1 License: MIT or Apache-2.0 URL: https://github.com/ofek/coincurve VCS: git:%{url}.git Source0: %{pypi_source %{pypi_name}} Patch1: python-coincurve-0001-Relax-dependency.patch Patch2: python-coincurve-0002-Customize-CMake-defaults.patch Patch3: python-coincurve-0003-Don-t-strip-binary.patch Patch4: python-coincurve-0004-Don-t-override-C-XX-FLAGS.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: libsecp256k1-devel >= 0.4.1 BuildRequires: pkgconfig BuildRequires: python3-devel BuildRequires: python3-pytest %description %{summary}. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{summary}. %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE-MIT LICENSE-APACHE %doc docs README.md %changelog %autochangelog