diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-10 01:21:46 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-10 01:21:46 +0000 |
| commit | cd36c013949af697a2e1c6e2e115e3288005427d (patch) | |
| tree | 0559f377dc30e381831595611a712eeb248e5d6d /qb-softhand-industry-description.spec | |
| parent | dba5903be5ef38c94a0ffce102d75396d26d9c2e (diff) | |
automatic import of ros-humble-qb-softhand-industry-descriptionopeneuler24.03_LTS_SP3
Diffstat (limited to 'qb-softhand-industry-description.spec')
| -rw-r--r-- | qb-softhand-industry-description.spec | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/qb-softhand-industry-description.spec b/qb-softhand-industry-description.spec new file mode 100644 index 0000000..48143eb --- /dev/null +++ b/qb-softhand-industry-description.spec @@ -0,0 +1,63 @@ +%define ros_distro humble +%define RosPkgName qb-softhand-industry-description +%define src_version 2.1.2-4 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 2.1.2 +Release: 1%{?dist} +Summary: This package contains the ROS description for qbrobotics® SoftHand INdustry dev +License: BSD 3-Clause +URL: https://bitbucket.org/qbrobotics/qbshin-ros/tree/production-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 + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +This package contains the ROS description for qbrobotics® SoftHand INdustry device. + +%prep +%autosetup -n %{RosPkgName}-%{src_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} +cd qb_softhand_industry_description +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} +cd qb_softhand_industry_description +cd .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Sat Oct 10 2026 ai-importer <ai-importer@openeuler.org> - 2.1.2-1 +- Initial import (ROS batch) |
