summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-19 12:44:57 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-19 12:44:57 +0000
commit43a0b16c9ffce8c16493a55a52344954cf08cf9f (patch)
tree9528fff676cf51e3ca9b33418700ddebe336fd5a
parent97c2412e96a8776e0d0b3c19c45fbf9c20b87a2c (diff)
automatic import of ros-humble-ament-clang-formatopeneuler24.03_LTS_SP3
-rw-r--r--.gitignore1
-rw-r--r--ament-clang-format.spec59
-rw-r--r--sources1
3 files changed, 61 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3e382f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ament-clang-format-0.12.5.tar.gz
diff --git a/ament-clang-format.spec b/ament-clang-format.spec
new file mode 100644
index 0000000..f591426
--- /dev/null
+++ b/ament-clang-format.spec
@@ -0,0 +1,59 @@
+%define ros_distro humble
+%define RosPkgName ament-clang-format
+%define src_version 0.12.5
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.12.5
+Release: 1%{?dist}
+Summary: The ability to check code against style conventions using clang-format and gene
+License: Apache License 2.0
+URL: https://github.com/ament/ament_lint/tree/humble
+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: clang
+BuildRequires: python3-yaml
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+
+Requires: clang
+Requires: python3-yaml
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+The ability to check code against style conventions using
+ clang-format and generate xUnit test result files.
+
+%prep
+%autosetup -n %{RosPkgName}-%{src_version}
+
+%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}
+cd ament_clang_format
+%{__python3} setup.py build
+
+%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 ament_clang_format
+%{__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
+* Sat Sep 19 2026 ai-importer <ai-importer@openeuler.org> - 0.12.5-1
+- Initial import (ROS batch)
diff --git a/sources b/sources
new file mode 100644
index 0000000..8e3aab6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b3b6949c7473cf47f05b551be13db4cf ament-clang-format-0.12.5.tar.gz