diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-20 02:07:21 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-20 02:07:21 +0000 |
| commit | 90ccfb2cd891204af655d165bd424a1d8d304dc6 (patch) | |
| tree | ee9d70d9b92644275bc4866b84cf4943ebcff3a4 /clearpath-generator-common.spec | |
| parent | 639fe2a9bc95c3b0490786b222516d1ccdcdaa8e (diff) | |
automatic import of ros-humble-clearpath-generator-common
Diffstat (limited to 'clearpath-generator-common.spec')
| -rw-r--r-- | clearpath-generator-common.spec | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/clearpath-generator-common.spec b/clearpath-generator-common.spec new file mode 100644 index 0000000..6ddbb92 --- /dev/null +++ b/clearpath-generator-common.spec @@ -0,0 +1,73 @@ +%define ros_distro humble +%define RosPkgName clearpath-generator-common +%define src_version 1.3.13-1 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.3.13 +Release: 1%{?dist} +Summary: Clearpath Common Generator +License: BSD +URL: https://github.com/clearpathrobotics/clearpath_common/tree/humble +Source0: %{RosPkgName}-%{src_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}-moveit-setup-srdf-plugins +BuildRequires: ros-%{ros_distro}-clearpath-config +BuildRequires: ros-%{ros_distro}-clearpath-control +BuildRequires: ros-%{ros_distro}-clearpath-description +BuildRequires: ros-%{ros_distro}-clearpath-manipulators + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-moveit-setup-srdf-plugins +Requires: ros-%{ros_distro}-clearpath-config +Requires: ros-%{ros_distro}-clearpath-control +Requires: ros-%{ros_distro}-clearpath-description +Requires: ros-%{ros_distro}-clearpath-manipulators + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Clearpath Common Generator + +%prep +%autosetup -n %{RosPkgName}-%{src_version} + +%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} +cd clearpath_generator_common +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 clearpath_generator_common +cd .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Sun Sep 20 2026 ai-importer <ai-importer@openeuler.org> - 1.3.13-1 +- Initial import (ROS batch) |
