From 5ff36ec645a3c39bac888a78c0b46080430a0d17 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 18 Sep 2026 03:20:26 +0000 Subject: automatic import of ros-humble-launch-frontend-py --- launch-frontend-py.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 launch-frontend-py.spec (limited to 'launch-frontend-py.spec') 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 - 0.1.0-1 +- Initial import (ROS batch) -- cgit v1.2.3