Fix: update

This commit is contained in:
davidhan008 2023-06-08 10:11:12 +08:00
parent 2a6c4c7db2
commit d308da78a9
3 changed files with 43 additions and 31 deletions

Binary file not shown.

BIN
1.0.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,45 +1,57 @@
Name: console_bridge
Version: 1.0.0
Release: 2
Summary: This is ROS melodic ros_comm's 3rdparty console_bridge
License: GPL
URL: https://github.com/ros/console_bridge/releases/tag/1.0.0
Source0: https://github.com/ros/console_bridge/archive/1.0.0.tar.gz
BuildRequires: gcc-c++
%global realname console_bridge
Name: console-bridge
Version: 1.0.2
Release: 1%{?dist}
Summary: Lightweight set of macros used for reporting information in libraries
Group: Development/Libraries
License: BSD
URL: http://github.com/ros/console_bridge
Source0: 1.0.2.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: boost-devel
%description
This is ROS melodic ros_comm's 3rdparty console_bridge.
A very lightweight set of macros that can be used for reporting information
in libraries. The logged information can be forwarded to other systems.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup
%setup -n %{realname}-%{version}
%build
mkdir build;
pushd build
%cmake .. -DUSE_GNU_INSTALL_DIRS=ON
popd
make -C build %{?_smp_mflags}
%install
mkdir build/
cd build/
cmake ..
make
make install
cd ..
make -C build install DESTDIR=%{buildroot}
#install
mkdir -p %{buildroot}/usr/local/
cp -r install/* %{buildroot}/usr/local/
%post -p /sbin/ldconfig
#Strip dynamic library
find %{buildroot} -type f -name 'libconsole_bridge.so.1.0' -exec strip '{}' \;
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
/usr/local/*
%{_libdir}/*.so.*
%files devel
%{_includedir}/%{realname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{realname}
%changelog
* Tue Sep 07 2021 lingsheng <lingsheng@huawei.com> - 1.0.0-2
- Strip dynamic library
* Thu Dec 31 2020 openEuler Buildteam <hanhaomin008@126.com> - 1.0.0-1
- Package init
* Thu Apr 27 2023 NiuTao niutao2@huawei.com 1.0.2-1
- Refactor spec and update software to 1.0.2