From 0ed2d089e047da14ec7367bb7a5370d7e3d7def6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 9 Oct 2026 04:56:12 +0000 Subject: automatic import of ament_cmake --- ament_cmake.spec | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'ament_cmake.spec') diff --git a/ament_cmake.spec b/ament_cmake.spec index 87ebabd..c257c9b 100644 --- a/ament_cmake.spec +++ b/ament_cmake.spec @@ -106,7 +106,37 @@ for pkg in $SUBPKGS; do done %install -# Everything installed into the buildroot by %build; nothing more to do. +# rpmbuild wipes the buildroot before the install phase, so the cmake installs +# done in the build phase are gone. Re-install all sub-packages from the .obj/ +# build trees (cmake --install is idempotent — no reconfigure/rebuild needed). +SUBPKGS=" \ + ament_cmake_core \ + ament_cmake_export_definitions \ + ament_cmake_export_dependencies \ + ament_cmake_export_include_directories \ + ament_cmake_export_libraries \ + ament_cmake_export_link_flags \ + ament_cmake_export_targets \ + ament_cmake_gen_version_h \ + ament_cmake_gmock \ + ament_cmake_gtest \ + ament_cmake_include_directories \ + ament_cmake_libraries \ + ament_cmake_python \ + ament_cmake_target_dependencies \ + ament_cmake_version \ + ament_cmake_vendor_package \ + ament_cmake_test \ + ament_cmake \ + ament_cmake_google_benchmark \ + ament_cmake_pytest \ + ament_cmake_auto \ + ament_cmake_python_test \ +" + +for pkg in $SUBPKGS; do + DESTDIR="%{buildroot}" cmake --install ".obj/$pkg" +done %files /opt/ros/%{ros_distro} -- cgit v1.2.3