forked from pool/libqb
Rename spec to match package name
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=8
This commit is contained in:
98
libqb0.spec
Normal file
98
libqb0.spec
Normal file
@@ -0,0 +1,98 @@
|
||||
#
|
||||
# spec file for package libqb
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
Name: libqb0
|
||||
Version: 0.13.0
|
||||
Release: 0
|
||||
Summary: An IPC library for high performance servers
|
||||
License: LGPL-2.1+
|
||||
Group: System/Libraries
|
||||
Url: http://www.libqb.org
|
||||
Source0: libqb-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/libqb-%{version}-build
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: check-devel
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: libtool
|
||||
BuildRequires: procps
|
||||
BuildRequires: pkgconfig
|
||||
# Need git so build-aux/git-version-gen can extract the version number and
|
||||
# commit hash during autogen run
|
||||
BuildRequires: git
|
||||
|
||||
%description
|
||||
libqb provides high performance client server reusable features.
|
||||
Initially these are IPC and poll.
|
||||
|
||||
%prep
|
||||
%setup -q -n libqb-%{version}
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%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 check
|
||||
fi
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
rm -rf %{buildroot}%{_datadir}/doc
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%{_sbindir}/qb-blackbox
|
||||
%{_libdir}/libqb.so.*
|
||||
|
||||
%package -n libqb-devel
|
||||
Summary: Development files for libqb
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description -n libqb-devel
|
||||
The libqb-devel package contains libraries and header files for
|
||||
developing applications that use libqb.
|
||||
|
||||
%files -n libqb-devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING README.markdown
|
||||
%{_includedir}/qb/
|
||||
%{_libdir}/libqb.so
|
||||
%{_libdir}/pkgconfig/libqb.pc
|
||||
%{_mandir}/man3/qb*3*
|
||||
%{_mandir}/man8/qb-blackbox.8.gz
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user