forked from scikit-build/scikit-build-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-scikit-build-core.spec
95 lines (70 loc) · 2.38 KB
/
python-scikit-build-core.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Testing dependencies not satisfied on epel
# build, cattrs, hatch-fancy-pypi-readme, pytest-subprocess
%if 0%{?el10}
%bcond_with tests
%else
%bcond_without tests
%endif
%global debug_package %{nil}
Name: python-scikit-build-core
Version: 0.0.0
Release: %autorelease
Summary: Build backend for CMake based projects
License: Apache-2.0
URL: https://github.com/scikit-build/scikit-build-core
Source: %{pypi_source scikit_build_core}
BuildRequires: python3-devel
# Testing dependences
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: git
%global _description %{expand:
A next generation Python CMake adapter and Python API for plugins
}
%description %_description
%package -n python3-scikit-build-core
Summary: %{summary}
Requires: cmake
Recommends: (ninja-build or make)
Recommends: python3-scikit-build-core+pyproject = %{version}-%{release}
Suggests: ninja-build
Suggests: gcc
BuildArch: noarch
%description -n python3-scikit-build-core %_description
# Add %%pyproject_extras_subpkg results manually because BuildArch: noarch is not injected
# https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/174
# %%pyproject_extras_subpkg -n python3-scikit-build-core pyproject
%package -n python3-scikit-build-core+pyproject
Summary: Metapackage for python3-scikit-build-core: pyproject extras
Requires: python3-scikit-build-core = %{?epoch:%{epoch}:}%{version}-%{release}
BuildArch: noarch
# Deprecated empty extras package
# Note: Cannot use Obsoletes + Provides here. python3dist() does not seem to be picked up
Provides: deprecated()
%description -n python3-scikit-build-core+pyproject
This is a metapackage bringing in pyproject extras requires for
python3-scikit-build-core.
It makes sure the dependencies are installed.
%files -n python3-scikit-build-core+pyproject -f %{_pyproject_ghost_distinfo}
%prep
%autosetup -n scikit_build_core-%{version}
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-x test,test-meta,test-numpy}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files scikit_build_core
%check
%pyproject_check_import
%if %{with tests}
%pytest \
-m "not network"
%endif
%files -n python3-scikit-build-core -f %{pyproject_files}
%license LICENSE
%doc README.md
%changelog
%autochangelog