diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-04-15 03:32:25 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-04-15 03:32:25 +0000 |
| commit | fcc52a8f31fa251c5356bf4019118559106fdd3d (patch) | |
| tree | bf3c6ceba4688218de251a9155174793ad81bb44 | |
| parent | 981016218f8cfd6e6d0ae980945ed8e290c4c352 (diff) | |
automatic import of moveit-configs-utilsopeneuler24.03_LTS
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | moveit-configs-utils.spec | 80 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 82 insertions, 0 deletions
@@ -0,0 +1 @@ +/moveit-configs-utils-2.5.9.tar.gz diff --git a/moveit-configs-utils.spec b/moveit-configs-utils.spec new file mode 100644 index 0000000..0d1f4cf --- /dev/null +++ b/moveit-configs-utils.spec @@ -0,0 +1,80 @@ +%bcond_with 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 moveit-configs-utils + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 2.5.9 +Release: 6%{?dist}%{?release_suffix} +Summary: Python library for loading moveit config parameters in launch files + +License: BSD +Source0: %{RosPkgName}-%{version}.tar.gz + +Requires: ros-%{ros_distro}-ament-index-python +Requires: ros-%{ros_distro}-launch-param-builder +Requires: ros-%{ros_distro}-launch +Requires: ros-%{ros_distro}-launch-ros +Requires: ros-%{ros_distro}-srdfdom +Requires: ros-%{ros_distro}-ros-workspace + +BuildRequires: ros-%{ros_distro}-ros-workspace + +%if 0%{?with_tests} +BuildRequires: ros-%{ros_distro}-ament-lint-auto +BuildRequires: ros-%{ros_distro}-ament-lint-common +%endif + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Python library for loading moveit config parameters in launch files + +%prep +%autosetup -c -n %{name}-%{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 +* Tue Apr 14 2026 MoveIt Release Team moveit_releasers@googlegroups.com - 2.5.9-1 +- Autogenerated by ros-porting-tools @@ -0,0 +1 @@ +748d428454e5cbe5fec8d4c74a373706 moveit-configs-utils-2.5.9.tar.gz |
