summaryrefslogtreecommitdiff
path: root/scenario-execution-os.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-20 16:26:16 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-20 16:26:16 +0000
commit303f5a88436fb4b935a84a88dec2cebb665906d2 (patch)
tree800531ec536e7213a787a91984a35c59e3f74ad8 /scenario-execution-os.spec
parentc4e4e1d3c50e8ccc2038b74d587d11df00f18378 (diff)
automatic import of ros-humble-scenario-execution-osopeneuler24.03_LTS_SP3
Diffstat (limited to 'scenario-execution-os.spec')
-rw-r--r--scenario-execution-os.spec62
1 files changed, 62 insertions, 0 deletions
diff --git a/scenario-execution-os.spec b/scenario-execution-os.spec
new file mode 100644
index 0000000..5372758
--- /dev/null
+++ b/scenario-execution-os.spec
@@ -0,0 +1,62 @@
+%define ros_distro humble
+%define RosPkgName scenario-execution-os
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 1.2.0
+Release: 1%{?dist}
+Summary: Scenario Execution library for OS interactions
+License: Apache-2.0
+URL: https://github.com/IntelLabs/scenario_execution
+# branch 归档;#/ 强制 rpm 内部文件名为 scenario_execution-humble,避免猜目录名
+Source0: https://github.com/IntelLabs/scenario_execution/archive/humble.tar.gz#/scenario_execution-humble.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-devel
+BuildRequires: python3-setuptools
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-scenario-execution
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+Scenario Execution library for OS interactions. Provides ROS 2 actions for
+checking file existence and related OS-level operations within the
+scenario_execution framework.
+
+%prep
+%autosetup -n scenario_execution-humble
+
+%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 libs/scenario_execution_os
+%{__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 libs/scenario_execution_os
+%{__python3} setup.py install \
+ --root %{buildroot} \
+ --install-lib /opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages \
+ --install-scripts /opt/ros/%{ros_distro}/lib/scenario_execution_os \
+ --install-data /opt/ros/%{ros_distro}
+
+%files
+/opt/ros/%{ros_distro}/
+
+%changelog
+* Sat Sep 20 2026 Intel Labs <scenario-execution@intel.com> - 1.2.0-1
+- Initial package for scenario_execution_os 1.2.0