[librabbitmq] upstream patch for missing function

Remi Collet remi at fedoraproject.org
Tue Apr 15 05:31:37 UTC 2014


commit c5c1bf5fd4273e498d14a14767b8d25b85f7f4a6
Author: Remi Collet <remi at fedoraproject.org>
Date:   Tue Apr 15 07:31:20 2014 +0200

    upstream patch for missing function

 librabbitmq-170.patch |   26 ++++++++++++++++++++++++++
 librabbitmq.spec      |    8 +++++++-
 2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/librabbitmq-170.patch b/librabbitmq-170.patch
new file mode 100644
index 0000000..c037203
--- /dev/null
+++ b/librabbitmq-170.patch
@@ -0,0 +1,26 @@
+From b852f846c46a3bb9451f99844edfbea41f3289f1 Mon Sep 17 00:00:00 2001
+From: Alan Antonuk <alan.antonuk at gmail.com>
+Date: Mon, 17 Feb 2014 19:28:56 -0800
+Subject: [PATCH] Add missing amqp_get_server_properties() function.
+
+Fixes #170
+---
+ librabbitmq/amqp_connection.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/librabbitmq/amqp_connection.c b/librabbitmq/amqp_connection.c
+index d3491fb..5d70b07 100644
+--- a/librabbitmq/amqp_connection.c
++++ b/librabbitmq/amqp_connection.c
+@@ -519,3 +519,8 @@ int amqp_send_frame(amqp_connection_state_t state,
+ 
+   return res;
+ }
++amqp_table_t *
++amqp_get_server_properties(amqp_connection_state_t state)
++{
++  return &state->server_properties;
++}
+-- 
+1.9.1
+
diff --git a/librabbitmq.spec b/librabbitmq.spec
index f7248e2..d9e5019 100644
--- a/librabbitmq.spec
+++ b/librabbitmq.spec
@@ -10,7 +10,7 @@
 Name:      librabbitmq
 Summary:   Client library for AMQP
 Version:   0.5.0
-Release:   1%{?dist}
+Release:   2%{?dist}
 License:   MIT
 Group:     System Environment/Libraries
 URL:       https://github.com/alanxz/rabbitmq-c
@@ -19,6 +19,8 @@ Source0:   https://github.com/alanxz/rabbitmq-c/releases/download/v%{version}/ra
 
 # for revert, switch from 0.5.0 to 0.5.1-pre
 Patch0:    %{name}-ver.patch
+# Missing function
+Patch1:    %{name}-170.patch
 
 BuildRequires: libtool
 BuildRequires: openssl-devel
@@ -63,6 +65,7 @@ amqp-publish        Publish a message on an AMQP server
 %setup -q -n rabbitmq-c-%{version}
 
 %patch0 -p1 -R
+%patch1 -p1
 
 # Copy sources to be included in -devel docs.
 cp -pr examples Examples
@@ -120,6 +123,9 @@ make check
 
 
 %changelog
+* Tue Apr 15 2014 Remi Collet <remi at fedoraproject.org> - 0.5.0-2
+- upstream patch for missing function
+
 * Mon Feb 17 2014 Remi Collet <remi at fedoraproject.org> - 0.5.0-1
 - update to 0.5.0
 - open https://github.com/alanxz/rabbitmq-c/issues/169 (version is 0.5.1-pre)


More information about the scm-commits mailing list