From 327bc119e01012bc73db08a98df047ba0e188265 Mon Sep 17 00:00:00 2001 From: Jvle Date: Fri, 16 Jan 2026 12:46:00 +0800 Subject: [PATCH] init for python-scikit-build-core Signed-off-by: Jvle --- python-scikit-build-core.spec | 71 +++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 python-scikit-build-core.spec diff --git a/python-scikit-build-core.spec b/python-scikit-build-core.spec new file mode 100644 index 0000000..20bcc0f --- /dev/null +++ b/python-scikit-build-core.spec @@ -0,0 +1,71 @@ +# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors +# SPDX-FileContributor: Jvle +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%global srcname scikit-build-core +%global _with_tests 0 + +Name: python-%{srcname} +Version: 0.11.6 +Release: %autorelease +Summary: Build backend for CMake based projects +License: Apache-2.0 +URL: https://github.com/scikit-build/scikit-build-core +#!RemoteAsset +Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/scikit_build_core-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: python3-hatchling +BuildRequires: python3-hatch-vcs +BuildRequires: python3-pytest + +BuildRequires: cmake +BuildRequires: ninja +BuildRequires: gcc +BuildRequires: gcc-c++ + +%global _description %{expand: +A next generation Python CMake adapter and Python API for plugins +} + +%description %_description + +%package -n python3-%{srcname} +Summary: %{summary} +Requires: cmake +Recommends: ninja +Provides: python3dist(%{srcname}) = %{version}-%{release} +%description -n python3-%{srcname} %_description + +%pyproject_extras_subpkg -n python3-%{srcname} pyproject + +%prep +%autosetup -n scikit_build_core-%{version} + +%generate_buildrequires +%pyproject_buildrequires -x pyproject + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files scikit_build_core + +%check +: +# We've temporarily commented out `pytest` and +# declared `with_tests 0` because these tests +# can cause many unnecessary dependency issues. +# pytest -m "not network" + +%files -n python3-%{srcname} -f %{pyproject_files} +%license LICENSE +%doc README.md + +%changelog +%{?autochangelog} \ No newline at end of file