diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-20 22:43:19 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-20 22:43:19 +0000 |
| commit | f113d26a0ab71d6d371a3c5b800c940f2f8482af (patch) | |
| tree | cf1086d8a8bcd87d876de315559d8e900028b7c9 | |
| parent | 6c82c8d256e90e68072a1e4313de84b33d1b97e5 (diff) | |
automatic import of ros-humble-nebula-core-rosopeneuler24.03_LTS_SP3
| -rw-r--r-- | nebula-core-ros.spec | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/nebula-core-ros.spec b/nebula-core-ros.spec index 9607eb5..8787a4a 100644 --- a/nebula-core-ros.spec +++ b/nebula-core-ros.spec @@ -1,15 +1,14 @@ %define ros_distro humble %define RosPkgName nebula-core-ros %global commit 26749c80dff89f39000a9817141143c05ec151ab -%global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: ros-%{ros_distro}-%{RosPkgName} -Version: 1.2.0^20260917git26749c8 +Version: 1.2.0 Release: 1%{?dist} Summary: Nebula ROS Base Libraries -License: Apache 2.0 +License: Apache-2.0 URL: https://github.com/tier4/nebula -Source0: https://github.com/tier4/nebula/archive/%{commit}.tar.gz#/%{commit}.tar.gz +Source0: https://github.com/tier4/nebula/archive/%{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') @@ -46,37 +45,38 @@ Nebula ROS Base Libraries for the Nebula multi-sensor driver framework shared utilities used across Nebula ROS components. %prep -%autosetup -n nebula-%{commit} +# GitHub commit 归档解压根目录为完整 SHA,非 <repo>-<sha> 形式 +%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 nebula_core/nebula_core_ros/.obj -cd nebula_core/nebula_core_ros/.obj +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 \ + -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_core/nebula_core_ros 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} -cd nebula_core/nebula_core_ros/.obj +cd .obj make install DESTDIR=%{buildroot} %files /opt/ros/%{ros_distro}/ %changelog -* Sun Sep 20 2026 ROS SIG <ros@openeuler.org> - 1.2.0^20260917git26749c8-1 -- Initial package for openEuler (snapshot from tier4/nebula main branch) +* Sun Sep 20 2026 ROS SIG <ros@openeuler.org> - 1.2.0-1 +- Initial package for ros-%{ros_distro}-%{RosPkgName} 1.2.0 +- Source: https://github.com/tier4/nebula commit 26749c8 |
