From e40d075413e3f197e75e29ff781e58b746cf09b3 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 3 Apr 2026 09:35:27 +0000 Subject: automatic import of angles --- angles.spec | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/angles.spec b/angles.spec index 4b89240..e4c6d85 100644 --- a/angles.spec +++ b/angles.spec @@ -54,16 +54,28 @@ This package provides a set of simple math utilities to work # in the install tree and source it. It will set things like # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi -cd %{RosPkgName}-%{version} -%py3_build +mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} +%cmake3 \ + -UINCLUDE_INSTALL_DIR \ + -ULIB_INSTALL_DIR \ + -USYSCONF_INSTALL_DIR \ + -USHARE_INSTALL_PREFIX \ + -ULIB_SUFFIX \ + -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \ + -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -DSETUPTOOLS_DEB_LAYOUT=OFF \ + .. + +make %{?_smp_mflags} %install # In case we're installing to a non-standard location, look for a setup.sh # in the install tree and source it. It will set things like # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi -cd %{RosPkgName}-%{version} -%py3_install -- --prefix "/opt/ros/%{ros_distro}" +cd .obj-%{_target_platform} +make install DESTDIR=%{buildroot} %if 0%{?with_tests} %check -- cgit v1.2.3