diff options
| -rw-r--r-- | angles.spec | 20 |
1 files 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 |
