2012-06-08 12:59:30 +02:00
|
|
|
#
|
|
|
|
# spec file for package libqb
|
|
|
|
#
|
2013-07-22 10:19:09 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
Name: libqb
|
2013-11-25 15:34:35 +01:00
|
|
|
Version: 0.16.0+git20131118.b09473f
|
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
|
2012-06-08 11:16:14 +02:00
|
|
|
License: LGPL-2.1+
|
2012-06-08 12:59:30 +02:00
|
|
|
Group: System/Libraries
|
2013-07-26 03:59:17 +02:00
|
|
|
Url: https://github.com/ClusterLabs/libqb
|
2013-11-15 16:39:14 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2013-11-16 14:20:10 +01:00
|
|
|
Patch1: libqb-configure-package-version.patch
|
2012-06-08 15:22:31 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
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
|
2012-11-20 05:54:44 +01:00
|
|
|
libqb is a library with the primary purpose of providing high performance
|
|
|
|
client server reusable features. It provides high performance logging,
|
|
|
|
tracing, ipc, and poll.
|
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
%package -n libqb0
|
|
|
|
Summary: An IPC library for high performance servers
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n libqb0
|
2012-11-20 05:54:44 +01:00
|
|
|
libqb is a library with the primary purpose of providing high performance
|
|
|
|
client server reusable features. It provides high performance logging,
|
|
|
|
tracing, ipc, and poll.
|
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
2012-11-20 05:54:44 +01:00
|
|
|
libqb is a library with the primary purpose of providing high performance
|
|
|
|
client server reusable features. It provides high performance logging,
|
|
|
|
tracing, ipc, and poll.
|
|
|
|
|
2012-06-08 11:16:14 +02:00
|
|
|
%prep
|
2013-11-15 16:39:14 +01:00
|
|
|
%setup -q -n %{name}-%{version}
|
2013-11-16 14:20:10 +01:00
|
|
|
%patch1 -p1
|
2012-06-08 11:16:14 +02:00
|
|
|
|
|
|
|
%build
|
2013-07-26 03:59:17 +02:00
|
|
|
./autogen.sh
|
2012-06-08 11:16:14 +02:00
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%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.
|
|
|
|
if [ -w /dev/shm -a -w /var/run ] ; then
|
2012-06-08 14:30:33 +02:00
|
|
|
make check
|
|
|
|
fi
|
2012-06-08 11:16:14 +02:00
|
|
|
|
|
|
|
%install
|
2012-06-08 12:25:24 +02:00
|
|
|
%make_install
|
2012-06-08 14:30:33 +02:00
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
2012-06-08 15:07:29 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc
|
2012-06-08 11:16:14 +02:00
|
|
|
|
|
|
|
%clean
|
2012-06-08 14:30:33 +02:00
|
|
|
rm -rf %{buildroot}
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
%post -n libqb0 -p /sbin/ldconfig
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
%postun -n libqb0 -p /sbin/ldconfig
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
%files -n libqb0
|
2012-06-08 11:16:14 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_sbindir}/qb-blackbox
|
|
|
|
%{_libdir}/libqb.so.*
|
2012-06-08 15:11:48 +02:00
|
|
|
%{_mandir}/man8/qb-blackbox.8.gz
|
2012-06-08 11:16:14 +02:00
|
|
|
|
2012-06-08 15:22:31 +02:00
|
|
|
%files devel
|
2012-06-08 11:16:14 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README.markdown
|
|
|
|
%{_includedir}/qb/
|
|
|
|
%{_libdir}/libqb.so
|
|
|
|
%{_libdir}/pkgconfig/libqb.pc
|
|
|
|
%{_mandir}/man3/qb*3*
|
|
|
|
|
|
|
|
%changelog
|