Name:		nodelet_core
Version:	1.9.16
Release:	3
Summary:	This is ROS melodic nodelet_core Package
License:	GPL
URL:		https://github.com/ros-gbp/nodelet_core-release/archive/release/melodic/nodelet_core
Source0:	https://github.com/ros-gbp/nodelet_core-release/archive/release/melodic/nodelet_core/1.9.16-0.tar.gz
BuildRequires:	gcc-c++
BuildRequires:	cmake
BuildRequires:	lz4-devel
BuildRequires:	bzip2-devel
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
#Requires:  python-empy
BuildRequires:	openssl-devel
#BuildRequires:	gcc-gfortran
#BuildRequires:	openblas-devel
#BuildRequires:	sqlite-devel
#BuildRequires:	fftw-devel
BuildRequires:	boost-devel
BuildRequires:	uuid-devel
BuildRequires:	uuid
BuildRequires:	libuuid-devel
BuildRequires:  python3-unversioned-command
#BuildRequires:	uuid-devel
#BuildRequires:	python3-devel
#BuildRequires:	boost-python3-devel

%description
This is ROS melodic ros_comm Package.

%prep
%setup
#cd catkin-0.7.26/




#%build

#pwd
#mkdir build/
#cd build/ && cmake ..



%install
pwd
 
#mkdir -p build/
#cd build/
#cmake ..
#cd ..

cd src/
cd 3rdparty/ 

cd empy-3.3.4/
python setup.py install --user
cd ..

cd six-1.15.0/
python setup.py install --user
cd ..

cd setuptools_scm-4.1.2/
python setup.py install --user
cd ..

cd python-dateutil-2.8.1/
python setup.py install --user
cd ..

cd pyparsing-2.4.7/
python setup.py install --user
cd ..

cd docutils-0.16/
python setup.py install --user
cd ..

cd catkin_pkg-0.4.22/
python setup.py install --user
cd ..

#for std_msgs
cd PyYAML-5.3.1/
python setup.py install --user
cd ..

cd distro-1.5.0/
python setup.py install --user
cd ..

cd rospkg-1.2.8/
python setup.py install --user
cd ..



cd console_bridge/
mkdir build/
cd build/
cmake ..
make %{?_smp_mflags}
make install
cd ..
cd ..

cd poco/
mkdir cmake-build/
mkdir cmake-release/
cd cmake-build/
cmake ..
make %{?_smp_mflags}
make install
cd ..
cd ..


cd tinyxml2/
mkdir build
cd build
cmake ..
make %{?_smp_mflags}
make install
cd ..
cd ..


cd urdfdom_headers/
mkdir build
cd build
cmake ..
make install
cd ..
cd ..

cd eigen-3.3.7/
mkdir build
cd build
cmake ..
make install
cd ..
cd ..

cd orocos_kdl/
mkdir build
cd build
cmake ..
make %{?_smp_mflags} install
cd ..
cd ..






# 3rdparty
cd ..
cd ..



#compile
./src/catkin/bin/catkin_make_isolated %{?_smp_mflags}


#install
mkdir -p %{buildroot}/opt/ros/melodic/
cp -r devel_isolated/* %{buildroot}/opt/ros/melodic/

echo %{buildroot}


%files
#%defattr(-,root,root)
#/opt/ros/melodic/*
/opt/ros/melodic/*
#/usr/lib/share/catkin/cmake/*

%changelog
* Tue Apr 27 2021 maminjie <maminjie1@huawei.com> - 1.9.16-3
- Optimize parallel compilation

* Sat Feb 20 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.9.16-2
- Add compilation dependency python3-unversioned-command

* Thu May 28 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.9.16-1
- Package init
