diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-21 11:44:50 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-21 11:44:50 +0000 |
| commit | 112359b68df0b6d59c3124040e4fe493aee68901 (patch) | |
| tree | dc2cfca0ac2b09c4cd04b00ab32e8c7e9f1ef41b /irobot-create-msgs.spec | |
| parent | 05e8a6626cd2c75236f5d1127d80606d1cd233e2 (diff) | |
automatic import of ros-humble-irobot-create-msgs
Diffstat (limited to 'irobot-create-msgs.spec')
| -rw-r--r-- | irobot-create-msgs.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/irobot-create-msgs.spec b/irobot-create-msgs.spec new file mode 100644 index 0000000..aed5031 --- /dev/null +++ b/irobot-create-msgs.spec @@ -0,0 +1,72 @@ +%define ros_distro humble +%define RosPkgName irobot-create-msgs +%define src_version 2.1.0-1 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 2.1.0 +Release: 1%{?dist} +Summary: Package containing action, message, and service definitions used by the iRobot( +License: BSD +URL: https://github.com/iRobotEducation/irobot_create_msgs/tree/humble +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}-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}-action-msgs +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 +Package containing action, message, and service definitions used by the iRobot(R) Create(R) platform + +%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} +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 .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Sun Sep 20 2026 ai-importer <ai-importer@openeuler.org> - 2.1.0-1 +- Initial import (ROS batch) |
