283 lines
5.5 KiB
RPMSpec
283 lines
5.5 KiB
RPMSpec
Name: ros-foxy-ros-qwt
|
|
Version: 6.1.3
|
|
Release: 0
|
|
Summary: This is ROS2 foxy gazebo 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/gazebosim/qwt
|
|
Source0: https://github.com/gazebosim/qwt/refs/tags/6.1.3.tar.gz
|
|
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
|
|
BuildRequires: gmock-devel
|
|
BuildRequires: suitesparse-devel
|
|
BuildRequires: lua-devel
|
|
BuildRequires: protobuf-devel
|
|
BuildRequires: cairo-devel
|
|
BuildRequires: gflags-devel
|
|
BuildRequires: freeglut-devel
|
|
BuildRequires: libXt-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXrandr-devel
|
|
BuildRequires: libXaw-devel
|
|
BuildRequires: assimp-devel
|
|
BuildRequires: qt5-qtdeclarative-devel
|
|
BuildRequires: yaml-cpp-devel
|
|
BuildRequires: libatomic
|
|
BuildRequires: lz4-devel
|
|
BuildRequires: sphinx
|
|
BuildRequires: bullet-devel
|
|
BuildRequires: libtool-ltdl-devel
|
|
BuildRequires: fltk-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libwebp-devel
|
|
BuildRequires: gtest-devel
|
|
BuildRequires: yaml-cpp-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: swig
|
|
BuildRequires: python3-psutil
|
|
#BuildRequires: freeimage-devel
|
|
BuildRequires: libXaw-devel
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libtar-devel
|
|
BuildRequires: tbb-devel
|
|
#BuildRequires: cppzmq-devel
|
|
BuildRequires: rubygem-sqlite3
|
|
BuildRequires: hdf5-devel
|
|
BuildRequires: graphviz-devel
|
|
BuildRequires: libusb
|
|
BuildRequires: libzip-devel
|
|
BuildRequires: sqlite-devel
|
|
BuildRequires: jsoncpp-devel
|
|
BuildRequires: openal-soft-devel
|
|
BuildRequires: openblas-devel
|
|
BuildRequires: lapack-devel
|
|
BuildRequires: freeglut-devel
|
|
BuildRequires: libatomic
|
|
BuildRequires: zlib
|
|
BuildRequires: zeromq-devel
|
|
BuildRequires: openeuler-lsb
|
|
BuildRequires: ruby-devel
|
|
BuildRequires: rubygem-rexml
|
|
BuildRequires: python-numpy
|
|
#BuildRequires: freeimage-devel
|
|
|
|
%description
|
|
This is ROS2 foxy gazebo 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 ..
|
|
|
|
#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-5.4
|
|
python3 setup.py install --user
|
|
cd ..
|
|
|
|
#cd setuptools-50.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 lark-1.0.0
|
|
python3 setup.py install --user
|
|
cd ..
|
|
|
|
# for 21.03 python3.8
|
|
#cd setuptools-50.0.0
|
|
#python3 setup.py install --user
|
|
#cd ..
|
|
#cd Cython-0.29.24
|
|
#python3 setup.py install --user
|
|
#cd ..
|
|
#cd numpy-1.19.2
|
|
#python3 setup.py install --user
|
|
#cd ..
|
|
|
|
|
|
# for factory python3.10
|
|
#cd setuptools-50.0.0 need detel setuptools
|
|
#python3 setup.py install --user
|
|
#cd ..
|
|
|
|
####cpp 相关依赖库
|
|
export BUILD_PLATFORM=`uname -m`
|
|
if (($BUILD_PLATFORM=="aarch64"))
|
|
then
|
|
BUILD_PLATFORM="arm"
|
|
fi
|
|
cd gts-0.7.6
|
|
./configure --prefix=$PWD/../../workspace/install/ --build=$BUILD_PLATFORM --enable-shared
|
|
make -j8
|
|
make install
|
|
cd ..
|
|
|
|
cd qwt-6.1.3
|
|
/usr/bin/qmake-qt5 qwt.pro
|
|
make -j8
|
|
make install
|
|
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/
|
|
#cp install/share/gazebo-11/setup.sh %{buildroot}/opt/ros/foxy/share/gazebo/local_setup.bash
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/opt/ros/foxy/*
|
|
|
|
%changelog
|
|
* Sat Nov 19 2022 openEuler Buildteam <hanhaomin008@126.com> - 6.1.3
|
|
- Fix Package name
|