File angles.spec of Package angles
%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/noetic/.*$
%global __requires_exclude_from ^/opt/ros/noetic/.*$
Name: ros-noetic-angles
Version: 1.9.13
Release: 1%{?dist}
Summary: ROS angles package
License: BSD
Group: Development/Libraries
URL: http://wiki.ros.org/angles
Source0: angles-release.tar.bz2
Source1: ros-rpmlintrc
BuildArch: noarch
Requires: ros-noetic
BuildRequires: ros-noetic
BuildRequires: ros-noetic-catkin >= 0.5.68
BuildRequires: ros-noetic-rosunit
%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 -p0 -n angles-release
%build
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/noetic/setup.sh" ]; then . "/opt/ros/noetic/setup.sh"; fi
mkdir -p obj-%{_target_platform} && cd obj-%{_target_platform}
cmake \
-UINCLUDE_INSTALL_DIR \
-ULIB_INSTALL_DIR \
-USYSCONF_INSTALL_DIR \
-USHARE_INSTALL_PREFIX \
-ULIB_SUFFIX \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_INSTALL_PREFIX="/opt/ros/noetic" \
-DCMAKE_PREFIX_PATH="/opt/ros/noetic" \
-DSETUPTOOLS_DEB_LAYOUT=OFF \
-DCATKIN_BUILD_BINARY_PACKAGE="1" \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
..
%make_build
%install
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/noetic/setup.sh" ]; then . "/opt/ros/noetic/setup.sh"; fi
%make_install -C obj-%{_target_platform}
%files
/opt/ros/noetic
%changelog