diff --git a/1.4.2.tar.gz b/1.4.2.tar.gz deleted file mode 100644 index 58415b5ff3298206b0b479bb9f1592d71ff08197..0000000000000000000000000000000000000000 Binary files a/1.4.2.tar.gz and /dev/null differ diff --git a/ros-humble-slam-gmapping_1.4.2.orig.tar.gz b/ros-humble-slam-gmapping_1.4.2.orig.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..08e81e85cdafe03718b9b880b19b39eacde1b365 Binary files /dev/null and b/ros-humble-slam-gmapping_1.4.2.orig.tar.gz differ diff --git a/slam_gmapping.spec b/slam_gmapping.spec index 70cddf941d8781a8142ffad8104fb720e51805b7..62a964958fe67b919c8aeb1287b436f03174c585 100644 --- a/slam_gmapping.spec +++ b/slam_gmapping.spec @@ -1,105 +1,124 @@ -Name: ros-noetic-ros-slam_gmapping -Version: 1.4.2 -Release: 1 -Summary: This is ROS noetic %{name} Package -License: Public Domain and Apache-2.0 and BSD and MIT and BSL-1.0 and LGPL-2.1-only and MPL-2.0 and GPL-3.0-only and GPL-2.0-or-later -URL: https://github.com/ros-perception/slam_gmapping -Source0: https://github.com/ros-perception/slam_gmapping/releases/1.4.2.tar.gz -BuildRequires: gcc-c++ -BuildRequires: cmake -BuildRequires: lz4-devel -BuildRequires: bzip2-devel -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: openssl-devel -BuildRequires: boost-devel -BuildRequires: uuid-devel -BuildRequires: uuid -BuildRequires: libuuid-devel -BuildRequires: python3-gpgme -BuildRequires: gpgme-devel -BuildRequires: cpp-gpgme -BuildRequires: python3-crypto -BuildRequires: bullet-devel -BuildRequires: gtest-devel -BuildRequires: gmock-devel +%bcond_without tests +%bcond_without weak_deps + +%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 slam-gmapping + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 1.4.2 +Release: 1%{?dist}%{?release_suffix} +Summary: This package provides ROS specific hooks for slam gmapping + +Url: http://ros.org/wiki/stage_ros +License: BSD +Source0: %{name}_%{version}.orig.tar.gz + +Requires: ros-%{ros_distro}-rosidl-default-runtime +Requires: boost-devel +Requires: ros-%{ros_distro}-geometry-msgs +Requires: ros-%{ros_distro}-ament-lint-auto +Requires: ros-%{ros_distro}-nav-msgs +Requires: ros-%{ros_distro}-rclcpp +Requires: ros-%{ros_distro}-rclcpp-components +Requires: ros-%{ros_distro}-sensor-msgs +Requires: ros-%{ros_distro}-std-msgs +Requires: ros-%{ros_distro}-std-srvs +Requires: ros-%{ros_distro}-ros-workspace +Requires: ros-%{ros_distro}-message-filters +Requires: ros-%{ros_distro}-visualization-msgs +Requires: ros-%{ros_distro}-openslam-gmapping + +BuildRequires: ros-%{ros_distro}-rosidl-default-generators +BuildRequires: ros-%{ros_distro}-ament-lint-auto +BuildRequires: boost-devel +BuildRequires: ros-%{ros_distro}-geometry-msgs +BuildRequires: ros-%{ros_distro}-nav-msgs +BuildRequires: ros-%{ros_distro}-rclcpp +BuildRequires: ros-%{ros_distro}-rclcpp-components +BuildRequires: ros-%{ros_distro}-sensor-msgs +BuildRequires: ros-%{ros_distro}-std-msgs +BuildRequires: ros-%{ros_distro}-std-srvs +BuildRequires: ros-%{ros_distro}-tf2-ros +BuildRequires: ros-%{ros_distro}-tf2-geometry-msgs +BuildRequires: ros-%{ros_distro}-tf2-kdl +BuildRequires: ros-%{ros_distro}-ament-cmake +BuildRequires: ros-%{ros_distro}-ros-workspace +BuildRequires: ros-%{ros_distro}-message-filters +BuildRequires: ros-%{ros_distro}-visualization-msgs +BuildRequires: ros-%{ros_distro}-openslam-gmapping + +%if 0%{?with_tests} +%endif + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} %description -This is %{name} Package +This package provides ROS specific hooks for stage %prep -%setup +%autosetup -p1 + +%build +# Needed to bootstrap since the ros_workspace package does not yet exist. +export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages + +# 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 +mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} +%cmake3 \ + -UINCLUDE_INSTALL_DIR \ + -ULIB_INSTALL_DIR \ + -USYSCONF_INSTALL_DIR \ + -USHARE_INSTALL_PREFIX \ + -ULIB_SUFFIX \ + -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \ + -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \ + -DSETUPTOOLS_DEB_LAYOUT=OFF \ +%if !0%{?with_tests} + -DBUILD_TESTING=OFF \ +%endif + .. + +%make_build %install -cd 3rdparty/ - -cd empy-3.3.4/ -python3 setup.py install --user -cd .. - -cd six-1.15.0/ -python3 setup.py install --user -cd .. - -cd setuptools_scm-4.1.2/ -python3 setup.py install --user -cd .. - -cd python-dateutil-2.8.1/ -python3 setup.py install --user -cd .. - -cd pyparsing-2.4.7/ -python3 setup.py install --user -cd .. - -cd docutils-0.16/ -python3 setup.py install --user -cd .. - -cd catkin_pkg-0.4.22/ -python3 setup.py install --user -cd .. - -cd PyYAML-5.3.1/ -python3 setup.py install --user -cd .. - -cd distro-1.5.0/ -python3 setup.py install --user -cd .. - -cd rospkg-1.2.8/ -python3 setup.py install --user -cd .. - -cd .. - -./src/catkin/bin/catkin_make_isolated --install -cp install_dependence.sh install_isolated/ - -#### -# 对install_isoloate内部的变量名称进行替换 -# -#### -SRC_PATH=$PWD/install_isolated -DST_PATH=/opt/ros/noetic -sed -i "s:${SRC_PATH}:${DST_PATH}:g" `grep -rIln "${SRC_PATH}" install_isolated/*` - -#### -# 添加.catkin和.rosinstall文件 -# -#### -mkdir -p %{buildroot}/opt/ros/noetic/ -cp -r install_isolated/* %{buildroot}/opt/ros/noetic/ -cp install_isolated/.rosinstall %{buildroot}/opt/ros/noetic/ -cp install_isolated/.catkin %{buildroot}/opt/ros/noetic/ +# Needed to bootstrap since the ros_workspace package does not yet exist. +export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages + +# 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 +%make_install -C .obj-%{_target_platform} + +%if 0%{?with_tests} +%check +# Needed to bootstrap since the ros_workspace package does not yet exist. +export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages + +# Look for a Makefile target with a name indicating that it runs tests +TEST_TARGET=$(%__make -qp -C .obj-%{_target_platform} | sed "s/^\(test\|check\):.*/\\1/;t f;d;:f;q0") +if [ -n "$TEST_TARGET" ]; 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 +CTEST_OUTPUT_ON_FAILURE=1 \ + %make_build -C .obj-%{_target_platform} $TEST_TARGET || echo "RPM TESTS FAILED" +else echo "RPM TESTS SKIPPED"; fi +%endif %files -%defattr(-,root,root) -/opt/ros/noetic/* -/opt/ros/noetic/.rosinstall -/opt/ros/noetic/.catkin +/opt/ros/%{ros_distro} + %changelog -* Tue Dec 15 2020 openEuler Buildteam - 1.4.2-1 -- Package init +* Thu May 04 2023 William Woodall william@osrfoundation.org - 1.8.0-1 +- Autogenerated by ros-porting-tools