summaryrefslogtreecommitdiff
path: root/macros.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'macros.cmake.in')
-rw-r--r--macros.cmake.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/macros.cmake.in b/macros.cmake.in
index 675ca90..986d3d3 100644
--- a/macros.cmake.in
+++ b/macros.cmake.in
@@ -58,3 +58,11 @@
%cmake@@CMAKE_MAJOR_VERSION@@_install %cmake_install
%ctest@@CMAKE_MAJOR_VERSION@@(:-:h:j:u:v:A:C:D:E:F:H:I:L:M:N:O:Q:R:S:T:U:V:) \
%ctest %{**}
+
+# Declarative buildsystem, requires RPM 4.20+ to work
+# https://rpm-software-management.github.io/rpm/manual/buildsystem.html
+%buildsystem_cmake_generate_buildrequires() %{nil}
+%buildsystem_cmake_conf() %cmake %*
+%buildsystem_cmake_build() %cmake_build %*
+%buildsystem_cmake_install() %cmake_install %*
+%buildsystem_cmake_check(:-:h:j:u:v:A:C:D:E:F:H:I:L:M:N:O:Q:R:S:T:U:V:) %ctest %{**}