SHA256
1
0
forked from pool/libqb
libqb/libqb.spec
Yan Gao 98d82315cc Accepting request 830044 from home:yan_gao:branches:network:ha-clustering:Factory
- Update to version 2.0.1+20200729.416caf2 (v2.0.1):
- unix.c: use posix_fallocate() (#409)
- doxygen2man: Tidy RETURN VALUE
- doxygen2man - Print structure descriptions (where available) (#408)
- Make manpages (#405)
- doxygen2man: Fix a couple of the worst coverity errors (#404)
- doxygen2man - Lots of new features & fixes for parsing libqb manpages (#402)
- array: More locking fixes (#400)
- log: Fix threading races (#396)
- Some bugs spotted by coverity (#399)

- Update to version 2.0.0+20200504.803d924 (v2.0.0):
- log: journal: fix forgotten syslog reload when flipped from journal
- Let remote_tempdir() assume a NUL-terminated name
- Make it impossible to truncate or overflow the connection description
- master: Issue 390: Clarify documentation of qb_loop_timer_expire_time_get and provide new function to return previously documented behavior (#391) (gh#ClusterLabs/libqb#390)

- Update to version 1.9.1+20200318.93f9975 (v1.9.1):
- Doxygen2man (#388)
- trie: Don't assume that chars are unsigned < 126 (#386)
- list: fix list handling for gcc10 (#383)
- Set correct ownership if qb_ipcs_connection_auth_set() has been used (gh#ClusterLabs/libqb#369, rh#1836146)
- Allow group access to the IPC directory
- Errors are represented as negative values

- Update to version 1.9.0+20191211.51a03aa (v1.9.0):
- lib: Fix some minor warnings from newer compilers
- ipc: Always initialize response struct
- ringbuffer: fix mistaken errno handling around _rb_chunk_reclaim
- array,log: Never set errno to a negative value

OBS-URL: https://build.opensuse.org/request/show/830044
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=95
2020-08-27 17:05:49 +00:00

160 lines
4.2 KiB
RPMSpec

#
# spec file for package libqb
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without check
%bcond_without testsrpm
%bcond_without doxygen2man
Name: libqb
Version: 2.0.1+20200729.416caf2
Release: 0
Summary: An IPC library for high performance servers
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/ClusterLabs/libqb
Source0: %{name}-%{version}.tar.xz
Source1: baselibs.conf
Patch1: libqb-configure-package-version.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: check-devel
BuildRequires: doxygen
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: procps
# Need git so build-aux/git-version-gen can extract the version number and
# commit hash during autogen run (not used currently)
#BuildRequires: git
%description
libqb is a library providing high performance client server reusable
features. It provides logging, tracing, IPC, and polling.
%package -n libqb100
Summary: An IPC library for high performance servers
Group: System/Libraries
%description -n libqb100
libqb is a library providing high performance client server reusable
features. It provides logging, tracing, IPC, and polling.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: libqb100 = %{version}-%{release}
%description devel
libqb is a library providing high performance client server reusable
features. It provides logging, tracing, IPC, and polling.
%package tools
Summary: Utilities from libqb, an IPC library
Group: Development/Tools/Other
Provides: libqb0:/usr/sbin/qb-blackbox
Conflicts: libqb0 <= 1.0.3
%description tools
libqb is a library providing high performance client server reusable
features. It provides logging, tracing, IPC, and polling.
%prep
%setup -q -n %{name}-%{version}
%patch1 -p1
%build
./autogen.sh
%configure \
%if %{with testsrpm}
--enable-install-tests \
%endif
--disable-static
make %{?_smp_mflags}
%if 0%{?with_check}
%check
# Tests require writable /dev/shm and /var/run
# TODO: This test might not be quite right -- it seems to fail on OBS,
# but OBS is capable of doing "make check" successfully, whereas
# "osc build" in a chroot fails.
if [ -w /dev/shm -a -w /var/run ] ; then
make V=1 check
fi
%endif
%install
%make_install
find %{buildroot} -name '*.la' -delete
rm -rf %{buildroot}%{_datadir}/doc
%post -n libqb100 -p /sbin/ldconfig
%postun -n libqb100 -p /sbin/ldconfig
%files -n libqb100
%doc COPYING
%{_libdir}/libqb.so.*
%files devel
%defattr(-,root,root,-)
%doc COPYING README.markdown
%{_includedir}/qb/
%{_libdir}/libqb.so
%{_libdir}/pkgconfig/libqb.pc
%{_mandir}/man3/qb*3*
%files tools
%defattr(-,root,root,-)
%doc COPYING
%{_sbindir}/qb-blackbox
%{_mandir}/man8/qb-blackbox.8.gz
%package tests
Summary: Test suite for %{name}
Group: Development/Tools/Other
%files tests
%doc COPYING
%dir %{_libdir}/libqb
%dir %{_libdir}/libqb/tests
%{_libdir}/libqb/tests/*
%description tests
The %{name}-tests package contains the %{name} test suite.
%if %{with doxygen2man}
%package -n doxygen2man
Summary: tool to generate man pages from Doxygen XML files
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
BuildRequires: pkgconfig(libxml-2.0)
%files -n doxygen2man
%{_bindir}/doxygen2man
%{_mandir}/man1/doxygen2man.1*
%doc COPYING
%description -n doxygen2man
The doxygen2man package contains the doxygen2man utility.
%endif
%changelog