summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-04-03 09:35:27 +0000
committerCoprDistGit <infra@openeuler.org>2026-04-03 09:35:27 +0000
commite40d075413e3f197e75e29ff781e58b746cf09b3 (patch)
tree31518ac3c9cb60db6fb4f47e8371a00f9daaef47
parente8bd1a979c6b74559ce1ca3fdf239fe51dace427 (diff)
automatic import of anglesopeneuler24.03_LTS
-rw-r--r--angles.spec20
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