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