%bcond_without tests %bcond_without weak_deps %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/iron/.*$ %global __requires_exclude_from ^/opt/ros/iron/.*$ %global debug_package %{nil} Name: ros-iron-ament-package Version: 0.15.3 Release: 2%{?dist}%{?release_suffix} Summary: ROS ament_package package License: Apache License 2.0 Source0: %{name}-%{version}.tar.gz Requires: python%{python3_pkgversion}-setuptools Requires: python3 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python3 Provides: %{name}-devel = %{version}-%{release} Provides: %{name}-doc = %{version}-%{release} Provides: %{name}-runtime = %{version}-%{release} %if 0%{?with_tests} BuildRequires: python%{python3_pkgversion}-flake8 BuildRequires: python%{python3_pkgversion}-pytest %endif %description The parser for the manifest files in the ament buildsystem. %prep %autosetup -p1 %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/iron/setup.sh" ]; then . "/opt/ros/iron/setup.sh"; fi %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/iron/setup.sh" ]; then . "/opt/ros/iron/setup.sh"; fi %py3_install -- --prefix "/opt/ros/iron" %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/iron/setup.sh" ]; then . "/opt/ros/iron/setup.sh"; fi %__python3 -m pytest $TEST_TARGET || echo "RPM TESTS FAILED" else echo "RPM TESTS SKIPPED"; fi %endif %files /opt/ros/iron %changelog * Thu Apr 20 2023 Dharini Dutia - 0.15.3-2 - Autogenerated by Bloom * Tue Apr 11 2023 Dharini Dutia - 0.15.3-1 - Autogenerated by Bloom * Tue Mar 21 2023 Dharini Dutia - 0.15.2-3 - Autogenerated by Bloom