From 29e2884d1c1f32a81d4c533aa7b672088b8acb9c757ac9bbd71356878aa46f9c Mon Sep 17 00:00:00 2001 From: Yan Gao Date: Fri, 15 Nov 2013 15:39:14 +0000 Subject: [PATCH] Accepting request 207059 from home:yan_gao:branches:network:ha-clustering:Factory Enable source service OBS-URL: https://build.opensuse.org/request/show/207059 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=37 --- _service | 9 +- ...m:libqb-0.16.0+git20131021.b4c36ef.tar.bz2 | 3 + _service:set_version:libqb.spec | 110 ++++++++++++++++++ libqb-0.16.0.21-b4c3.tar.xz | 3 - libqb.spec | 13 +-- 5 files changed, 121 insertions(+), 17 deletions(-) create mode 100644 _service:recompress:tar_scm:libqb-0.16.0+git20131021.b4c36ef.tar.bz2 create mode 100644 _service:set_version:libqb.spec delete mode 100644 libqb-0.16.0.21-b4c3.tar.xz diff --git a/_service b/_service index 318d7f6..4d69b68 100644 --- a/_service +++ b/_service @@ -1,23 +1,20 @@ - + git git://github.com/ClusterLabs/libqb.git yes - .git 0.16.0+git%cd.%h b4c36efff8b91f287da87590911a01184243cf64 - + *libqb*.tar bz2 - + diff --git a/_service:recompress:tar_scm:libqb-0.16.0+git20131021.b4c36ef.tar.bz2 b/_service:recompress:tar_scm:libqb-0.16.0+git20131021.b4c36ef.tar.bz2 new file mode 100644 index 0000000..dd8c2dd --- /dev/null +++ b/_service:recompress:tar_scm:libqb-0.16.0+git20131021.b4c36ef.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60a03ca616ae96ce16c618571657f4d7abae3aec2472378114520f6e4fe70430 +size 4956305 diff --git a/_service:set_version:libqb.spec b/_service:set_version:libqb.spec new file mode 100644 index 0000000..4527593 --- /dev/null +++ b/_service:set_version:libqb.spec @@ -0,0 +1,110 @@ +# +# spec file for package libqb +# +# Copyright (c) 2013 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: libqb +Version: 0.16.0+git20131021.b4c36ef +Release: 0 +Summary: An IPC library for high performance servers +License: LGPL-2.1+ +Group: System/Libraries +Url: https://github.com/ClusterLabs/libqb +Source0: %{name}-%{version}.tar.bz2 +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 +BuildRequires: git + +%description +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. + +%package -n libqb0 +Summary: An IPC library for high performance servers +Group: System/Libraries +Provides: %{name} = %{version} + +%description -n libqb0 +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. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +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. + +%prep +%setup -q -n %{name}-%{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 -n libqb0 -p /sbin/ldconfig + +%postun -n libqb0 -p /sbin/ldconfig + +%files -n libqb0 +%defattr(-,root,root,-) +%doc COPYING +%{_sbindir}/qb-blackbox +%{_libdir}/libqb.so.* +%{_mandir}/man8/qb-blackbox.8.gz + +%files devel +%defattr(-,root,root,-) +%doc COPYING README.markdown +%{_includedir}/qb/ +%{_libdir}/libqb.so +%{_libdir}/pkgconfig/libqb.pc +%{_mandir}/man3/qb*3* + +%changelog diff --git a/libqb-0.16.0.21-b4c3.tar.xz b/libqb-0.16.0.21-b4c3.tar.xz deleted file mode 100644 index 0481b40..0000000 --- a/libqb-0.16.0.21-b4c3.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b519cba2b0795cbfda410a52891a363bc4048e83ee30b8b9da907be6c43efbfc -size 367980 diff --git a/libqb.spec b/libqb.spec index 886001d..4527593 100644 --- a/libqb.spec +++ b/libqb.spec @@ -16,16 +16,14 @@ # -%define tarball_version 0.16.0.21-b4c3 - Name: libqb -Version: 0.16.0.21.b4c3 +Version: 0.16.0+git20131021.b4c36ef Release: 0 Summary: An IPC library for high performance servers License: LGPL-2.1+ Group: System/Libraries Url: https://github.com/ClusterLabs/libqb -Source0: %{name}-%{tarball_version}.tar.xz +Source0: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf @@ -36,9 +34,8 @@ 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 -BuildRequires: xz +# commit hash during autogen run +BuildRequires: git %description libqb is a library with the primary purpose of providing high performance @@ -67,7 +64,7 @@ client server reusable features. It provides high performance logging, tracing, ipc, and poll. %prep -%setup -q -n %{name}-%{tarball_version} +%setup -q -n %{name}-%{version} %build ./autogen.sh