summaryrefslogtreecommitdiff
path: root/launch-frontend-py.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-18 03:20:26 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-18 03:20:26 +0000
commit5ff36ec645a3c39bac888a78c0b46080430a0d17 (patch)
treeccca3f5109f12a4a60756e707b7849e46f1e6317 /launch-frontend-py.spec
parent5ddf0d16b06ccbf8643fccb6ef88b8db23b04447 (diff)
automatic import of ros-humble-launch-frontend-pyopeneuler24.03_LTS_SP3
Diffstat (limited to 'launch-frontend-py.spec')
-rw-r--r--launch-frontend-py.spec62
1 files changed, 62 insertions, 0 deletions
diff --git a/launch-frontend-py.spec b/launch-frontend-py.spec
new file mode 100644
index 0000000..beefe8e
--- /dev/null
+++ b/launch-frontend-py.spec
@@ -0,0 +1,62 @@
+%define ros_distro humble
+%define RosPkgName launch-frontend-py
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.1.0
+Release: 1%{?dist}
+Summary: Python frontend for writing ROS 2 launch files
+License: Apache-2.0
+URL: https://github.com/ros-tooling/launch_frontend_py
+Source0: https://github.com/ros-tooling/launch_frontend_py/archive/refs/heads/main.tar.gz#/launch_frontend_py-main.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}-ament-cmake-python
+BuildRequires: ros-%{ros_distro}-launch
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-launch
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+Python frontend for writing ROS 2 launch files
+
+%prep
+%autosetup -n launch_frontend_py-main
+
+%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 .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
+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 .obj
+make install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Fri Sep 18 2026 ai-importer <ai-importer@openeuler.org> - 0.1.0-1
+- Initial import (ROS batch)