libqb/libqb.spec

85 lines
2.7 KiB
RPMSpec
Raw Normal View History

2021-02-25 19:10:14 +08:00
Name: libqb
Version: 1.0.5
2021-03-04 09:45:46 +08:00
Release: 2
2021-02-25 19:10:14 +08:00
Summary: Library providing high performance logging, tracing, ipc, and poll
License: LGPLv2+
URL: https://github.com/ClusterLabs/libqb
Source0: https://github.com/ClusterLabs/libqb/releases/download/v%{version}/%{name}-%{version}.tar.xz
Patch0: IPC-avoid-temporary-channel-priority-loss.patch
Patch1: libqb-fix-list-handling-gcc10.patch
2021-03-04 09:45:46 +08:00
Patch2: fix-corosync-compile-fail.patch
2021-02-25 19:10:14 +08:00
BuildRequires: autoconf automake libtool check-devel doxygen gcc procps pkgconfig(glib-2.0)
BuildRequires: git-core
2020-06-19 18:20:31 +08:00
%description
2021-02-25 19:10:14 +08:00
libqb provides high-performance, reusable features for client-server
2020-06-19 18:20:31 +08:00
architecture, such as logging, tracing, inter-process communication (IPC),
and polling.
%prep
2021-02-25 19:10:14 +08:00
%autosetup -p1 -S git_am
2020-06-19 18:20:31 +08:00
%build
./autogen.sh
%configure --disable-static
2021-02-25 19:10:14 +08:00
%{make_build}
2020-06-19 18:20:31 +08:00
%if 0%{?with_check}
%check
2021-02-25 19:10:14 +08:00
make check V=1 \
&& make -C tests/functional/log_internal check V=1
2020-06-19 18:20:31 +08:00
%endif
%install
2021-02-25 19:10:14 +08:00
%{make_install}
find $RPM_BUILD_ROOT -name '*.la' -delete
2020-06-19 18:20:31 +08:00
rm -rf $RPM_BUILD_ROOT/%{_docdir}/*
2021-02-25 19:10:14 +08:00
%ldconfig_scriptlets
2020-06-19 18:20:31 +08:00
%package devel
2021-02-25 19:10:14 +08:00
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release} pkgconfig
2020-06-19 18:20:31 +08:00
%description devel
2021-02-25 19:10:14 +08:00
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
2020-06-19 18:20:31 +08:00
%package help
Summary: help documents for libqb package
Buildarch: noarch
%description help
help documents for libqb package
%files
2021-02-25 19:10:14 +08:00
%license COPYING
2020-06-19 18:20:31 +08:00
%{_sbindir}/qb-blackbox
%{_libdir}/libqb.so.*
%files devel
2021-02-25 19:10:14 +08:00
%doc README.markdown
2020-06-19 18:20:31 +08:00
%{_includedir}/qb/
%{_libdir}/libqb.so
%{_libdir}/pkgconfig/libqb.pc
2021-02-25 19:10:14 +08:00
%files help
2020-06-19 18:20:31 +08:00
%{_mandir}/man8/qb-blackbox.8*
%{_mandir}/man3/qb*3*
%changelog
2021-03-04 09:45:46 +08:00
* Thu Mar 4 2021 baizhonggui <baizhonggui@huawei.com> - 1.0.5-2
- new add #include <stddef.h> in qblist.h to fix:
issue# https://gitee.com/src-openeuler/corosync/issues/I39X3F?from=project-issue
upstream link:https://github.com/ClusterLabs/libqb/pull/384
2021-02-25 19:10:14 +08:00
* Thu Feb 25 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.0.5-1
- upgrade to 1.0.5
* Tue Feb 8 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 1.0.3-7
- Fix CVE-2019-12779 libqb before 1.0.5 allows local users to overwrite arbitrary files via a symlink attack.
CVE Link: https://nvd.nist.gov/vuln/detail/CVE-2019-12779
Community Patch Link:
https://github.com/ClusterLabs/libqb/commit/e322e98dc264bc5911d6fe1d371e55ac9f95a71e
https://github.com/ClusterLabs/libqb/commit/7cd7b06d52ac80c343f362c7e39ef75495439dfc
https://github.com/ClusterLabs/libqb/commit/6a4067c1d1764d93d255eccecfd8bf9f43cb0b4d
2021-02-05 16:32:51 +08:00
2020-06-19 18:20:31 +08:00
* Tue Apr 27 2020 wangerfeng <wangerfeng5@huawei.com> - 1.0.3-6
- Package init