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