diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-03-25 13:55:50 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-03-25 13:55:50 +0000 |
| commit | c63dc36a0b5a06fad86ecb7f45c9e5ca070607e2 (patch) | |
| tree | b6d2c45b913dd9eea0dde67b18ff0de16439477b | |
| parent | 5964ff41274ba440af4e8ef3b45a704f51d34f8c (diff) | |
automatic import of angles
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | angles.spec | 86 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 88 insertions, 0 deletions
@@ -0,0 +1 @@ +/angles-1.15.0.tar.gz diff --git a/angles.spec b/angles.spec new file mode 100644 index 0000000..7c7c1a3 --- /dev/null +++ b/angles.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 angles + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.15.0 +Release: 1%{?dist}%{?release_suffix} +Summary: ROS angles package + +Url: http://wiki.ros.org/angles +License: BSD +Source0: %{RosPkgName}-%{version}.tar.gz + +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-ros-workspace + +BuildRequires: ros-%{ros_distro}-ament-cmake +BuildRequires: ros-%{ros_distro}-ament-cmake-python +BuildRequires: python3-setuptools +BuildRequires: ros-%{ros_distro}-ros-workspace + +%if 0%{?with_tests} +%endif + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +This package provides a set of simple math utilities to work + with angles. The utilities cover simple things like + normalizing an angle and conversion between degrees and + radians. But even if you're trying to calculate things like + the shortest angular distance between two joint space + positions of your robot, but the joint motion is constrained + by joint limits, this package is what you need. The code in + this package is stable and well tested. There are no plans for + major changes in the near future. + +%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 +* Wed Mar 25 2026 Tully Foote tfoote@osrfoundation.org - 1.15.0-1 +- Autogenerated by ros-porting-tools @@ -0,0 +1 @@ +59ba1c1603a2dd108a4ca1477e894243 angles-1.15.0.tar.gz |
