diff --git a/0.3.9.tar.gz b/0.3.9.tar.gz deleted file mode 100644 index 0c8d27eebdc70cc9a3be41e2b22b040c64082d57..0000000000000000000000000000000000000000 Binary files a/0.3.9.tar.gz and /dev/null differ diff --git a/ros-humble-rosbag2-cpp_0.15.5.orig.tar.gz b/ros-humble-rosbag2-cpp_0.15.5.orig.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f2a056474eb7163d6622eb9b1121c4cb2cdfec21 Binary files /dev/null and b/ros-humble-rosbag2-cpp_0.15.5.orig.tar.gz differ diff --git a/rosbag2-cpp.spec b/rosbag2-cpp.spec new file mode 100644 index 0000000000000000000000000000000000000000..92c12ff8879fc5854858f5d7f71ffca66944a66a --- /dev/null +++ b/rosbag2-cpp.spec @@ -0,0 +1,126 @@ +%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 rosbag2-cpp + +Name: ros-%{ros_distro}-%{RosPkgName} +Version: 0.15.5 +Release: 1%{?dist}%{?release_suffix} +Summary: C++ ROSBag2 client library + +License: Apache License 2.0 +Source0: %{name}_%{version}.orig.tar.gz + +Requires: ros-%{ros_distro}-ament-index-cpp +Requires: ros-%{ros_distro}-pluginlib +Requires: ros-%{ros_distro}-rclcpp +Requires: ros-%{ros_distro}-rcutils +Requires: ros-%{ros_distro}-rcpputils +Requires: ros-%{ros_distro}-rmw +Requires: ros-%{ros_distro}-rmw-implementation +Requires: ros-%{ros_distro}-rosbag2-storage +Requires: ros-%{ros_distro}-rosidl-runtime-c +Requires: ros-%{ros_distro}-rosidl-runtime-cpp +Requires: ros-%{ros_distro}-rosidl-typesupport-cpp +Requires: ros-%{ros_distro}-rosidl-typesupport-introspection-cpp +Requires: ros-%{ros_distro}-shared-queues-vendor +Requires: ros-%{ros_distro}-rosbag2-storage-default-plugins +Requires: ros-%{ros_distro}-ros-workspace + +BuildRequires: ros-%{ros_distro}-ament-index-cpp +BuildRequires: ros-%{ros_distro}-pluginlib +BuildRequires: ros-%{ros_distro}-rclcpp +BuildRequires: ros-%{ros_distro}-rcutils +BuildRequires: ros-%{ros_distro}-rcpputils +BuildRequires: ros-%{ros_distro}-rmw +BuildRequires: ros-%{ros_distro}-rmw-implementation +BuildRequires: ros-%{ros_distro}-rosbag2-storage +BuildRequires: ros-%{ros_distro}-rosidl-runtime-c +BuildRequires: ros-%{ros_distro}-rosidl-runtime-cpp +BuildRequires: ros-%{ros_distro}-rosidl-typesupport-cpp +BuildRequires: ros-%{ros_distro}-rosidl-typesupport-introspection-cpp +BuildRequires: ros-%{ros_distro}-shared-queues-vendor +BuildRequires: ros-%{ros_distro}-ament-cmake +BuildRequires: ros-%{ros_distro}-ros-workspace + +%if 0%{?with_tests} +BuildRequires: ros-%{ros_distro}-ament-cmake-gmock +BuildRequires: ros-%{ros_distro}-ament-lint-auto +BuildRequires: ros-%{ros_distro}-ament-lint-common +BuildRequires: ros-%{ros_distro}-test-msgs +BuildRequires: ros-%{ros_distro}-rosbag2-test-common +%endif + +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} + +%description +C++ ROSBag2 client library + +%prep +%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 +# 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 +/opt/ros/%{ros_distro} + +%changelog +* Thu May 04 2023 Michael Orlov michael.orlov@apex.ai - 0.15.5-1 +- Autogenerated by ros-porting-tools diff --git a/rosbag2.spec b/rosbag2.spec deleted file mode 100644 index 5c5301a06bc7497562d6bc063d65ded487380e2e..0000000000000000000000000000000000000000 --- a/rosbag2.spec +++ /dev/null @@ -1,207 +0,0 @@ -Name: ros-foxy-ros-rosbag2 -Version: 0.3.9 -Release: 2 -Summary: This is ROS foxy %{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 and MPL-1.1 and IJG and Zlib and OFL-1.1 -URL: https://github.com/ros2/rosbag2.git -Source0: https://github.com/ros2/rosbag2/archive/refs/tags/0.3.9.tar.gz - -BuildRequires: gcc-c++ -BuildRequires: cmake -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: bison -BuildRequires: boost-devel -BuildRequires: git -BuildRequires: bullet-devel -BuildRequires: tinyxml2-devel -BuildRequires: yaml-cpp-devel -BuildRequires: apr-devel -BuildRequires: apr-util-devel -BuildRequires: maven - -%description -This is ROS foxy %{name} Package. - -%prep -%setup - -%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 lark-1.0.0 -python3 setup.py install --user -cd .. - -cd Cython-0.29.24 -python3 setup.py install --user -cd .. - -cd numpy-1.21.2 -python3 setup.py install --user -cd .. - -#ros2 - -cd distlib-0.3.3/ -python3 setup.py install --user -cd .. - -cd attrs-21.2.0 -python3 setup.py install --user -cd .. - -cd more-itertools-5.0.0 -python3 setup.py install --user -cd .. - -cd zipp-1.0.0 -python3 setup.py install --user -cd .. - -cd wheel-0.33.0 -python3 setup.py install --user -cd .. - -cd toml-0.10.2 -python3 setup.py install --user -cd .. - -cd importlib_metadata-3.8.0 -python3 setup.py install --user -cd .. - -cd py-1.11.0 -python3 setup.py install --user -cd .. - -cd packaging-21.3 -python3 setup.py install --user -cd .. - -cd iniconfig-1.1.1 -python3 setup.py install --user -cd .. - -cd pluggy-1.0.0 -python3 setup.py install --user -cd .. - -cd typing_extensions-3.7.4 -python3 setup.py install --user -cd .. - -cd pytest-6.2.5 -python3 setup.py install --user -cd .. - -cd coverage-5.4 -python3 setup.py install --user -cd .. - -cd pytest-cov-3.0.0 -python3 setup.py install --user -cd .. - -cd pytest-repeat-0.9.1 -python3 setup.py install --user -cd .. - -cd pytest-rerunfailures-10.2 -python3 setup.py install --user -cd .. - -cd pytest-runner-5.3.1 -python3 setup.py install --user -cd .. - -cd PyYAML-6.0 -python3 setup.py install --user -cd .. - -cd setuptools-60.0.0 -python3 setup.py install --user -cd .. - -cd argcomplete-1.11.1 -python3 setup.py install --user -cd .. - -cd notify2-0.3.1 -python3 setup.py install --user -cd .. - -cd .. - -# for colcon build tools -cd build_tools -export BUILD_WORSPCE=$PWD -./colcon/colcon-core/bin/colcon build --paths colcon/* --merge-install -source install/local_setup.sh -cd .. - -# for workspace -cd workspace -colcon build --merge-install -cp ../install_dependence.sh install/ -cp -r ../build_tools/install/bin install/ -cp -r ../build_tools/install/lib install/ -cp -r ../build_tools/install/share install/ - -#### -# 对install内部的变量名称进行替换 -# -#### -SRC_PATH=$PWD/install -DST_PATH=/opt/ros/foxy -sed -i "s:${SRC_PATH}:${DST_PATH}:g" `grep -rIln "${SRC_PATH}" install/*` - -SRC_PATH=$BUILD_WORSPCE/install -DST_PATH=/opt/ros/foxy -sed -i "s:${SRC_PATH}:${DST_PATH}:g" `grep -rIln "${SRC_PATH}" install/*` - -#### -# install -# -#### -mkdir -p %{buildroot}/opt/ros/foxy/ -cp -r install/* %{buildroot}/opt/ros/foxy/ - - -%files -%defattr(-,root,root) -/opt/ros/foxy/* - -%changelog -* Wed Sep 21 2022 openEuler Buildteam - 0.3.9-2 -- Update Package to OpenEuler 22.03 -* Tue Nov 30 2021 openEuler Buildteam - 0.3.9-1 -- Package init