# 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 %global commit 59467572f89b22b273b9d6bc05484ccc7f6ec072 Name: ros-%{ros_distro}-%{RosPkgName} Version: 3.9.0 Release: 1%{?dist} Summary: Utilities to interface with Gazebo through ROS License: Apache 2.0 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/; 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}-rcl BuildRequires: ros-%{ros_distro}-rclcpp BuildRequires: ros-%{ros_distro}-rclpy BuildRequires: ros-%{ros_distro}-rmw BuildRequires: ros-%{ros_distro}-sensor-msgs BuildRequires: ros-%{ros_distro}-std-srvs BuildRequires: ros-%{ros_distro}-tinyxml-vendor 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 Provides: %{name}-devel = %{version}-%{release} Provides: %{name}-doc = %{version}-%{release} Provides: %{name}-runtime = %{version}-%{release} %description 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 %{name}-%{version} %build 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} 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 cd gazebo_ros/.obj make install DESTDIR=%{buildroot} %files /opt/ros/%{ros_distro} %changelog * Wed Sep 23 2026 openEuler ROS SIG - 3.9.0-1 - Initial package of gazebo_ros 3.9.0 for ROS 2 humble