2012-06-08 12:59:30 +02:00
|
|
|
#
|
|
|
|
# spec file for package libqb
|
|
|
|
#
|
2023-06-20 07:38:20 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-06-08 12:59:30 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-03 10:16:21 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-06-08 12:59:30 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-04-15 16:10:29 +02:00
|
|
|
%bcond_without check
|
2019-04-02 18:24:02 +02:00
|
|
|
%bcond_without testsrpm
|
2020-08-27 19:05:49 +02:00
|
|
|
%bcond_without doxygen2man
|
2016-04-15 16:10:29 +02:00
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
Name: libqb
|
2023-07-25 13:28:48 +02:00
|
|
|
Version: 2.0.8+20230721.002171b
|
2012-06-08 12:59:30 +02:00
|
|
|
Release: 0
|
2012-06-08 12:25:24 +02:00
|
|
|
Summary: An IPC library for high performance servers
|
2019-01-29 09:49:50 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2017-02-28 15:43:26 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-08-27 19:05:49 +02:00
|
|
|
URL: https://github.com/ClusterLabs/libqb
|
2018-01-02 14:43:35 +01:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2014-08-08 07:02:56 +02:00
|
|
|
Source1: baselibs.conf
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2012-06-08 12:59:30 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libtool
|
2012-06-08 14:05:31 +02:00
|
|
|
BuildRequires: pkgconfig
|
2013-07-22 10:19:09 +02:00
|
|
|
BuildRequires: procps
|
2023-06-20 07:38:20 +02:00
|
|
|
BuildRequires: util-linux
|
2012-06-08 14:05:31 +02:00
|
|
|
# Need git so build-aux/git-version-gen can extract the version number and
|
2013-11-16 14:20:10 +01:00
|
|
|
# commit hash during autogen run (not used currently)
|
|
|
|
#BuildRequires: git
|
2012-06-08 11:16:14 +02:00
|
|
|
|
|
|
|
%description
|
2019-01-29 15:31:45 +01:00
|
|
|
libqb is a library providing high performance client server reusable
|
|
|
|
features. It provides logging, tracing, IPC, and polling.
|
2012-11-20 05:54:44 +01:00
|
|
|
|
2020-08-27 19:05:49 +02:00
|
|
|
%package -n libqb100
|
2012-06-08 15:22:31 +02:00
|
|
|
Summary: An IPC library for high performance servers
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2020-08-27 19:05:49 +02:00
|
|
|
%description -n libqb100
|
2019-01-29 15:31:45 +01:00
|
|
|
libqb is a library providing high performance client server reusable
|
|
|
|
features. It provides logging, tracing, IPC, and polling.
|
2012-11-20 05:54:44 +01:00
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-08-27 19:05:49 +02:00
|
|
|
Requires: libqb100 = %{version}-%{release}
|
2012-06-08 15:22:31 +02:00
|
|
|
|
|
|
|
%description devel
|
2019-01-29 15:31:45 +01:00
|
|
|
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
|
2019-02-07 17:58:37 +01:00
|
|
|
Conflicts: libqb0 <= 1.0.3
|
2022-07-18 13:02:03 +02:00
|
|
|
Provides: libqb0:%{_sbindir}/qb-blackbox
|
2019-01-29 15:31:45 +01:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
libqb is a library providing high performance client server reusable
|
|
|
|
features. It provides logging, tracing, IPC, and polling.
|
2012-11-20 05:54:44 +01:00
|
|
|
|
2012-06-08 11:16:14 +02:00
|
|
|
%prep
|
2018-01-02 14:43:35 +01:00
|
|
|
%setup -q -n %{name}-%{version}
|
2012-06-08 11:16:14 +02:00
|
|
|
|
|
|
|
%build
|
2021-11-29 11:30:04 +01:00
|
|
|
if [ ! -f .tarball-version ]; then
|
|
|
|
echo %{VERSION} > .tarball-version
|
|
|
|
fi
|
2013-07-26 03:59:17 +02:00
|
|
|
./autogen.sh
|
2019-04-02 18:24:02 +02:00
|
|
|
%configure \
|
|
|
|
%if %{with testsrpm}
|
|
|
|
--enable-install-tests \
|
|
|
|
%endif
|
|
|
|
--disable-static
|
2022-07-18 13:02:03 +02:00
|
|
|
%make_build
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2016-04-15 16:10:29 +02:00
|
|
|
%if 0%{?with_check}
|
2012-06-08 11:16:14 +02:00
|
|
|
%check
|
2012-06-08 14:30:33 +02:00
|
|
|
# Tests require writable /dev/shm and /var/run
|
2012-06-08 15:07:29 +02:00
|
|
|
# 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.
|
2022-07-18 13:02:03 +02:00
|
|
|
if [ -w /dev/shm -a -w %{_localstatedir}/run ] ; then
|
2018-01-02 14:43:35 +01:00
|
|
|
|
2022-07-18 13:02:03 +02:00
|
|
|
%make_build check
|
2012-06-08 14:30:33 +02:00
|
|
|
fi
|
2016-04-15 16:10:29 +02:00
|
|
|
%endif
|
2012-06-08 11:16:14 +02:00
|
|
|
|
|
|
|
%install
|
2012-06-08 12:25:24 +02:00
|
|
|
%make_install
|
2022-07-18 13:02:03 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-06-08 15:07:29 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2020-08-27 19:05:49 +02:00
|
|
|
%post -n libqb100 -p /sbin/ldconfig
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2020-08-27 19:05:49 +02:00
|
|
|
%postun -n libqb100 -p /sbin/ldconfig
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2020-08-27 19:05:49 +02:00
|
|
|
%files -n libqb100
|
2022-07-18 13:02:03 +02:00
|
|
|
%license COPYING
|
2012-06-08 11:16:14 +02:00
|
|
|
%{_libdir}/libqb.so.*
|
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
%files devel
|
2022-07-18 13:02:03 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README.markdown
|
2012-06-08 11:16:14 +02:00
|
|
|
%{_includedir}/qb/
|
|
|
|
%{_libdir}/libqb.so
|
|
|
|
%{_libdir}/pkgconfig/libqb.pc
|
2022-07-18 13:02:03 +02:00
|
|
|
%{_mandir}/man3/qb*3%{?ext_man}
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2019-01-29 15:31:45 +01:00
|
|
|
%files tools
|
2022-07-18 13:02:03 +02:00
|
|
|
%license COPYING
|
2019-01-29 15:31:45 +01:00
|
|
|
%{_sbindir}/qb-blackbox
|
2022-07-18 13:02:03 +02:00
|
|
|
%{_mandir}/man8/qb-blackbox.8%{?ext_man}
|
2019-01-29 15:31:45 +01:00
|
|
|
|
2019-04-02 18:24:02 +02:00
|
|
|
%package tests
|
|
|
|
Summary: Test suite for %{name}
|
2019-04-03 10:16:21 +02:00
|
|
|
Group: Development/Tools/Other
|
2019-04-02 18:24:02 +02:00
|
|
|
|
2022-07-18 13:02:03 +02:00
|
|
|
%files tests
|
|
|
|
%license COPYING
|
2019-04-02 18:24:02 +02:00
|
|
|
%dir %{_libdir}/libqb
|
|
|
|
%dir %{_libdir}/libqb/tests
|
|
|
|
%{_libdir}/libqb/tests/*
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
The %{name}-tests package contains the %{name} test suite.
|
|
|
|
|
2020-08-27 19:05:49 +02:00
|
|
|
%if %{with doxygen2man}
|
|
|
|
%package -n doxygen2man
|
|
|
|
Summary: tool to generate man pages from Doxygen XML files
|
2022-07-18 13:02:03 +02:00
|
|
|
Group: Development/Tools/Doc Generators
|
|
|
|
BuildRequires: pkgconfig
|
2020-08-27 19:05:49 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2022-07-18 13:02:03 +02:00
|
|
|
Requires: libqb100 = %{version}-%{release}
|
2020-08-27 19:05:49 +02:00
|
|
|
|
|
|
|
%files -n doxygen2man
|
|
|
|
%{_bindir}/doxygen2man
|
2022-07-18 13:02:03 +02:00
|
|
|
%{_mandir}/man1/doxygen2man.1%{?ext_man}
|
|
|
|
%license COPYING
|
2020-08-27 19:05:49 +02:00
|
|
|
|
|
|
|
%description -n doxygen2man
|
|
|
|
The doxygen2man package contains the doxygen2man utility.
|
|
|
|
%endif
|
|
|
|
|
2012-06-08 11:16:14 +02:00
|
|
|
%changelog
|