1+ Vendor: Microsoft Corporation
2+ Distribution: Azure Linux
3+
4+ %global debug_package %{nil }
5+
6+ # On epel python hatch/trove classifier check may fail because of old package
7+ # Fedora checks should be sufficient though.
8+ %bcond no_classifier_check 0%{?rhel }
9+
10+ Name: python-scikit-build-core
11+ Version: 0.11.5
12+ Release: 5%{?dist }
13+ Summary: Build backend for CMake based projects
14+
15+ # The main project is licensed under Apache-2.0, but it has a vendored project
16+ # src/scikit_build_core/_vendor/pyproject_metadata: MIT
17+ # https://github.com/scikit-build/scikit-build-core/issues/933
18+ License: Apache-2.0 AND MIT
19+ URL: https://github.com/scikit-build/scikit-build-core
20+ Source: %{pypi_source scikit_build_core}
21+
22+ BuildRequires: python-pip
23+ BuildRequires: python-hatchling
24+ BuildRequires: python-hatch-vcs
25+ BuildRequires: python-tomli
26+ BuildRequires: python-pathspec
27+ BuildRequires: python-packaging
28+ BuildRequires: python-editables
29+ BuildRequires: python-pluggy
30+ BuildRequires: python-setuptools_scm
31+ BuildRequires: python-trove-classifiers
32+ BuildRequires: python3-pytest
33+ BuildRequires: python3-virtualenv
34+ BuildRequires: python3-numpy
35+ BuildRequires: python3-devel
36+
37+ # Testing dependences
38+ BuildRequires: cmake
39+ BuildRequires: ninja-build
40+ BuildRequires: gcc
41+ BuildRequires: gcc-c++
42+ BuildRequires: git
43+
44+ %global _description %{expand:
45+ A next generation Python CMake adapter and Python API for plugins
46+ }
47+
48+ %description %_description
49+
50+ %package -n python3-scikit-build-core
51+ Summary: %{summary }
52+ Requires: cmake
53+ Requires: ninja-build
54+ BuildArch: noarch
55+
56+ Provides: bundled(python3dist(pyproject-metadata)) = 0.9.1
57+
58+ Obsoletes: python3-scikit-build-core+pyproject < 0.10.7-3
59+
60+ %description -n python3-scikit-build-core %_description
61+
62+
63+ %prep
64+ %autosetup -n scikit_build_core-%{version }
65+ # Rename the bundled license so that it can be installed together
66+ cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject-metadata
67+
68+ # Remove unsupported Python 3.14 classifier (keep valid ones like 3.12)
69+ sed -i '/Programming Language :: Python :: 3\.14/d' pyproject.toml
70+
71+
72+ %generate_buildrequires
73+ %if %{with no_classifier_check }
74+ export HATCH_METADATA_CLASSIFIERS_NO_VERIFY= 1
75+ %endif
76+ %pyproject_buildrequires -x test,test-meta,test-numpy
77+
78+
79+ %build
80+ %if %{with no_classifier_check }
81+ export HATCH_METADATA_CLASSIFIERS_NO_VERIFY=1
82+ %endif
83+ %pyproject_wheel
84+
85+
86+ %install
87+ %pyproject_install
88+ %pyproject_save_files scikit_build_core
89+
90+ #skipping check section
91+ %check
92+ %pyproject_check_import scikit_build_core
93+ true
94+
95+ %files -n python3-scikit-build-core -f %{pyproject_files }
96+ %license %{python3_sitelib }/scikit_build_core-%{version }.dist-info/licenses/*
97+ %doc README.md
98+
99+
100+ %changelog
101+ * Fri Nov 28 2025 BinduSri Adabala <v-badabala@microsoft.com> - 0.11.5-5
102+ - Initial Azure Linux import from Fedora 43 (license: MIT).
103+ - License verified
104+
105+ * Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 0.11.5-4
106+ - Rebuilt for Python 3.14.0rc3 bytecode
107+
108+ * Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 0.11.5-3
109+ - Rebuilt for Python 3.14.0rc2 bytecode
110+
111+ * Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.5-2
112+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
113+
114+ * Fri Jun 27 2025 Packit <hello@packit.dev> - 0.11.5-1
115+ - Update to 0.11.5 upstream release
116+
117+ * Wed May 21 2025 Miro Hrončok <miro@hroncok.cz> - 0.11.0-2
118+ - Avoid cattrs test dependency to unblock the Python 3.14 rebuild
119+
120+ * Fri Feb 28 2025 Cristian Le <git@lecris.dev> - 0.11.0-1
121+ - Update to 0.11.0 upstream release
122+ - Resolves: rhbz#2348951
123+
124+ * Wed Feb 12 2025 Cristian Le <git@lecris.dev> - 0.10.7-3
125+ - Various simplifications
126+ - Added `Requires: ninja-build` by default
127+ - Removed `Suggests` and `Recommends`, these are not likely to be used
128+ - Removed the test conditional for epel10 since everything will be packaged
129+ - Removed the `pyproject` subpackage since it's empty and all dependents
130+ are gone
131+
132+ * Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.7-2
133+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
134+
135+ * Mon Sep 30 2024 Packit <hello@packit.dev> - 0.10.7-1
136+ - Update to 0.10.7 upstream release
137+
138+ * Wed Sep 11 2024 Packit <hello@packit.dev> - 0.10.6-1
139+ - Update to 0.10.6 upstream release
140+
141+ * Wed Aug 07 2024 Packit <hello@packit.dev> - 0.10.1-1
142+ - Update to 0.10.1 upstream release
143+
144+ * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-4
145+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
146+
147+ * Tue Jun 18 2024 Cristian Le <cristian.le@mpsd.mpg.de> - 0.9.4-3
148+ - Relax pip requirement until rawhide catches up
149+
150+ * Mon Jun 17 2024 Python Maint <python-maint@redhat.com> - 0.9.4-2
151+ - Rebuilt for Python 3.13
152+
153+ * Tue May 14 2024 Packit <hello@packit.dev> - 0.9.4-1
154+ - Update to 0.9.4 upstream release
155+
156+ * Fri Apr 19 2024 Packit <hello@packit.dev> - 0.9.0-1
157+ - Update to 0.9.0 upstream release
158+
159+ * Thu Mar 28 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.8.2-2
160+ - Produce a metapackage for the pyproject extra
161+
162+ * Thu Feb 29 2024 Packit <hello@packit.dev> - 0.8.2-1
163+ - [packit] 0.8.2 upstream release
164+
165+ * Tue Jan 23 2024 Packit <hello@packit.dev> - 0.8.0-1
166+ - [packit] 0.8.0 upstream release
167+
168+ * Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
169+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
170+
171+ * Wed Nov 08 2023 Packit <hello@packit.dev> - 0.6.1-1
172+ - [packit] 0.6.1 upstream release
173+
174+ * Thu Sep 21 2023 Packit <hello@packit.dev> - 0.5.1-1
175+ - [packit] 0.5.1 upstream release
176+
177+ * Tue Aug 22 2023 Cristian Le <cristian.le@mpsd.mpg.de> - 0.5.0-1
178+ - [packit] 0.5.0 upstream release
179+
180+ * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-2
181+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
182+
183+ * Mon Jun 05 2023 Packit <hello@packit.dev> - 0.4.4-1
184+ - 0.4.4 upstream release
185+
186+ * Thu Apr 13 2023 Packit <hello@packit.dev> - 0.3.0-1
187+ - [packit] 0.3.0 upstream release
188+
189+ * Fri Mar 24 2023 Miro Hrončok <miro@hroncok.cz> - 0.2.2-2
190+ - Move the Requires, Recommends and Suggests to python3-scikit-build-core
191+
192+ * Mon Mar 20 2023 Cristian Le <cristian.le@mpsd.mpg.de> - 0.2.2-1
193+ - Initial import (#2179414).
0 commit comments