1- # Testing dependencies not satisfied on epel
2- # build, cattrs, hatch-fancy-pypi-readme, pytest-subprocess
3- %if 0%{?el10 }
4- %bcond_with tests
5- %else
6- %bcond_without tests
7- %endif
8-
91%global debug_package %{nil }
102
113Name: python-scikit-build-core
@@ -37,32 +29,12 @@ A next generation Python CMake adapter and Python API for plugins
3729%package -n python3-scikit-build-core
3830Summary: %{summary }
3931Requires: cmake
40- Recommends: (ninja-build or make)
41- Recommends: python3-scikit-build-core+pyproject = %{version }-%{release }
42- Suggests: ninja-build
43- Suggests: gcc
44- Provides: bundled(python3dist(pyproject-metadata))
32+ Requires: ninja-build
4533BuildArch: noarch
46- %description -n python3-scikit-build-core %_description
47-
4834
49- # Add %%pyproject_extras_subpkg results manually because BuildArch: noarch is not injected
50- # https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/174
51- # %%pyproject_extras_subpkg -n python3-scikit-build-core pyproject
35+ Obsoletes: python3-scikit-build-core+pyproject < 0.10.7-3
5236
53- %package -n python3-scikit-build-core+pyproject
54- Summary: Metapackage for python3-scikit-build-core: pyproject extras
55- Requires: python3-scikit-build-core = %{?epoch:%{epoch }:}%{version }-%{release }
56- BuildArch: noarch
57- # Deprecated empty extras package
58- # Note: Cannot use Obsoletes + Provides here. python3dist() does not seem to be picked up
59- Provides: deprecated()
60- %description -n python3-scikit-build-core+pyproject
61- This is a metapackage bringing in pyproject extras requires for
62- python3-scikit-build-core.
63- It makes sure the dependencies are installed.
64-
65- %files -n python3-scikit-build-core+pyproject -f %{_pyproject_ghost_distinfo }
37+ %description -n python3-scikit-build-core %_description
6638
6739
6840%prep
@@ -72,7 +44,7 @@ cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject
7244
7345
7446%generate_buildrequires
75- %pyproject_buildrequires %{?with_tests: -x test,test-meta,test-numpy}
47+ %pyproject_buildrequires -x test,test-meta,test-numpy
7648
7749
7850%build
@@ -86,10 +58,8 @@ cp -p src/scikit_build_core/_vendor/pyproject_metadata/LICENSE LICENSE-pyproject
8658
8759%check
8860%pyproject_check_import
89- %if %{with tests }
9061%pytest \
9162 -m " not network"
92- %endif
9363
9464
9565%files -n python3-scikit-build-core -f %{pyproject_files }
0 commit comments