summaryrefslogtreecommitdiff
path: root/irobot-create-gazebo-plugins.spec
diff options
context:
space:
mode:
Diffstat (limited to 'irobot-create-gazebo-plugins.spec')
-rw-r--r--irobot-create-gazebo-plugins.spec73
1 files changed, 73 insertions, 0 deletions
diff --git a/irobot-create-gazebo-plugins.spec b/irobot-create-gazebo-plugins.spec
new file mode 100644
index 0000000..c5aef48
--- /dev/null
+++ b/irobot-create-gazebo-plugins.spec
@@ -0,0 +1,73 @@
+%define ros_distro humble
+%define RosPkgName irobot-create-gazebo-plugins
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 2.0.0
+Release: 1%{?dist}
+Summary: Ignition/Gazebo GUI plugins for the simulated iRobot Create 3 Educational Robot
+License: BSD
+URL: https://github.com/iRobotEducation/create3_sim
+Source0: https://github.com/iRobotEducation/create3_sim/archive/refs/tags/%{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: gcc-c++
+BuildRequires: ros-%{ros_distro}-ament-cmake
+BuildRequires: ros-%{ros_distro}-ros-gz
+BuildRequires: qt5-qtbase-devel
+BuildRequires: qt5-qtdeclarative-devel
+BuildRequires: qt5-qtquickcontrols2-devel
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-ros-gz
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+Ignition/Gazebo GUI plugins for the simulated iRobot Create 3 Educational
+Robot. Provides the Create3Hmi Gazebo GUI plugin.
+
+%prep
+%autosetup -n create3_sim-%{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 irobot_create_gz/irobot_create_gz_plugins/.obj
+cd irobot_create_gz/irobot_create_gz_plugins/.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 irobot_create_gz/irobot_create_gz_plugins/.obj
+make install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}/
+
+%changelog
+* Sun Sep 20 2026 ROS SIG <ros@openeuler.org> - 2.0.0-1
+- 自动生成:引入 ros-humble-irobot-create-gazebo-plugins 2.0.0