summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-21 13:27:10 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-21 13:27:10 +0000
commit92991a9f34454d099db5d5e6ed8a4cdd3b211ce7 (patch)
tree36b12001de7e35db9871deb832acf12794f57d6f
parentbf7bfdb440ecb4bee1b51c207877e93df240cdc4 (diff)
automatic import of ros-humble-rmf-websocketopeneuler24.03_LTS_SP3
-rw-r--r--.gitignore1
-rw-r--r--rmf-websocket.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8e4a3bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rmf-websocket-2.1.8-1.tar.gz
diff --git a/rmf-websocket.spec b/rmf-websocket.spec
new file mode 100644
index 0000000..fa4f276
--- /dev/null
+++ b/rmf-websocket.spec
@@ -0,0 +1,76 @@
+%define ros_distro humble
+%define RosPkgName rmf-websocket
+%define src_version 2.1.8-1
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 2.1.8
+Release: 1%{?dist}
+Summary: A package managing the websocket api endpoints in RMF system.
+License: Apache License 2.0
+URL: https://github.com/open-rmf/rmf_ros2/tree/humble
+Source0: %{RosPkgName}-%{src_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: ros-%{ros_distro}-ament-cmake
+BuildRequires: ros-%{ros_distro}-nlohmann-json-schema-validator-vendor
+BuildRequires: ros-%{ros_distro}-rclcpp
+BuildRequires: ros-%{ros_distro}-rmf-utils
+BuildRequires: boost-devel
+BuildRequires: eigen3-devel
+BuildRequires: nlohmann-json-devel
+BuildRequires: libwebsocketpp-dev
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-nlohmann-json-schema-validator-vendor
+Requires: ros-%{ros_distro}-rclcpp
+Requires: ros-%{ros_distro}-rmf-utils
+Requires: boost-devel
+Requires: nlohmann-json-devel
+Requires: libwebsocketpp-dev
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+A package managing the websocket api endpoints in RMF system.
+
+%prep
+%autosetup -n %{RosPkgName}-%{src_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}
+cd rmf_websocket
+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 \
+ ..
+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 rmf_websocket
+cd .obj
+make install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Mon Sep 21 2026 ai-importer <ai-importer@openeuler.org> - 2.1.8-1
+- Initial import (ROS batch)
diff --git a/sources b/sources
new file mode 100644
index 0000000..744b274
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1ccc524cff64bd397cc901f4f8deb289 rmf-websocket-2.1.8-1.tar.gz