diff --git a/README.md b/README.md index f59aaf18a315e7ab8bb859534b20235ddafe2a82..21f259694331bdadddec419a983850e7bd257283 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # software-package-server #### 介绍 -Software package server is a unified component for openeuler community developer which try to simplify the source package contribution process. +Software package server is a unified component for openeuler community developer which try to simplify the source package contribution process. #### 软件架构 软件架构说明 diff --git a/clearpath_config_test.spec b/clearpath_config_test.spec new file mode 100644 index 0000000000000000000000000000000000000000..1ad75f53bd4b8a65d5a44f2f1dae8ee49714e9af --- /dev/null +++ b/clearpath_config_test.spec @@ -0,0 +1,77 @@ +%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 clearpath-config +%define ros_distro humble +%define with_tests 0 + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.3.4 +Release: 1%{?dist}%{?release_suffix} +Summary: Clearpath Configuration YAML Parser and Writer + +License: BSD-3 +Source0: %{name}_%{version}.orig.tar.gz + +Requires: python3-yaml + +BuildRequires: python3-yaml +BuildRequires: ros-%{ros_distro}-ament-cmake + + +%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 +Clearpath Configuration YAML Parser and Writer + +%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 +* Fri May 23 2025 Luis Camero lcamero@clearpathrobotics.com - 0.3.4-1 +- Autogenerated by ros-porting-tools diff --git a/clearpath_config_test.src.rpm b/clearpath_config_test.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..5939a979c68c74111692ffa61258c8f2a8c1923a Binary files /dev/null and b/clearpath_config_test.src.rpm differ diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..9f1436ac40116ea096fc66d64d1d0774d5384812 --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,2 @@ +clearpath-config.spec +ros-humble-clearpath-config_0.3.4.orig.tar.gz diff --git a/ros-humble-clearpath-config_0.3.4.orig.tar.gz b/ros-humble-clearpath-config_0.3.4.orig.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c24ce1ed4f76dc6505af17885eec338a89c5c505 Binary files /dev/null and b/ros-humble-clearpath-config_0.3.4.orig.tar.gz differ