diff options
Diffstat (limited to 'gazebo-ros.spec')
| -rw-r--r-- | gazebo-ros.spec | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/gazebo-ros.spec b/gazebo-ros.spec index 838a1ca..0369999 100644 --- a/gazebo-ros.spec +++ b/gazebo-ros.spec @@ -4,8 +4,8 @@ Name: ros-%{ros_distro}-%{RosPkgName} Version: 3.7.0 -Release: 1%{?dist} -Summary: Utilities to interface with +Release: 2%{?dist} +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 @@ -18,7 +18,6 @@ Source0: %{RosPkgName}-%{src_version}.tar.gz BuildRequires: cmake 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 @@ -34,7 +33,6 @@ 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}-launch-ros Requires: ros-%{ros_distro}-rcl @@ -50,11 +48,44 @@ Provides: %{name}-doc = %{version}-%{release} Provides: %{name}-runtime = %{version}-%{release} %description -Utilities to interface with +Utilities to interface with Gazebo through ROS. %prep %autosetup -n %{RosPkgName}-%{src_version} +# gazebo11 (Gazebo Classic 11) is not available in openEuler repos. +# ros-humble-gazebo-dev from the additional repo transitively Requires +# gazebo11/libgazebo11-devel which have no provider. Remove gazebo_dev +# dependency from package.xml and replace CMakeLists.txt with a minimal +# version that builds only non-Gazebo artifacts (Python scripts, launch/worlds). +sed -i '/<depend>gazebo_dev<\/depend>/d' gazebo_ros/package.xml + +cat > gazebo_ros/CMakeLists.txt << 'CMEOF' +cmake_minimum_required(VERSION 3.5) +project(gazebo_ros) + +find_package(ament_cmake REQUIRED) + +ament_python_install_package(scripts) + +ament_package() + +install(PROGRAMS + scripts/gazebo_ros_paths.py + DESTINATION lib/${PROJECT_NAME}/ +) + +install(PROGRAMS + scripts/spawn_entity.py + DESTINATION lib/${PROJECT_NAME}/ +) + +install(DIRECTORY + launch worlds + DESTINATION share/${PROJECT_NAME}/ +) +CMEOF + %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} @@ -83,7 +114,10 @@ make install DESTDIR=%{buildroot} /opt/ros/%{ros_distro} %changelog +* Tue Oct 13 2026 ai-importer <ai-importer@openeuler.org> - 3.7.0-2 +- Remove ros-humble-gazebo-dev dependency (gazebo11 not available in openEuler) +- Build only non-Gazebo artifacts (Python scripts, launch/worlds) * Tue Oct 13 2026 ai-importer <ai-importer@openeuler.org> - 3.7.0-1 - Rebase to 3.7.0 (ROS batch import) * Fri Oct 09 2026 ai-importer <ai-importer@openeuler.org> - 3.7.0-1 -- Initial import (ROS batch)
\ No newline at end of file +- Initial import (ROS batch) |
