%define ros_distro humble %define RosPkgName nodl-schema %define src_version 2.0.3-1 Name: ros-%{ros_distro}-%{RosPkgName} Version: 2.0.3 Release: 1%{?dist} Summary: ROS 2 Node Definition Language (NoDL) schema and validation. License: Apache-2.0 URL: https://github.com/ros-tooling/nodl/tree/main Source0: %{RosPkgName}-%{src_version}.tar.gz %global debug_package %{nil} %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/%{ros_distro}/.*$ %global __requires_exclude_from ^/opt/ros/%{ros_distro}/.*$ BuildRequires: ros-%{ros_distro}-ament-index-python BuildRequires: python3-jsonschema BuildRequires: python3-pydantic BuildRequires: python3-ruamel-yaml BuildRequires: python3-yaml BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: ros-%{ros_distro}-ros-workspace Requires: ros-%{ros_distro}-ament-cmake Requires: ros-%{ros_distro}-ament-index-python Requires: python3-jsonschema Requires: python3-pydantic Requires: python3-ruamel-yaml Requires: python3-yaml Provides: %{name}-devel = %{version}-%{release} Provides: %{name}-doc = %{version}-%{release} Provides: %{name}-runtime = %{version}-%{release} %description ROS 2 Node Definition Language (NoDL) schema and validation. %prep %autosetup -n %{RosPkgName}-%{src_version} %build [ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || true export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH} export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} cd nodl_schema %{__python3} setup.py build %install [ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || true export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH} export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} cd nodl_schema %{__python3} setup.py install --skip-build --root %{buildroot} \ --prefix /opt/ros/%{ros_distro} \ --install-lib /opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages \ --single-version-externally-managed --record installed.txt %files /opt/ros/%{ros_distro} %changelog * Sun Sep 20 2026 ai-importer - 2.0.3-1 - Initial import (ROS batch)