diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-24 17:18:15 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-24 17:18:15 +0000 |
| commit | 1b6397a4163a5c9a9c5ff353c0f54fa6a9624b39 (patch) | |
| tree | 08a2f2d7593063f9c8fc2ec006d832b512dca231 | |
| parent | 67bbd0e5bc162a364775875f66ea80a92011715d (diff) | |
automatic import of ros-humble-sros2openeuler24.03_LTS
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | sources | 1 | ||||
| -rw-r--r-- | sros2.spec | 102 |
3 files changed, 104 insertions, 0 deletions
@@ -0,0 +1 @@ +/sros2-0.10.9.tar.gz @@ -0,0 +1 @@ +7a3fc482e48d67c96a49b5faf380076a sros2-0.10.9.tar.gz diff --git a/sros2.spec b/sros2.spec new file mode 100644 index 0000000..3ef898e --- /dev/null +++ b/sros2.spec @@ -0,0 +1,102 @@ +%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 sros2 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.10.9 +Release: 1%{?dist}%{?release_suffix} +Summary: Command line tools for managing SROS2 keys + +License: Apache License 2.0 +Source0: %{RosPkgName}-%{version}.tar.gz + +Requires: ros-%{ros_distro}-rclpy +Requires: ros-%{ros_distro}-ros2cli +Requires: ros-%{ros_distro}-ament-index-python +Requires: python3-lxml +Requires: python3-cryptography +Requires: python3-importlib-resources +Requires: ros-%{ros_distro}-ros-workspace + +BuildRequires: ros-%{ros_distro}-rclpy +BuildRequires: ros-%{ros_distro}-ros2cli +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-mypy +BuildRequires: ros-%{ros_distro}-ament-pep257 +BuildRequires: python3-pytest +BuildRequires: python3-pytest-timeout +BuildRequires: ros-%{ros_distro}-ros-testing +BuildRequires: ros-%{ros_distro}-test-msgs +%endif + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Command line tools for managing SROS2 keys + +%prep +%autosetup -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 +%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 +%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 Sep 25 2026 kuyan_kubuds <kuyan@kubuds.cn> - 0.10.9-1 +- Sync sros2 0.10.9 from humble branch to master + +* Mon Sep 21 2026 Wanming Hu <huwanming@huawei.com> - 0.10.9-1 +- Upgrade sros2 from 0.10.4 to 0.10.9 for ROS 2 Humble. + +* Thu May 04 2023 ROS Security Working Group ros-security@googlegroups.com - 0.10.4-1 +- Autogenerated by ros-porting-tools + +* Wed Sep 21 2022 openEuler Buildteam <hanhaomin008@126.com> - 0.9.4-2 +- Update Package to OpenEuler 22.03 + +* Tue Nov 30 2021 openEuler Buildteam <hanhaomin008@126.com> - 0.9.4-1 +- Package init + +* Tue Jan 5 2022 openEuler Buildteam <hanhaomin008@126.com> - 0.9.4-1 +- Package update |
