File rpyutils.spec of Package rpyutils
# 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-rpyutils
Version: 0.2.2
Release: 1%{?dist}
Summary: ROS rpyutils package
License: Apache License 2.0
Group: Development/Libraries
Source0: rpyutils-release.tar.bz2
Source1: ros-rpmlintrc
Requires: ros-humble
Requires: ros-humble-ros-workspace
# 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: 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
Package containing various utility types and functions for Python
%prep
%autosetup -p0 -n rpyutils-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 Jacob Perron <jacob@openrobotics.org> - 0.2.2-1
- Autogenerated by Bloom