diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-09-20 17:20:19 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-09-20 17:20:19 +0000 |
| commit | bd1a50c5fb5431db22ab3825069ef7542b5978c4 (patch) | |
| tree | 8aa43daa7f2b795c83fdb64dff35007055108870 /scenario-execution-x11.spec | |
| parent | f3d268b0a4f346fb2682613080d710ebd4a1db4d (diff) | |
automatic import of ros-humble-scenario-execution-x11openeuler24.03_LTS_SP3
Diffstat (limited to 'scenario-execution-x11.spec')
| -rw-r--r-- | scenario-execution-x11.spec | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/scenario-execution-x11.spec b/scenario-execution-x11.spec new file mode 100644 index 0000000..b7df22a --- /dev/null +++ b/scenario-execution-x11.spec @@ -0,0 +1,58 @@ +%define ros_distro humble +%define RosPkgName scenario-execution-x11 +%define src_version 1.2.0 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.2.0 +Release: 1%{?dist} +Summary: Scenario Execution library for X11 +License: Apache-2.0 +URL: https://github.com/cps-test-lab/scenario-execution.git +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}-scenario-execution +BuildRequires: ffmpeg-devel +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-ament-cmake +Requires: ros-%{ros_distro}-scenario-execution +Requires: ffmpeg-devel + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +Scenario Execution library for X11 + +%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> - 1.2.0-1 +- Initial import (ROS batch) |
