console_bridge/console_bridge.spec

58 lines
1.2 KiB
RPMSpec
Raw Permalink Normal View History

2023-06-05 13:13:08 +08:00
%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++
2021-01-09 21:39:28 +08:00
BuildRequires: cmake
%description
2023-06-05 13:13:08 +08:00
A very lightweight set of macros that can be used for reporting information
in libraries. The logged information can be forwarded to other systems.
2021-01-09 21:39:28 +08:00
2023-06-05 13:13:08 +08:00
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2021-01-09 21:39:28 +08:00
2023-06-05 13:13:08 +08:00
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
2021-01-09 21:39:28 +08:00
2023-06-05 13:13:08 +08:00
%prep
%setup -n %{realname}-%{version}
2021-09-07 10:17:34 +08:00
2023-06-05 13:13:08 +08:00
%build
mkdir build;
pushd build
%cmake .. -DUSE_GNU_INSTALL_DIRS=ON
popd
make -C build %{?_smp_mflags}
2021-01-09 21:39:28 +08:00
2023-06-05 13:13:08 +08:00
%install
make -C build install DESTDIR=%{buildroot}
2022-07-26 07:09:09 +00:00
2023-06-05 13:13:08 +08:00
%post -p /sbin/ldconfig
2023-06-05 13:13:08 +08:00
%postun -p /sbin/ldconfig
2021-09-07 10:17:34 +08:00
2023-06-05 13:13:08 +08:00
%files
%{_libdir}/*.so.*
2021-01-09 21:39:28 +08:00
2023-06-05 13:13:08 +08:00
%files devel
%{_includedir}/%{realname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{realname}
2021-01-09 21:39:28 +08:00
2023-06-05 13:13:08 +08:00
%changelog
* Thu Apr 27 2023 NiuTao niutao2@huawei.com 1.0.2-1
- Refactor spec and update software to 1.0.2