diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-23 15:21:14 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-23 15:21:14 +0000 |
| commit | fb4788cc065c6bbcf5c242c6a974e9165e6d22cb (patch) | |
| tree | be41e248b741897c32b1401f274059d4480d9dc0 /gazebo-ros.spec | |
| parent | 2f2c20ef0d17097e099fa80f9e3f5f7bf39cdc3b (diff) | |
automatic import of ros-humble-gazebo-rosopeneuler24.03_LTS_SP3
Diffstat (limited to 'gazebo-ros.spec')
| -rw-r--r-- | gazebo-ros.spec | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/gazebo-ros.spec b/gazebo-ros.spec index 3b3572b..d6429b9 100644 --- a/gazebo-ros.spec +++ b/gazebo-ros.spec @@ -1,27 +1,31 @@ +# topdir: ros-humble-gazebo-ros-3.9.0 (local tar via --transform over the full gazebo_ros_pkgs repo clone) %define ros_distro humble %define RosPkgName gazebo-ros -%define src_version 3.7.0 +%global commit 59467572f89b22b273b9d6bc05484ccc7f6ec072 Name: ros-%{ros_distro}-%{RosPkgName} -Version: 3.7.0 +Version: 3.9.0 Release: 1%{?dist} -Summary: Utilities to interface with +Summary: Utilities to interface with Gazebo through ROS License: Apache 2.0 -URL: https://github.com/ros-simulation/gazebo_ros_pkgs/tree/ros2 -Source0: %{RosPkgName}-%{src_version}.tar.gz +URL: https://github.com/ros-simulation/gazebo_ros_pkgs +Source0: %{url}/archive/%{commit}.tar.gz#/ros-%{ros_distro}-%{RosPkgName}-%{version}.tar.gz +# ROS layout: everything under /opt/ros/<distro>; disable debugsubpackages +# and autodeps scanning under that prefix (ament indirect-dependency model). %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: gcc-c++ +BuildRequires: qt5-qtbase-devel BuildRequires: ros-%{ros_distro}-ament-cmake BuildRequires: ros-%{ros_distro}-builtin-interfaces BuildRequires: ros-%{ros_distro}-gazebo-dev BuildRequires: ros-%{ros_distro}-gazebo-msgs BuildRequires: ros-%{ros_distro}-geometry-msgs -BuildRequires: ros-%{ros_distro}-launch-ros BuildRequires: ros-%{ros_distro}-rcl BuildRequires: ros-%{ros_distro}-rclcpp BuildRequires: ros-%{ros_distro}-rclpy @@ -29,18 +33,19 @@ BuildRequires: ros-%{ros_distro}-rmw BuildRequires: ros-%{ros_distro}-sensor-msgs BuildRequires: ros-%{ros_distro}-std-srvs BuildRequires: ros-%{ros_distro}-tinyxml-vendor -BuildRequires: python3-lxml Requires: ros-%{ros_distro}-ros-workspace Requires: ros-%{ros_distro}-ament-cmake Requires: ros-%{ros_distro}-builtin-interfaces Requires: ros-%{ros_distro}-gazebo-dev Requires: ros-%{ros_distro}-gazebo-msgs +Requires: ros-%{ros_distro}-geometry-msgs Requires: ros-%{ros_distro}-launch-ros Requires: ros-%{ros_distro}-rcl Requires: ros-%{ros_distro}-rclcpp Requires: ros-%{ros_distro}-rclpy Requires: ros-%{ros_distro}-rmw +Requires: ros-%{ros_distro}-sensor-msgs Requires: ros-%{ros_distro}-std-srvs Requires: ros-%{ros_distro}-tinyxml-vendor Requires: python3-lxml @@ -50,38 +55,41 @@ Provides: %{name}-doc = %{version}-%{release} Provides: %{name}-runtime = %{version}-%{release} %description -Utilities to interface with +Utilities to interface with Gazebo through ROS. + +This package is part of the ROS 2 %{ros_distro} distribution. It wraps the +gazebo_ros package from the gazebo_ros_pkgs repository, providing nodes and +plugins that bridge Gazebo Classic with ROS 2. %prep -%autosetup -n %{RosPkgName}-%{src_version} +%autosetup -n %{name}-%{version} %build -source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true +cd gazebo_ros +[ -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 gazebo_ros -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 \ - .. +mkdir -p .obj +cd .obj +cmake \ + -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \ + -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -DBUILD_TESTING=OFF \ + -DTESTING=OFF \ + -DCMAKE_SUPPRESS_REGENERATION=ON \ + -UINCLUDE_INSTALL_DIR -ULIB_INSTALL_DIR -USYSCONF_INSTALL_DIR -USHARE_INSTALL_PREFIX -ULIB_SUFFIX \ + -DSETUPTOOLS_DEB_LAYOUT=OFF \ + .. 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 gazebo_ros -cd .obj +cd gazebo_ros/.obj make install DESTDIR=%{buildroot} %files /opt/ros/%{ros_distro} %changelog -* Sat Sep 19 2026 ai-importer <ai-importer@openeuler.org> - 3.7.0-1 -- Initial import (ROS batch) +* Wed Sep 23 2026 openEuler ROS SIG <ros@openeuler.org> - 3.9.0-1 +- Initial package of gazebo_ros 3.9.0 for ROS 2 humble |
