草稿
[WIP] 将 urdf-tutorial 升级至 1.1.0 #14
Wanming Hu创建于 6 天前
[WIP] 将 urdf-tutorial 升级至 1.1.0 #14
草稿
共 3 个文件变更+10-13
Binary files do not support preview
Binary files do not support preview
| @@ -1,28 +1,25 @@ | |||
| 1 | -%bcond_without tests | 1 | +%bcond_with tests |
| 2 | %bcond_without weak_deps | 2 | %bcond_without weak_deps |
| 3 | 3 | ||
| 4 | +%define ros_distro humble | ||
| 5 | + | ||
| 4 | %global debug_package %{nil} | 6 | %global debug_package %{nil} |
| 5 | %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') | 7 | %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') |
| 6 | %global __provides_exclude_from ^/opt/ros/%{ros_distro}/.*$ | 8 | %global __provides_exclude_from ^/opt/ros/%{ros_distro}/.*$ |
| 7 | %global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$ | 9 | %global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$ |
| 8 | 10 | ||
| 9 | %define RosPkgName urdf-tutorial | 11 | %define RosPkgName urdf-tutorial |
| 10 | -%define ros_distro humble | ||
| 11 | 12 | ||
| 12 | Name: ros-%{ros_distro}-%{RosPkgName} | 13 | Name: ros-%{ros_distro}-%{RosPkgName} |
| 13 | -Version: 1.0.0 | 14 | +Version: 1.1.0 |
| 14 | Release: 1%{?dist}%{?release_suffix} | 15 | Release: 1%{?dist}%{?release_suffix} |
| 15 | Summary: This package contains a number of URDF tutorials. | 16 | Summary: This package contains a number of URDF tutorials. |
| 16 | 17 | ||
| 17 | Url: http://ros.org/wiki/urdf_tutorial | 18 | Url: http://ros.org/wiki/urdf_tutorial |
| 18 | -License: BSD | 19 | +License: BSD 3-clause |
| 19 | -Source0: %{name}_%{version}.orig.tar.gz | 20 | +Source0: %{RosPkgName}-%{version}.tar.gz |
| 20 | 21 | ||
| 21 | -Requires: ros-%{ros_distro}-joint-state-publisher | 22 | +Requires: ros-%{ros_distro}-urdf-launch |
| 22 | -Requires: ros-%{ros_distro}-joint-state-publisher-gui | ||
| 23 | -Requires: ros-%{ros_distro}-robot-state-publisher | ||
| 24 | -Requires: ros-%{ros_distro}-rviz2 | ||
| 25 | -Requires: ros-%{ros_distro}-xacro | ||
| 26 | Requires: ros-%{ros_distro}-ros-workspace | 23 | Requires: ros-%{ros_distro}-ros-workspace |
| 27 | 24 | ||
| 28 | BuildRequires: ros-%{ros_distro}-ament-cmake | 25 | BuildRequires: ros-%{ros_distro}-ament-cmake |
| @@ -40,7 +37,7 @@ Provides: %{name}-runtime = %{version}-%{release} | |||
| 40 | This package contains a number of URDF tutorials. | 37 | This package contains a number of URDF tutorials. |
| 41 | 38 | ||
| 42 | %prep | 39 | %prep |
| 43 | -%autosetup -p1 | 40 | +%autosetup -c -n urdf-tutorial-1.1.0 |
| 44 | 41 | ||
| 45 | %build | 42 | %build |
| 46 | # Needed to bootstrap since the ros_workspace package does not yet exist. | 43 | # Needed to bootstrap since the ros_workspace package does not yet exist. |
| @@ -64,7 +61,7 @@ mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} | |||
| 64 | %if !0%{?with_tests} | 61 | %if !0%{?with_tests} |
| 65 | -DBUILD_TESTING=OFF \ | 62 | -DBUILD_TESTING=OFF \ |
| 66 | %endif | 63 | %endif |
| 67 | - .. | 64 | + ../%{RosPkgName}-%{version} |
| 68 | 65 | ||
| 69 | %make_build | 66 | %make_build |
| 70 | 67 | ||
| @@ -99,5 +96,5 @@ else echo "RPM TESTS SKIPPED"; fi | |||
| 99 | /opt/ros/%{ros_distro} | 96 | /opt/ros/%{ros_distro} |
| 100 | 97 | ||
| 101 | %changelog | 98 | %changelog |
| 102 | -* Thu May 04 2023 David V. Lu!! davidvlu@gmail.com - 1.0.0-1 | 99 | +* Wed Aug 12 2026 David V. Lu!! david@metrorobots.com - 1.1.0-1 |
| 103 | - Autogenerated by ros-porting-tools | 100 | - Autogenerated by ros-porting-tools |