%global debug_package %{nil} %bcond_without tests Name: python-py_build_cmake Version: 0.5.1 Release: %autorelease -b 2 Summary: A modern PEP 517 compliant build backend that uses CMake License: MIT URL: https://tttapa.github.io/py-build-cmake/ Source0: https://github.com/tttapa/py-build-cmake/archive/refs/tags/%{version}/py-build-cmake-%{version}.tar.gz BuildArch: noarch # Permit using python3-pyproject-metadata > 0.9.1 Patch0: python-py-build-cmake-fix_metadata.patch %global _description %{expand: A modern PEP 517 compliant build backend for creating Python packages with extensions built using CMake. Features: - Building and packaging C, C++ or Fortran extension modules for Python using CMake - Declarative configuration using `pyproject.toml` ([PEP 621] - Editable/development installations for Python modules ([PEP 660] - Easy integration with pybind11, nanobind and SWIG, with stable ABI support - Stub generation for type checking and autocompletion - Customizable CMake configuration, build, and installation options - Support for installation of multiple configurations and components, across different Wheel packages - First-class cross-compilation support - Reproducible Wheels and source distributions - No dependency on setuptools - Compatible with cibuildwheel for building Wheels ...} %description %_description %package -n python3-py_build_cmake Summary: A modern PEP 517 compliant build backend that uses CMake BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-pyproject-metadata BuildRequires: python3-setuptools BuildRequires: python3-pytest %py_provides python3-py-build-cmake %description -n python3-py_build_cmake %_description %prep %autosetup -n py-build-cmake-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -p %build %pyproject_wheel %install %pyproject_install %pyproject_save_files py_build_cmake %if %{with tests} %check %pyproject_check_import %pytest %endif %files -n python3-py_build_cmake -f %{pyproject_files} %doc README.md %{_bindir}/py-build-cmake %changelog %autochangelog