diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-18 17:17:18 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-18 17:17:18 +0000 |
| commit | 10c0ee0d9547f60298d906b63ea2fe2657adce77 (patch) | |
| tree | c3f694ee449ee4fb5acb00d9b0f6a15940ae1a94 | |
| parent | 6d76f861ac048b7afc314d876cb7a74215942479 (diff) | |
automatic import of ros-humble-nao-button-simopeneuler24.03_LTS
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | nao-button-sim.spec | 83 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 85 insertions, 0 deletions
@@ -0,0 +1 @@ +/nao-button-sim-0.1.2.tar.gz diff --git a/nao-button-sim.spec b/nao-button-sim.spec new file mode 100644 index 0000000..de96ff3 --- /dev/null +++ b/nao-button-sim.spec @@ -0,0 +1,83 @@ +%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 nao-button-sim + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.1.2 +Release: 1%{?dist}%{?release_suffix} +Summary: Allows simulating button presses through command line interface + +License: Apache License 2.0 +Source0: %{RosPkgName}-%{version}.tar.gz + +Requires: ros-%{ros_distro}-nao-sensor-msgs +Requires: ros-%{ros_distro}-ros-workspace + +BuildRequires: ros-%{ros_distro}-nao-sensor-msgs +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 +Allows simulating button presses through command line interface + +%prep +%autosetup -n nao-button-sim-0.1.2 -p1 + +%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 +* Mon Oct 19 2026 kuyan_kubuds <kuyan@kubuds.cn> - 0.1.2-1 +- Sync nao-button-sim 0.1.2 from humble branch to master + +* Mon Sep 21 2026 Wanming Hu <huwanming@huawei.com> - 0.1.2-1 +- Upgrade nao-button-sim from 0.1.1 to 0.1.2 for ROS 2 Humble. + +* Thu May 04 2023 ijnek kenjibrameld@gmail.com - 0.1.1-1 +- Autogenerated by ros-porting-tools @@ -0,0 +1 @@ +fb8e34f8d178d3b128dc902ecaf43f1c nao-button-sim-0.1.2.tar.gz |
