summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-03-08 11:55:06 +0000
committerCoprDistGit <infra@openeuler.org>2025-03-08 11:55:06 +0000
commitec66242887dcea11d34e57f5bd7b12513c16e33f (patch)
tree653cbfe6d46ef0675580ec4598ca2760c9d931df
parent709831155f9655409989d041ec9a6b885105edc5 (diff)
automatic import of ros-humble-bno055openeuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--0-bno055-fix-version-name.patch12
-rw-r--r--bno055.spec82
-rw-r--r--sources1
4 files changed, 96 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2242c22 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ros-humble-bno055_0.4.1.orig.tar.gz
diff --git a/0-bno055-fix-version-name.patch b/0-bno055-fix-version-name.patch
new file mode 100644
index 0000000..e01406b
--- /dev/null
+++ b/0-bno055-fix-version-name.patch
@@ -0,0 +1,12 @@
+diff -Naur ros-humble-bno055-0.4.1/setup.py ros-humble-bno055-0.4.1_new/setup.py
+--- ros-humble-bno055-0.4.1/setup.py 2023-01-16 09:03:14.000000000 +0800
++++ ros-humble-bno055-0.4.1_new/setup.py 2023-11-09 14:08:45.000000000 +0800
+@@ -7,7 +7,7 @@
+
+ setup(
+ name=package_name,
+- version='0.4.1.',
++ version='0.4.1',
+ # find sub-packages automatically in order to allow sub-modules, etc. to be imported:
+ # packages=[package_name],
+ packages=find_packages(exclude=['test']),
diff --git a/bno055.spec b/bno055.spec
new file mode 100644
index 0000000..3c07d2e
--- /dev/null
+++ b/bno055.spec
@@ -0,0 +1,82 @@
+%bcond_without tests
+%bcond_without weak_deps
+
+%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}/.*$
+
+%define RosPkgName bno055
+%define ros_distro humble
+
+Name: ros-%{ros_distro}-%{RosPkgName}
+Version: 0.4.1
+Release: 2%{?dist}%{?release_suffix}
+Summary: Bosch BNO055 IMU driver for ROS2
+
+License: BSD
+Source0: %{name}_%{version}.orig.tar.gz
+Patch0: 0-bno055-fix-version-name.patch
+
+Requires: python3-pyserial
+Requires: ros-%{ros_distro}-rclpy
+Requires: ros-%{ros_distro}-std-msgs
+Requires: ros-%{ros_distro}-example-interfaces
+Requires: ros-%{ros_distro}-ros-workspace
+
+BuildRequires: python3-pyserial
+BuildRequires: ros-%{ros_distro}-ros-workspace
+
+%if 0%{?with_tests}
+BuildRequires: ros-%{ros_distro}-ament-copyright
+BuildRequires: ros-%{ros_distro}-ament-flake8
+BuildRequires: ros-%{ros_distro}-ament-pep257
+BuildRequires: python3-pytest
+%endif
+
+Provides: %{name}-devel = %{version}-%{release}
+Provides: %{name}-doc = %{version}-%{release}
+Provides: %{name}-runtime = %{version}-%{release}
+
+%description
+Bosch BNO055 IMU driver for ROS2
+
+%prep
+%autosetup -p1
+
+%build
+
+# In case we're installing to a non-standard location, look for a setup.sh
+# in the install tree and source it. It will set things like
+# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
+if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+%py3_build
+
+%install
+# In case we're installing to a non-standard location, look for a setup.sh
+# in the install tree and source it. It will set things like
+# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
+if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+%py3_install -- --prefix "/opt/ros/%{ros_distro}"
+
+%if 0%{?with_tests}
+%check
+# Look for a directory with a name indicating that it contains tests
+TEST_TARGET=$(ls -d * | grep -m1 "\(test\|tests\)" ||:)
+if [ -n "$TEST_TARGET" ] && %__python3 -m pytest --version; then
+# In case we're installing to a non-standard location, look for a setup.sh
+# in the install tree and source it. It will set things like
+# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
+if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+%__python3 -m pytest $TEST_TARGET || echo "RPM TESTS FAILED"
+else echo "RPM TESTS SKIPPED"; fi
+%endif
+
+%files
+/opt/ros/%{ros_distro}
+
+%changelog
+* Wed Dec 20 2023 simonaxi 18701881329@163.com - 0.4.1-2
+- fix version name
+* Thu May 04 2023 flynneva evanflynn.msu@gmail.com - 0.4.1-1
+- Autogenerated by ros-porting-tools
diff --git a/sources b/sources
new file mode 100644
index 0000000..fc20c61
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fc696ac86cded5d83f9084afaeb52aff ros-humble-bno055_0.4.1.orig.tar.gz