We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e263f commit 4eb8278Copy full SHA for 4eb8278
.distro/pybind11.spec
@@ -13,6 +13,9 @@ BuildRequires: cmake
13
BuildRequires: ninja-build
14
BuildRequires: gcc
15
BuildRequires: gcc-c++
16
+# Project CMake dependencies
17
+BuildRequires: catch-devel
18
+BuildRequires: eigen3-devel
19
# Test dependencies from tests/requirements.txt
20
# Cannot include the file because requirements are too constrained
21
BuildRequires: python3dist(build)
@@ -55,15 +58,20 @@ sed -i -E 's/,?\s*"ninja[^"]*"//' pyproject.toml
55
58
56
59
57
60
%build
61
+%cmake
62
+%cmake_build
63
+# Also running pyproject_wheel to get python metadata files
64
%pyproject_wheel
65
66
67
%install
68
+%cmake_install
69
%pyproject_install
70
%pyproject_save_files pybind11
71
72
73
%check
74
+%ctest
75
%pytest
76
77
0 commit comments