diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-19 19:16:01 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-19 19:16:01 +0000 |
| commit | bc4c67ce7b883dbc6c1958bf83c854edf7a7a255 (patch) | |
| tree | ade461fb1c6636c16df9def47333d89083cd8cde /play-motion2-msgs.spec | |
| parent | 53b665decd9202560a582f0da4b6a11e855fc452 (diff) | |
automatic import of ros-humble-play-motion2-msgsopeneuler24.03_LTS_SP3
Diffstat (limited to 'play-motion2-msgs.spec')
| -rw-r--r-- | play-motion2-msgs.spec | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/play-motion2-msgs.spec b/play-motion2-msgs.spec new file mode 100644 index 0000000..14196b9 --- /dev/null +++ b/play-motion2-msgs.spec @@ -0,0 +1,70 @@ +%define ros_distro humble +%define RosPkgName play-motion2-msgs +%define src_version 1.8.6 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.8.6 +Release: 1%{?dist} +Summary: Play a pre-recorded motion on a robot +License: Apache License 2.0 +URL: https://github.com/pal-robotics/play_motion2.git +Source0: %{RosPkgName}-%{src_version}.tar.gz + +%global debug_package %{nil} +%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') +%global __provides_exclude_from ^/opt/ros/%{ros_distro}/.*$ +%global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$ + +BuildRequires: cmake +BuildRequires: ros-%{ros_distro}-action-msgs +BuildRequires: ros-%{ros_distro}-ament-cmake +BuildRequires: ros-%{ros_distro}-builtin-interfaces +BuildRequires: ros-%{ros_distro}-rosidl-default-generators +BuildRequires: ros-%{ros_distro}-rosidl-default-runtime + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-action-msgs +Requires: ros-%{ros_distro}-builtin-interfaces +Requires: ros-%{ros_distro}-rosidl-default-runtime + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Play a pre-recorded motion on a robot + +%prep +%autosetup -n %{RosPkgName}-%{src_version} + +%build +source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true +export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH} +export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} +cd play_motion2_msgs +mkdir -p .obj && cd .obj +%cmake3 \ + -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \ + -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -UINCLUDE_INSTALL_DIR -ULIB_INSTALL_DIR -USYSCONF_INSTALL_DIR -USHARE_INSTALL_PREFIX -ULIB_SUFFIX \ + -DSETUPTOOLS_DEB_LAYOUT=OFF \ + -DBUILD_TESTING=OFF -DTESTING=OFF -DCMAKE_SUPPRESS_REGENERATION=ON \ + .. +make %{?_smp_mflags} + +%install +source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true +export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH} +export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} +cd play_motion2_msgs +cd .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Sat Sep 19 2026 ai-importer <ai-importer@openeuler.org> - 1.8.6-1 +- Initial import (ROS batch) |
