File diff_drive_controller.spec of Package diff_drive_controller
%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-diff-drive-controller
Version: 0.21.0
Release: 1%{?dist}
Summary: ROS diff_drive_controller package
License: BSD
Group: Development/Libraries
URL: https://github.com/ros-controls/ros_controllers/wiki
Source0: diff_drive_controller-release.tar.bz2
Source1: ros-rpmlintrc
Requires: libboost_atomic1_66_0-devel
Requires: libboost_chrono1_66_0-devel
Requires: libboost_date_time1_66_0-devel
Requires: libboost_filesystem1_66_0-devel
Requires: libboost_headers1_66_0-devel
Requires: libboost_iostreams1_66_0-devel
Requires: libboost_program_options1_66_0-devel
Requires: libboost_python-py2_7-1_66_0-devel
Requires: libboost_python-py3-1_66_0-devel
Requires: libboost_regex1_66_0-devel
Requires: libboost_serialization1_66_0-devel
Requires: libboost_signals1_66_0-devel
Requires: libboost_system1_66_0-devel
Requires: libboost_thread1_66_0-devel
Requires: ros-noetic
Requires: ros-noetic-control-msgs
Requires: ros-noetic-controller-interface
Requires: ros-noetic-dynamic-reconfigure
Requires: ros-noetic-geometry-msgs
Requires: ros-noetic-hardware-interface
Requires: ros-noetic-nav-msgs
Requires: ros-noetic-pluginlib
Requires: ros-noetic-realtime-tools
Requires: ros-noetic-tf
Requires: ros-noetic-urdf
BuildRequires: libboost_atomic1_66_0-devel
BuildRequires: libboost_chrono1_66_0-devel
BuildRequires: libboost_date_time1_66_0-devel
BuildRequires: libboost_filesystem1_66_0-devel
BuildRequires: libboost_headers1_66_0-devel
BuildRequires: libboost_iostreams1_66_0-devel
BuildRequires: libboost_program_options1_66_0-devel
BuildRequires: libboost_python-py2_7-1_66_0-devel
BuildRequires: libboost_python-py3-1_66_0-devel
BuildRequires: libboost_regex1_66_0-devel
BuildRequires: libboost_serialization1_66_0-devel
BuildRequires: libboost_signals1_66_0-devel
BuildRequires: libboost_system1_66_0-devel
BuildRequires: libboost_thread1_66_0-devel
BuildRequires: ros-noetic
BuildRequires: ros-noetic-catkin
BuildRequires: ros-noetic-control-msgs
BuildRequires: ros-noetic-controller-interface
BuildRequires: ros-noetic-controller-manager
BuildRequires: ros-noetic-dynamic-reconfigure
BuildRequires: ros-noetic-geometry-msgs
BuildRequires: ros-noetic-hardware-interface
BuildRequires: ros-noetic-nav-msgs
BuildRequires: ros-noetic-pluginlib
BuildRequires: ros-noetic-realtime-tools
BuildRequires: ros-noetic-rosgraph-msgs
BuildRequires: ros-noetic-rostest
BuildRequires: ros-noetic-rostopic
BuildRequires: ros-noetic-std-srvs
BuildRequires: ros-noetic-tf
BuildRequires: ros-noetic-urdf
BuildRequires: ros-noetic-xacro
%description
Controller for a differential drive mobile base.
%prep
%autosetup -p0 -n diff_drive_controller-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