From 75cc440594afb84446b829ac724f8c65260151c5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 17 Sep 2026 05:03:38 +0000 Subject: automatic import of ros-humble-hatchbed-common --- .gitignore | 1 + hatchbed-common.spec | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 86 insertions(+) create mode 100644 hatchbed-common.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..c067a7e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/hatchbed_common-0.1.8.tar.gz diff --git a/hatchbed-common.spec b/hatchbed-common.spec new file mode 100644 index 0000000..fef047d --- /dev/null +++ b/hatchbed-common.spec @@ -0,0 +1,84 @@ +%define ros_distro humble +%define RosPkgName hatchbed-common + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.1.8 +Release: 1%{?dist} +Summary: Common Hatchbed C++ utility code for ROS, such registering and handling updates to ros parameters. +License: BSD +URL: https://github.com/hatchbed/hatchbed_common +Source0: https://github.com/hatchbed/hatchbed_common/archive/refs/tags/%{version}.tar.gz#/hatchbed_common-%{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}-geometry-msgs +BuildRequires: ros-%{ros_distro}-nav-msgs +BuildRequires: ros-%{ros_distro}-rclcpp +BuildRequires: ros-%{ros_distro}-rclcpp-components +BuildRequires: ros-%{ros_distro}-sensor-msgs +BuildRequires: ros-%{ros_distro}-std-msgs +BuildRequires: ros-%{ros_distro}-tf2 +BuildRequires: ros-%{ros_distro}-tf2-msgs +BuildRequires: ros-%{ros_distro}-tf2-ros +BuildRequires: ros-%{ros_distro}-visualization-msgs +BuildRequires: eigen3-devel +BuildRequires: fmt-devel + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-geometry-msgs +Requires: ros-%{ros_distro}-nav-msgs +Requires: ros-%{ros_distro}-rclcpp +Requires: ros-%{ros_distro}-rclcpp-components +Requires: ros-%{ros_distro}-sensor-msgs +Requires: ros-%{ros_distro}-std-msgs +Requires: ros-%{ros_distro}-tf2 +Requires: ros-%{ros_distro}-tf2-msgs +Requires: ros-%{ros_distro}-tf2-ros +Requires: ros-%{ros_distro}-visualization-msgs +Requires: eigen3-devel +Requires: fmt-devel + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Common Hatchbed C++ utility code for ROS, such registering and handling updates to ros parameters. + +%prep +%autosetup -n hatchbed_common-%{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} +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 .obj +make install DESTDIR=%{buildroot} + +%files +/opt/ros/%{ros_distro} + +%changelog +* Wed Sep 17 2026 ai-importer - 0.1.8-1 +- Bump to 0.1.8; fix Source0 to GitHub tag archive with correct autosetup dir diff --git a/sources b/sources new file mode 100644 index 0000000..9f42458 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +ec7e86b80c682d45a2f010dc8f01b494 hatchbed_common-0.1.8.tar.gz -- cgit v1.2.3