diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-20 08:32:09 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-20 08:32:09 +0000 |
| commit | 2f3bbdd4eeae7effc70a5ed0d66b9c642b388a59 (patch) | |
| tree | e80bd173d78f5a5c271193822213feeae5016ec3 | |
| parent | 766b9dc0301d24cbec0532f0fb85543113411dd5 (diff) | |
automatic import of ros-humble-py-trees-jsopeneuler24.03_LTS_SP3
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | py-trees-js.spec | 58 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 60 insertions, 0 deletions
@@ -0,0 +1 @@ +/py-trees-js-0.7.0-1.tar.gz diff --git a/py-trees-js.spec b/py-trees-js.spec new file mode 100644 index 0000000..b10a44a --- /dev/null +++ b/py-trees-js.spec @@ -0,0 +1,58 @@ +%define ros_distro humble +%define RosPkgName py-trees-js +%define src_version 0.7.0-1 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.7.0 +Release: 1%{?dist} +Summary: Javascript library for visualising behaviour trees. +License: BSD +URL: https://github.com/splintered-reality/py_trees_js/tree/release/0.6.x +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: python3-qt5 +BuildRequires: python3-setuptools +BuildRequires: python3-devel + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: python3-qt5 +# python3-PyQt5.QtWebEngine 在 openEuler 无独立 Python 绑定包,viewer 功能可选 +Recommends: qt5-qtwebengine + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Javascript library for visualising behaviour trees. + +%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} +%{__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} +%{__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 <ai-importer@openeuler.org> - 0.7.0-1 +- Initial import (ROS batch) @@ -0,0 +1 @@ +a1a4cc7deb92d081a446fc432b6f024d py-trees-js-0.7.0-1.tar.gz |
