107 lines
2.2 KiB
RPMSpec
107 lines
2.2 KiB
RPMSpec
Name: ros-noetic-ros-comm
|
|
Version: 1.15.11
|
|
Release: 2
|
|
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
|
|
URL: https://github.com/ros-gbp/ros_comm-release/archive/release/noetic/ros_comm
|
|
Source0: https://github.com/ros-gbp/ros_comm-release/archive/release/noetic/ros_comm/1.15.11-1.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: python3-gpgme
|
|
BuildRequires: gpgme-devel
|
|
BuildRequires: cpp-gpgme
|
|
BuildRequires: python3-crypto
|
|
BuildRequires: gtest-devel
|
|
BuildRequires: gmock-devel
|
|
|
|
%description
|
|
This is %{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 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/
|
|
mkdir -p %{buildroot}/usr/local/
|
|
cp -r install_isolated/* %{buildroot}/opt/ros/noetic/
|
|
cp install_isolated/.rosinstall %{buildroot}/opt/ros/noetic/
|
|
cp install_isolated/.catkin %{buildroot}/opt/ros/noetic/
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/opt/ros/noetic/*
|
|
/opt/ros/noetic/.rosinstall
|
|
/opt/ros/noetic/.catkin
|
|
|
|
%changelog
|
|
* Sat Feb 26 2022 openEuler Buildteam <hanhaomin008@126.com> - 1.15.11-2
|
|
- Fix issue 2065
|
|
|
|
* Tue Dec 15 2020 openEuler Buildteam <hanhaomin008@126.com> - 1.15.11-1
|
|
- Package init
|