summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-28 11:59:35 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-28 11:59:35 +0000
commit10bf2452560c4bcd7c442107aec2af75118b7591 (patch)
tree7c107a5017268bebd786c299e3310cc1bba97716
parent9a7279080f21efb158afb0f856e076c71ac11754 (diff)
automatic import of gazebo-rosopeneuler24.03_LTS_SP3
-rw-r--r--.gitignore1
-rw-r--r--gazebo-ros.spec87
-rw-r--r--sources1
3 files changed, 89 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0cd27f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gazebo-ros-3.9.0.tar.gz
diff --git a/gazebo-ros.spec b/gazebo-ros.spec
new file mode 100644
index 0000000..e321d2c
--- /dev/null
+++ b/gazebo-ros.spec
@@ -0,0 +1,87 @@
+%define ros_distro humble
+%define RosPkgName gazebo-ros
+
+# topdir: gazebo-ros-3.9.0 (via --transform; source is gazebo_ros_pkgs monorepo,
+# target sub-package gazebo_ros/ is built from %{name}-%{version}/gazebo_ros/)
+
+Name: gazebo-ros
+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: gazebo-ros-%{version}.tar.gz
+
+# ROS layout: /opt/ros prefix, no debug, no autodeps scan, no python bytecode
+%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: make
+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}-launch-ros
+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 provides the
+gazebo_ros ROS 2 node, plugins and helper libraries that bridge the classic
+Gazebo simulator with ROS 2.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+# ROS bootstrap environment
+[ -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}
+
+# Build only the gazebo_ros sub-package from the monorepo
+cd gazebo_ros
+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}" \
+ -UINCLUDE_INSTALL_DIR -ULIB_INSTALL_DIR -USYSCONF_INSTALL_DIR -USHARE_INSTALL_PREFIX -ULIB_SUFFIX \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF \
+ -DBUILD_TESTING=OFF \
+ ..
+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}
+cd gazebo_ros/.obj
+make install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Mon Sep 28 2026 AI Importer <ai-importer@openeuler.org> - 3.9.0-1
+- Initial package for openEuler (ROS 2 Humble)
diff --git a/sources b/sources
new file mode 100644
index 0000000..a858ce9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a30778ca5fbfa52914995edce7d0c147 gazebo-ros-3.9.0.tar.gz