diff --git a/1.0.0.tar.gz b/1.0.0.tar.gz deleted file mode 100644 index e9d2df7..0000000 Binary files a/1.0.0.tar.gz and /dev/null differ diff --git a/1.0.2.tar.gz b/1.0.2.tar.gz new file mode 100644 index 0000000..0b181de Binary files /dev/null and b/1.0.2.tar.gz differ diff --git a/console_bridge.spec b/console_bridge.spec index 024de7f..612e96c 100644 --- a/console_bridge.spec +++ b/console_bridge.spec @@ -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 - 1.0.0-2 -- Strip dynamic library - -* Thu Dec 31 2020 openEuler Buildteam - 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