diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | nav2-simple-commander.spec | 86 | ||||
| -rw-r--r-- | sources | 3 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1,3 @@ +/nav2-simple-commander-1.1.20.tar.gz.aa +/nav2-simple-commander-1.1.20.tar.gz.ab +/nav2-simple-commander-1.1.20.tar.gz.ac diff --git a/nav2-simple-commander.spec b/nav2-simple-commander.spec new file mode 100644 index 0000000..989375a --- /dev/null +++ b/nav2-simple-commander.spec @@ -0,0 +1,86 @@ +%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 nav2-simple-commander + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.1.20 +Release: 1%{?dist}%{?release_suffix} +Summary: An importable library for writing mobile robot applications in python3 + +License: Apache-2.0 +Source0: nav2-simple-commander-1.1.20.tar.gz.aa +Source1: nav2-simple-commander-1.1.20.tar.gz.ab +Source2: nav2-simple-commander-1.1.20.tar.gz.ac + +Requires: ros-%{ros_distro}-rclpy +Requires: ros-%{ros_distro}-geometry-msgs +Requires: ros-%{ros_distro}-nav2-msgs +Requires: ros-%{ros_distro}-action-msgs +Requires: ros-%{ros_distro}-lifecycle-msgs +Requires: ros-%{ros_distro}-ros-workspace + +BuildRequires: ros-%{ros_distro}-ros-workspace + +%if 0%{?with_tests} +BuildRequires: ros-%{ros_distro}-ament-copyright +BuildRequires: ros-%{ros_distro}-ament-flake8 +BuildRequires: ros-%{ros_distro}-ament-pep257 +BuildRequires: python3-pytest +%endif + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +An importable library for writing mobile robot applications in python3 + +%prep +cat %{SOURCE0} %{SOURCE1} %{SOURCE2} > nav2-simple-commander-1.1.20.tar.gz +tar -xzf nav2-simple-commander-1.1.20.tar.gz +%autosetup -T -D -p1 -n %{RosPkgName}-%{version} + +%build + +# In case we're installing to a non-standard location, look for a setup.sh +# 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 +# In case we're installing to a non-standard location, look for a setup.sh +# 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} +%check +# Look for a directory with a name indicating that it contains tests +TEST_TARGET=$(ls -d * | grep -m1 "\(test\|tests\)" ||:) +if [ -n "$TEST_TARGET" ] && %__python3 -m pytest --version; then +# In case we're installing to a non-standard location, look for a setup.sh +# 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 +%__python3 -m pytest $TEST_TARGET || echo "RPM TESTS FAILED" +else echo "RPM TESTS SKIPPED"; fi +%endif + +%files +/opt/ros/%{ros_distro} + +%changelog +* Fri Apr 03 2026 steve stevenmacenski@gmail.com - 1.1.20-1 +- Autogenerated by ros-porting-tools @@ -0,0 +1,3 @@ +893378a5abd65fc69fc103b70e646248 nav2-simple-commander-1.1.20.tar.gz.aa +afa1a9743c22df60d95b41bcc63889c5 nav2-simple-commander-1.1.20.tar.gz.ab +58989bc63606c99b074bebf8e1ff41ca nav2-simple-commander-1.1.20.tar.gz.ac |
