summaryrefslogtreecommitdiff
path: root/rtabmap-python.spec
diff options
context:
space:
mode:
Diffstat (limited to 'rtabmap-python.spec')
-rw-r--r--rtabmap-python.spec16
1 files changed, 10 insertions, 6 deletions
diff --git a/rtabmap-python.spec b/rtabmap-python.spec
index 07a1962..4d47dcf 100644
--- a/rtabmap-python.spec
+++ b/rtabmap-python.spec
@@ -1,24 +1,26 @@
%bcond_without tests
%bcond_without weak_deps
+%define ros_distro humble
+
%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}/.*$
%define RosPkgName rtabmap-python
-%define ros_distro humble
-%define with_tests 0
Name: ros-%{ros_distro}-%{RosPkgName}
-Version: 0.21.5
+Version: 0.22.1
Release: 1%{?dist}%{?release_suffix}
Summary: RTAB-Map's python package.
License: BSD
-Source0: %{name}_%{version}.orig.tar.gz
+Source0: %{RosPkgName}-%{version}.tar.gz
+Requires: ros-%{ros_distro}-ros-workspace
+BuildRequires: ros-%{ros_distro}-ros-workspace
%if 0%{?with_tests}
BuildRequires: ros-%{ros_distro}-ament-copyright
@@ -35,7 +37,7 @@ Provides: %{name}-runtime = %{version}-%{release}
RTAB-Map's python package.
%prep
-%autosetup -p1
+%autosetup -c -n %{name}-%{version}
%build
@@ -43,6 +45,7 @@ RTAB-Map's python package.
# in the install tree and source it. It will set things like
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+cd %{RosPkgName}-%{version}
%py3_build
%install
@@ -50,6 +53,7 @@ if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setu
# in the install tree and source it. It will set things like
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+cd %{RosPkgName}-%{version}
%py3_install -- --prefix "/opt/ros/%{ros_distro}"
%if 0%{?with_tests}
@@ -69,5 +73,5 @@ else echo "RPM TESTS SKIPPED"; fi
/opt/ros/%{ros_distro}
%changelog
-* Fri May 23 2025 Mathieu Labbe matlabbe@gmail.com - 0.21.5-1
+* Wed Mar 25 2026 Mathieu Labbe matlabbe@gmail.com - 0.22.1-1
- Autogenerated by ros-porting-tools