%global pypi_name scikit_build_core Name: python-scikit-build-core Version: 0.2.2 Release: %autorelease Summary: Build backend for CMake based projects License: Apache-2.0 URL: https://github.com/scikit-build/scikit-build-core Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: cmake BuildRequires: ninja-build BuildRequires: gcc BuildRequires: gcc-c++ Requires: cmake Recommends: (ninja-build or make) Recommends: python3dist(pyproject-metadata) Recommends: python3dist(pathspec) Suggests: ninja-build Suggests: gcc %global _description %{expand: A next generation Python CMake adaptor and Python API for plugins} %description %_description %package -n python3-scikit-build-core Summary: %{summary} %description -n python3-scikit-build-core %_description %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pytest \ -m "not isolated" %files -n python3-scikit-build-core -f %{pyproject_files} %license LICENSE %doc README.md %changelog %autochangelog