Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 6376b63a13
Fetching contributors…

Cannot retrieve contributors at this time

116 lines (79 sloc) 2.558 kB
%global client_tag fb6fca832fd2
%global codegen_tag 6fb87d6eb01b
Name: librabbitmq
Summary: Client library and command line tools for AMPQ
Version: 0.1
Release: 0.2.hg%{client_tag}%{?dist}
License: MPLv1.1 or GPLv2+
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool
BuildRequires: python-simplejson
# For tools
%if 0%{?rhel} == 5
BuildRequires: popt
BuildRequires: popt-devel
# For man page
BuildRequires: xmlto
This is a C-language AMQP client library for use with AMQP servers
speaking protocol versions 0-9-1.
It also provides several command line tools:
amqp-consume Consume messages from a queue on an AMQP server
amqp-declare-queue Declare a queue on an AMQP server
amqp-delete-queue Delete a queue from an AMQP server
amqp-get Get a message from a queue on an AMQP server
amqp-publish Publish a message on an AMQP server
%package devel
Summary: Header files and development libraries for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains the header files and development libraries
for %{name}.
%setup -qc -a 1
mv rabbitmq-c-%{client_tag} rabbitmq-c
mv rabbitmq-codegen-%{codegen_tag} rabbitmq-codegen
ln rabbitmq-codegen/amqp-rabbitmq-0.9.1.json rabbitmq-codegen/amqp-0.9.1.json
# Copy sources to be included in -devel docs.
cp -pr rabbitmq-c/examples examples
cd rabbitmq-c
autoreconf -i
make %{_smp_mflags}
rm -rf %{buildroot}
cd rabbitmq-c
make install DESTDIR="%{buildroot}"
rm %{buildroot}%{_libdir}/%{name}.{a,la}
cd rabbitmq-c
make check
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%defattr (-,root,root,-)
%files devel
%defattr (-,root,root,-)
%doc examples
* Sun Mar 11 2012 Remi Collet <> - 0.1-0.2.hgfb6fca832fd2
- add %%check (per review comment)
* Sat Mar 10 2012 Remi Collet <> - 0.1-0.1.hgfb6fca832fd2
- Initial RPM
Jump to Line
Something went wrong with that request. Please try again.