From a6b5bea298edcec97c2b18aa52097b0596af36a8 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 21 Sep 2026 15:04:59 +0000 Subject: automatic import of ros-humble-lanelet2-io --- ros-humble-lanelet2-io.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 ros-humble-lanelet2-io.spec (limited to 'ros-humble-lanelet2-io.spec') diff --git a/ros-humble-lanelet2-io.spec b/ros-humble-lanelet2-io.spec new file mode 100644 index 0000000..2a38db4 --- /dev/null +++ b/ros-humble-lanelet2-io.spec @@ -0,0 +1,75 @@ +# topdir(in archive): ros-humble-lanelet2-io-1.2.3 (repo root of the lanelet2 +# monorepo; the ROS package source lives in the lanelet2_io/ sub-directory) +%define ros_distro humble +%define RosPkgName lanelet2-io + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.2.3 +Release: 1%{?dist} +Summary: Parser/Writer module for lanelet2 +License: BSD +URL: https://github.com/fzi-forschungszentrum-informatik/lanelet2.git +Source0: %{name}-%{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: cmake +BuildRequires: ros-%{ros_distro}-ament-cmake +BuildRequires: ros-%{ros_distro}-ament-cmake-core +BuildRequires: ros-%{ros_distro}-mrt-cmake-modules +BuildRequires: ros-%{ros_distro}-lanelet2-core +BuildRequires: boost-devel +BuildRequires: pugixml-devel + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-lanelet2-core +Requires: boost-devel +Requires: pugixml-devel + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Parser/Writer module for lanelet2 + +%prep +%autosetup -n %{name}-%{version} + +%build +[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || 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} +# rospkg OsDetect does not know openEuler, fall back to rhel so mrt_cmake_modules resolves deps +export ROS_OS_OVERRIDE=rhel:8:final +cd lanelet2_io +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 +[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || 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} +export ROS_OS_OVERRIDE=rhel:8:final +cd lanelet2_io +cd .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Mon Sep 21 2026 ai-importer - 1.2.3-1 +- Initial import (ROS) -- cgit v1.2.3