Accepting request 209171 from network:ha-clustering:Factory

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/209171
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqb?expand=0&rev=6
This commit is contained in:
Stephan Kulow 2013-12-03 13:26:16 +00:00 committed by Git OBS Bridge
commit ffe4c217eb
6 changed files with 51 additions and 8 deletions

View File

@ -3,12 +3,15 @@
<param name="scm">git</param>
<param name="url">git://github.com/ClusterLabs/libqb.git</param>
<param name="package-meta">yes</param>
<param name="exclude">.git</param>
<!--
To update to a new release, change "revision" to the desired
git commit hash and bump "version" if necessary
-->
<param name="version">0.16.0</param>
<param name="revision">b4c36efff8b91f287da87590911a01184243cf64</param>
-->
<param name="versionformat">0.16.0+git%cd.%h</param>
<param name="revision">b09473fd4a03b4434efd44408f7ae631a855f9cd</param>
</service>
<service name="recompress" mode="disabled">

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d71f4871e916fbd443bc15d508460ab050c615522cf3bf87f52af0a71f47dec
size 127311

View File

@ -0,0 +1,24 @@
diff --git a/configure.ac b/configure.ac
index a4dc7c0..e0a5c92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,19 @@ AC_CANONICAL_HOST
AC_PROG_LIBTOOL
AC_LANG([C])
+
+if test $PACKAGE_VERSION = "UNKNOWN"; then
+ # The current directory name make a reasonable default
+ # Most generated archives will include the hash or tag
+ BASE=`basename $PWD`
+ PACKAGE_VERSION=`echo $BASE | sed s:.*[[Ll]]ibqb-::`
+ AC_MSG_RESULT(directory based hash: $PACKAGE_VERSION)
+
+ AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
+ AC_DEFINE_UNQUOTED(PACKAGE_VERSION, "$PACKAGE_VERSION", Current libqb version)
+ AC_SUBST(PACKAGE_VERSION)
+fi
+
dnl Fix default variables - "prefix" variable if not specified
if test "$prefix" = "NONE"; then
prefix="/usr"

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Nov 25 14:30:05 UTC 2013 - ygao@suse.com
- New api function to retrieve client buffer size
- Enforce buffer size limits on the server side
- Filter logs using regex patter on function, format, or filename
- Upstream version cs: b09473fd4a03b4434efd44408f7ae631a855f9cd
-------------------------------------------------------------------
Sat Nov 16 13:00:12 UTC 2013 - ygao@suse.com
- Add libqb-configure-package-version.patch
* Build: Generate PACKAGE_VERSION according to the basename of the top directory
-------------------------------------------------------------------
Wed Oct 23 15:16:01 UTC 2013 - ygao@suse.com

View File

@ -17,13 +17,14 @@
Name: libqb
Version: 0.16.0.21
Version: 0.16.0+git20131118.b09473f
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}.tar.bz2
Source0: %{name}-%{version}.tar.bz2
Patch1: libqb-configure-package-version.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
@ -64,7 +65,8 @@ client server reusable features. It provides high performance logging,
tracing, ipc, and poll.
%prep
%setup -q -n %{name}
%setup -q -n %{name}-%{version}
%patch1 -p1
%build
./autogen.sh

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:51e5538de3243096db49a6f310bc841ccfc8893a22b29b5923e3c566b2ee12ba
size 473261