diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-21 03:08:48 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-21 03:08:48 +0000 |
| commit | 2411c4cb64e36a7cb13a9d57c2737f897b0c3912 (patch) | |
| tree | b7b5f8bef3949a41f0eb7b5361843ee8740a3bb9 /nebula-continental-hw-interfaces.spec | |
| parent | 5764e90757888bfa5558b7327ca798b1156dac67 (diff) | |
automatic import of ros-humble-nebula-continental-hw-interfacesopeneuler24.03_LTS_SP3
Diffstat (limited to 'nebula-continental-hw-interfaces.spec')
| -rw-r--r-- | nebula-continental-hw-interfaces.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/nebula-continental-hw-interfaces.spec b/nebula-continental-hw-interfaces.spec new file mode 100644 index 0000000..d64ced4 --- /dev/null +++ b/nebula-continental-hw-interfaces.spec @@ -0,0 +1,72 @@ +%define ros_distro humble +%define RosPkgName nebula-continental-hw-interfaces +%global commit 26749c80dff89f39000a9817141143c05ec151ab + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.2.0 +Release: 1%{?dist} +Summary: Nebula HW Interfaces Continental +License: Apache-2.0 +URL: https://github.com/tier4/nebula +Source0: https://github.com/tier4/nebula/archive/%{commit}.tar.gz#/%{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: cmake +BuildRequires: gcc-c++ +BuildRequires: ros-%{ros_distro}-ament-cmake +BuildRequires: ros-%{ros_distro}-autoware-cmake +BuildRequires: ros-%{ros_distro}-nebula-continental-common +BuildRequires: ros-%{ros_distro}-nebula-core-common +BuildRequires: ros-%{ros_distro}-nebula-core-hw-interfaces +BuildRequires: ros-%{ros_distro}-nebula_msgs + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-nebula-continental-common +Requires: ros-%{ros_distro}-nebula-core-common +Requires: ros-%{ros_distro}-nebula-core-hw-interfaces +Requires: ros-%{ros_distro}-nebula_msgs + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Nebula HW Interfaces Continental — ROS 2 hardware interface layer for +Continental ARS548 and SRR520 radar sensors, part of the Nebula sensor +driver suite. + +%prep +%autosetup -n %{commit} + +%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} + +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 \ + ../src/nebula_continental/nebula_continental_hw_interfaces +make %{?_smp_mflags} + +%install +cd .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro}/ + +%changelog +* Mon Sep 21 2026 ROS SIG <ros@openeuler.org> - 1.2.0-1 +- Initial package for ros-%{ros_distro}-%{RosPkgName} 1.2.0 |
