ros2_base/ros2_base.spec

81 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

2022-11-19 14:53:59 +08:00
Name: ros-foxy-ros-base
2022-11-12 19:12:17 +08:00
Version: 0.9.2
2022-11-19 14:53:59 +08:00
Release: 2
Summary: This is ROS2 foxy %{name} Package
2022-11-12 19:12:17 +08:00
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
2022-11-19 14:53:59 +08:00
URL: https://github.com/ros2-gbp/variants-release.git
Source0: https://github.com/ros2-gbp/variants-release/archive/release/foxy/ros_base/0.9.2-1.tar.gz
2022-11-12 19:12:17 +08:00
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
BuildRequires: asio-devel
BuildRequires: tinyxml2-devel
BuildRequires: git
BuildRequires: qt5-devel
BuildRequires: bullet-devel
2022-11-19 14:53:59 +08:00
BuildRequires: zstd-devel
BuildRequires: libzstd-devel
BuildRequires: openblas-devel
2022-11-12 19:12:17 +08:00
%description
2022-11-19 14:53:59 +08:00
This is ROS2 foxy %{name} Package.
2022-11-12 19:12:17 +08:00
%prep
%setup
%install
# for colcon build tools
2023-08-22 18:33:59 +08:00
#cd build_tools
#export BUILD_WORSPCE=$PWD
#./colcon/colcon-core/bin/colcon build --paths colcon/* --merge-install
#source install/local_setup.sh
#cd ..
2022-11-12 19:12:17 +08:00
# for workspace
2023-08-22 18:33:59 +08:00
#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/
2022-11-12 19:12:17 +08:00
####
# for unit test 循环拷贝所有的东西
#
####
####
# 对install内部的变量名称进行替换
#
####
2023-08-22 18:33:59 +08:00
#SRC_PATH=$PWD/install
#DST_PATH=/opt/ros/foxy
#sed -i "s:${SRC_PATH}:${DST_PATH}:g" `grep -rIln "${SRC_PATH}" install/*`
2022-11-12 19:12:17 +08:00
2023-08-22 18:33:59 +08:00
#SRC_PATH=$BUILD_WORSPCE/install
#DST_PATH=/opt/ros/foxy
#sed -i "s:${SRC_PATH}:${DST_PATH}:g" `grep -rIln "${SRC_PATH}" install/*`
2022-11-12 19:12:17 +08:00
####
# install
#
####
2023-08-22 18:33:59 +08:00
#mkdir -p %{buildroot}/opt/ros/foxy/
#cp -r install/* %{buildroot}/opt/ros/foxy/
2022-11-12 19:12:17 +08:00
###for debug
#mkdir -p %{buildroot}/opt/ros/foxy/log
#cp -r log/ %{buildroot}/opt/ros/foxy/log
%files
%defattr(-,root,root)
%changelog
2022-11-19 14:53:59 +08:00
* Sat Nov 19 2022 openEuler Buildteam <hanhaomin008@126.com> - 0.9.2-2
- Fix Package name
2022-11-12 19:12:17 +08:00
* Wed Sep 21 2022 openEuler Buildteam <hanhaomin008@126.com> - 0.9.2-1
- Update Package to OpenEuler 22.03