upstream patch for missing function

This commit is contained in:
Remi Collet 2014-04-15 07:31:20 +02:00
parent 2be768594d
commit c5c1bf5fd4
2 changed files with 33 additions and 1 deletions

26
librabbitmq-170.patch Normal file
View File

@ -0,0 +1,26 @@
From b852f846c46a3bb9451f99844edfbea41f3289f1 Mon Sep 17 00:00:00 2001
From: Alan Antonuk <alan.antonuk@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

View File

@ -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@fedoraproject.org> - 0.5.0-2
- upstream patch for missing function
* Mon Feb 17 2014 Remi Collet <remi@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)