Name:		poco
Version:	1.10.1
Release:	3
Summary:	This is ROS melodic ros_comm's 3rdparty poco
License:	BSL-1.0
URL:		https://github.com/pocoproject/poco/releases/tag/poco-1.10.1-release
Source0:	https://github.com/pocoproject/poco/archive/poco-1.10.1-release.tar.gz
BuildRequires:	gcc-c++
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	openssl-devel

%description
This is ROS melodic ros_comm's 3rdparty poco.

%prep
%setup

%install
mkdir cmake-build/
cd cmake-build/
cmake ..
make -j9 
make install
cd ..

#install
mkdir -p %{buildroot}/usr/local/
cp -r install/* %{buildroot}/usr/local/

find %{buildroot} -type f -name '*.so.*' -exec strip '{}' ';'

%files
%defattr(-,root,root)
/usr/local/*

%changelog
* Wed Jun 15 2022 loong_C <loong_c@yeah.net> - 1.10.1-3
- update poco.spec for License error and bad log

* Sat Sep 4 2021 zhangtao <zhangtao221@huawei.com> - 1.10.1-2
- strip dynamic library

* Thu Dec 31 2020 openEuler Buildteam <hanhaomin008@126.com>
- Package init
