summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--unbag.spec90
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4bcdb35 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/unbag-1.3.1-1.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..b2088ec
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+17bddb7c1f34e5f2a0cf95109fbbbe8e unbag-1.3.1-1.tar.gz
diff --git a/unbag.spec b/unbag.spec
new file mode 100644
index 0000000..dea59e9
--- /dev/null
+++ b/unbag.spec
@@ -0,0 +1,90 @@
+%define ros_distro humble
+%define RosPkgName unbag
+%define src_version 1.3.1-1
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 1.3.1
+Release: 1%{?dist}
+Summary: A ROS 2 tool for exporting bags to human readable files
+License: MIT
+URL: https://github.com/ika-rwth-aachen/ros2_unbag/tree/main
+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}-ament-cmake-python
+BuildRequires: ros-%{ros_distro}-ament-index-python
+BuildRequires: ros-%{ros_distro}-rclpy
+BuildRequires: ros-%{ros_distro}-ros2cli
+BuildRequires: ros-%{ros_distro}-rosbag2-py
+BuildRequires: ros-%{ros_distro}-rosidl-runtime-py
+BuildRequires: ros-%{ros_distro}-sensor-msgs
+BuildRequires: ros-%{ros_distro}-tf2-msgs
+BuildRequires: opencv
+BuildRequires: python3-devel
+BuildRequires: qt5-qtbase-devel
+BuildRequires: qt5-qtsvg
+BuildRequires: qt5-qtsvg-devel
+BuildRequires: python3-numpy
+BuildRequires: python3-setuptools
+BuildRequires: python3-tqdm
+BuildRequires: python3-yaml
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-ament-index-python
+Requires: ros-%{ros_distro}-rclpy
+Requires: ros-%{ros_distro}-ros2cli
+Requires: ros-%{ros_distro}-rosbag2-py
+Requires: ros-%{ros_distro}-rosidl-runtime-py
+Requires: ros-%{ros_distro}-sensor-msgs
+Requires: ros-%{ros_distro}-tf2-msgs
+Requires: opencv
+Requires: qt5-qtsvg
+Requires: python3-numpy
+Requires: python3-tqdm
+Requires: python3-yaml
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+A ROS 2 tool for exporting bags to human readable files. Supports pluggable export routines to handle any message type.
+
+%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}
+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 .obj
+make install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Tue Sep 22 2026 ai-importer <ai-importer@openeuler.org> - 1.3.1-1
+- Initial import (ROS batch)