diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-21 11:23:55 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-21 11:23:55 +0000 |
| commit | 46b4e4135f0829bf55d6b321e7fff0792a01fce2 (patch) | |
| tree | 76edb0377d652a532d1280fcbe760b6a2d721403 /rmf-obstacle-msgs.spec | |
| parent | 4ce431964ca53df310481e903914504653225074 (diff) | |
automatic import of ros-humble-rmf-obstacle-msgsopeneuler24.03_LTS_SP3
Diffstat (limited to 'rmf-obstacle-msgs.spec')
| -rw-r--r-- | rmf-obstacle-msgs.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/rmf-obstacle-msgs.spec b/rmf-obstacle-msgs.spec new file mode 100644 index 0000000..9e6411f --- /dev/null +++ b/rmf-obstacle-msgs.spec @@ -0,0 +1,72 @@ +%define ros_distro humble +%define RosPkgName rmf-obstacle-msgs +%define src_version 3.0.2 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 3.0.2 +Release: 1%{?dist} +Summary: A package containing messages for describing obstacles in the environment +License: Apache License 2.0 +URL: https://github.com/open-rmf/rmf_internal_msgs/tree/main +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}-ament-cmake +BuildRequires: ros-%{ros_distro}-builtin-interfaces +BuildRequires: ros-%{ros_distro}-geometry-msgs +BuildRequires: ros-%{ros_distro}-rosidl-default-generators +BuildRequires: ros-%{ros_distro}-rosidl-default-runtime +BuildRequires: ros-%{ros_distro}-std-msgs + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-builtin-interfaces +Requires: ros-%{ros_distro}-geometry-msgs +Requires: ros-%{ros_distro}-rosidl-default-runtime +Requires: ros-%{ros_distro}-std-msgs + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +A package containing messages for describing obstacles in the environment + +%prep +%autosetup -n %{RosPkgName}-%{src_version} + +%build +[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || 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 rmf_obstacle_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 +[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || 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 rmf_obstacle_msgs +cd .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Mon Sep 21 2026 ai-importer <ai-importer@openeuler.org> - 3.0.2-1 +- Initial import (ROS batch) |
