File ros2component.spec of Package ros2component
# ament_python template
%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/humble/.*$
%global __requires_exclude_from ^/opt/ros/humble/.*$
Name: ros-humble-ros2component
Version: 0.18.17
Release: 1%{?dist}
Summary: ROS ros2component package
License: Apache License 2.0
Group: Development/Libraries
Source0: ros2component-release.tar.bz2
Source1: ros-rpmlintrc
Requires: ros-humble
Requires: ros-humble-ament-index-python
Requires: ros-humble-composition-interfaces
Requires: ros-humble-rcl-interfaces
Requires: ros-humble-rclcpp-components
Requires: ros-humble-rclpy
Requires: ros-humble-ros-workspace
Requires: ros-humble-ros2cli
Requires: ros-humble-ros2node
Requires: ros-humble-ros2param
Requires: ros-humble-ros2pkg
# Default BuildRequires Includes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
# Generated BuildRequires Includes - Start
BuildRequires: %{python_module devel}
BuildRequires: python313-pytest
BuildRequires: python313-pytest-timeout
BuildRequires: ros-humble
BuildRequires: ros-humble-ament-copyright
BuildRequires: ros-humble-ament-flake8
BuildRequires: ros-humble-ament-pep257
BuildRequires: ros-humble-ament-xmllint
BuildRequires: ros-humble-ros-workspace
# Generated BuildRequires Includes - End
%description
The component command for ROS 2 command line tools.
%prep
%autosetup -p0 -n ros2component-release
%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/humble/setup.sh" ]; then . "/opt/ros/humble/setup.sh"; fi
%pyproject_wheel
%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/humble/setup.sh" ]; then . "/opt/ros/humble/setup.sh"; fi
export PIP_PREFIX="/opt/ros/humble"
%pyproject_install
# Disable checks - For now.
%if 0
%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/humble/setup.sh" ]; then . "/opt/ros/humble/setup.sh"; fi
%__python3 -m pytest $TEST_TARGET || echo "RPM TESTS FAILED"
else echo "RPM TESTS SKIPPED"; fi
%endif
%files
/opt/ros/humble
%changelog
* Mon Mar 02 2026 Aditya Pande <aditya.pande@openrobotics.org> - 0.18.17-1
- Autogenerated by Bloom