summaryrefslogtreecommitdiff
path: root/eventdispatch-python.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-15 11:09:39 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-15 11:09:39 +0000
commit338a0f1d2007ad26adcf969f58564ea2f82c515d (patch)
tree978460b677d3461df54877ba3d6256ccb15c4549 /eventdispatch-python.spec
parentfdf7414a2bdf14002a25859a24a334169f59c846 (diff)
automatic import of ros-humble-eventdispatch-python
Diffstat (limited to 'eventdispatch-python.spec')
-rw-r--r--eventdispatch-python.spec56
1 files changed, 56 insertions, 0 deletions
diff --git a/eventdispatch-python.spec b/eventdispatch-python.spec
new file mode 100644
index 0000000..3991782
--- /dev/null
+++ b/eventdispatch-python.spec
@@ -0,0 +1,56 @@
+%define ros_distro humble
+%define RosPkgName eventdispatch-python
+%define src_version 0.2.29-1
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.2.29
+Release: 1%{?dist}
+Summary: python-eventdispatch for ROS2 distribution
+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: python3-pip
+
+Requires: ros-%{ros_distro}-ros-workspace
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+python-eventdispatch for ROS2 distribution
+
+%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}
+cd eventdispatch_python
+%{__python3} setup.py build
+
+%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_python
+%{__python3} -m pip install --no-build-isolation --no-deps \
+ --prefix /opt/ros/%{ros_distro} \
+ --root %{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)