diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-15 11:09:57 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-15 11:09:57 +0000 |
| commit | 941c7246a769290e72a9f51370e900e59f51a647 (patch) | |
| tree | 06393de3a54a6f89ec50360072329f22caf3ab49 | |
| parent | 6a6de5c232aaa927e891b37839935073f122d214 (diff) | |
automatic import of ros-humble-eventdispatch-ros2openeuler24.03_LTS_SP3
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | eventdispatch-ros2.spec | 76 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/eventdispatch-ros2-0.2.29-1.tar.gz diff --git a/eventdispatch-ros2.spec b/eventdispatch-ros2.spec new file mode 100644 index 0000000..1ed7ebf --- /dev/null +++ b/eventdispatch-ros2.spec @@ -0,0 +1,76 @@ +%define ros_distro humble +%define RosPkgName eventdispatch-ros2 +%define src_version 0.2.29-1 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.2.29 +Release: 1%{?dist} +Summary: ROS2 wrapper for python-eventdispatch +License: Apache 2.0 +URL: https://github.com/cyan-at/ros2_eventdispatch +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: python3-devel +BuildRequires: python3-setuptools +BuildRequires: ros-%{ros_distro}-ament-cmake +BuildRequires: ros-%{ros_distro}-ament-cmake-python +BuildRequires: ros-%{ros_distro}-rclcpp +BuildRequires: ros-%{ros_distro}-rclpy +BuildRequires: ros-%{ros_distro}-eventdispatch-ros2-interfaces +BuildRequires: ros-%{ros_distro}-eventdispatch-python + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-rclcpp +Requires: ros-%{ros_distro}-rclpy +Requires: ros-%{ros_distro}-eventdispatch-ros2-interfaces +Requires: ros-%{ros_distro}-eventdispatch-python + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +ROS2 wrapper for python-eventdispatch, providing event-driven +communication patterns for ROS2 nodes. + +%prep +%autosetup -n %{RosPkgName}-%{src_version} + +%build +source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || 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 eventdispatch_ros2/.obj +cd eventdispatch_ros2/.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 \ + .. +make %{?_smp_mflags} + +%install +source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || 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 eventdispatch_ros2/.obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Mon Sep 15 2026 ai-importer <ai-importer@openeuler.org> - 0.2.29-1 +- Initial import (ROS batch) @@ -0,0 +1 @@ +cd01d56345910413ecf6a2cd9b57f9c2 eventdispatch-ros2-0.2.29-1.tar.gz |
