139 lines
3.1 KiB
RPMSpec
139 lines
3.1 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: uuid-devel
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libwebp-devel
|
|
BuildRequires: libjpeg-turbo-devel
|
|
BuildRequires: yaml-cpp-devel
|
|
BuildRequires: python3-gpgme
|
|
BuildRequires: gpgme-devel
|
|
BuildRequires: cpp-gpgme
|
|
BuildRequires: python3-crypto
|
|
BuildRequires: boost-devel
|
|
BuildRequires: libtool-ltdl-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: fltk-devel
|
|
BuildRequires: bullet-devel
|
|
BuildRequires: qt5-devel
|
|
BuildRequires: python3-sip-devel
|
|
BuildRequires: python3-qt5
|
|
BuildRequires: python3-sip
|
|
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/
|
|
|
|
####
|
|
# 对chrpath修改
|
|
#
|
|
####
|
|
file `find %{buildroot}/opt/ros/noetic/lib/ -type f` | grep -w ELF | awk -F: '{print $1}' | xargs chrpath -d
|
|
|
|
|
|
#chrpath -d %{buildroot}/opt/ros/noetic/lib/librostime.so
|
|
#mkdir -p %{buildroot}/etc/ld.so.conf.d
|
|
#echo %{buildroot}/opt/ros/noetic/lib/:%{buildroot} > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
#%post
|
|
#/sbin/ldconfig
|
|
|
|
#%postun
|
|
#/sbin/ldconfig
|
|
|
|
%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
|