summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-16 11:51:20 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-16 11:51:20 +0000
commit6d6e95492f29313f166f7cb9bd6ae10353bcd5dc (patch)
treeaca2f6f2c658e6f70b0f90bbb88c6adfb57931fe
parent4b58465839cc884b2fe78a0ce3366e2952559396 (diff)
automatic import of ros-humble-snapd-interfacesopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--ros-snapd-interfaces.spec64
-rw-r--r--sources1
3 files changed, 66 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..02c2dbb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ros_snapd_interfaces-0.0.1.tar.gz
diff --git a/ros-snapd-interfaces.spec b/ros-snapd-interfaces.spec
new file mode 100644
index 0000000..83a59ee
--- /dev/null
+++ b/ros-snapd-interfaces.spec
@@ -0,0 +1,64 @@
+%define ros_distro humble
+%define RosPkgName snapd-interfaces
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.0.1
+Release: 1%{?dist}
+Summary: Interface definitions for ros2-snapd.
+License: GPL-3.0
+URL: https://github.com/canonical/ros_snapd_interfaces
+# GitHub tag 归档:解压根目录为 ros_snapd_interfaces-0.0.1
+Source0: https://github.com/canonical/ros_snapd_interfaces/archive/0.0.1.tar.gz#/ros_snapd_interfaces-0.0.1.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: cmake
+BuildRequires: ros-%{ros_distro}-ament-cmake
+BuildRequires: ros-%{ros_distro}-rosidl-default-generators
+BuildRequires: ros-%{ros_distro}-rosidl-default-runtime
+
+Requires: ros-%{ros_distro}-ros-workspace
+Requires: ros-%{ros_distro}-ament-cmake
+Requires: ros-%{ros_distro}-rosidl-default-runtime
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+Interface definitions for ros2-snapd.
+
+%prep
+%autosetup -n ros_snapd_interfaces-0.0.1
+
+%build
+source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || 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}
+mkdir -p .obj && cd .obj
+%cmake3 \
+ -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \
+ -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \
+ -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \
+ -UINCLUDE_INSTALL_DIR -ULIB_INSTALL_DIR -USYSCONF_INSTALL_DIR -USHARE_INSTALL_PREFIX -ULIB_SUFFIX \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF \
+ -DBUILD_TESTING=OFF -DTESTING=OFF -DCMAKE_SUPPRESS_REGENERATION=ON \
+ ..
+make %{?_smp_mflags}
+
+%install
+source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || 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 .obj
+make install DESTDIR=%{buildroot}
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Tue Sep 16 2026 ai-importer <ai-importer@openeuler.org> - 0.0.1-1
+- Initial import (ROS batch)
diff --git a/sources b/sources
new file mode 100644
index 0000000..63fb4f1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+22db9fd1da9916d1e3ceb1f20a08b1f5 ros_snapd_interfaces-0.0.1.tar.gz