summaryrefslogtreecommitdiff
path: root/eventdispatch-ros2-interfaces.spec
diff options
context:
space:
mode:
Diffstat (limited to 'eventdispatch-ros2-interfaces.spec')
-rw-r--r--eventdispatch-ros2-interfaces.spec67
1 files changed, 67 insertions, 0 deletions
diff --git a/eventdispatch-ros2-interfaces.spec b/eventdispatch-ros2-interfaces.spec
new file mode 100644
index 0000000..2b633b3
--- /dev/null
+++ b/eventdispatch-ros2-interfaces.spec
@@ -0,0 +1,67 @@
+%define ros_distro humble
+%define RosPkgName eventdispatch-ros2-interfaces
+%global commit 6c88c7a5f6fedb27a4d1f331a8ade92c9c6bddb7
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.2.29
+Release: 1%{?dist}
+Summary: ROSEvent srv / msg interfaces for ROS2
+License: Apache-2.0
+URL: https://github.com/cyan-at/ros2_eventdispatch
+Source0: https://github.com/cyan-at/ros2_eventdispatch/archive/%{commit}.tar.gz#/ros2_eventdispatch-%{commit}.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: ros-%{ros_distro}-ament-cmake
+BuildRequires: ros-%{ros_distro}-rosidl-default-generators
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-rosidl-default-runtime
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+ROSEvent srv / msg interface definitions for the eventdispatch ROS2 package.
+Provides ROS2 service and message types used by eventdispatch-ros2.
+
+%prep
+%autosetup -n %{commit}
+
+%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_interfaces/.obj
+cd eventdispatch_ros2_interfaces/.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_interfaces/.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)