Fix: update

This commit is contained in:
davidhan008 2023-06-05 13:13:08 +08:00
parent 3245253bcc
commit fa36c24de6
3 changed files with 43 additions and 37 deletions

Binary file not shown.

BIN
1.0.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,51 +1,57 @@
Name: console_bridge %global realname console_bridge
Version: 1.0.0 Name: console-bridge
Release: 4 Version: 1.0.2
Summary: This is ROS melodic ros_comm's 3rdparty console_bridge Release: 1%{?dist}
License: BSD-3-Clause 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: make
%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 Jul 26 2022 Chenyx <chenyixiong3@huawei.com> - 1.0.0-4 * Thu Apr 27 2023 NiuTao niutao2@huawei.com 1.0.2-1
- License compliance rectification - Refactor spec and update software to 1.0.2
* Tue Dec 21 2021 sdlzx <hdu_sdlzx@163.com> - 1.0.0-3
- Remove boost dependency
* 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