Name: librabbitmq Summary: Client library and command line tools for AMQP Version: 0.3.0 Release: 2%{?dist} License: MIT Group: System Environment/Libraries URL: https://github.com/alanxz/rabbitmq-c Source0: https://github.com/alanxz/rabbitmq-c/archive/rabbitmq-c-v%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libtool BuildRequires: python-simplejson # For tools %if 0%{?rhel} == 5 BuildRequires: popt %else BuildRequires: popt-devel %endif # For man page BuildRequires: xmlto %description This is a C-language AMQP client library for use with AMQP servers speaking protocol versions 0-9-1. %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}. %package tools Summary: Example tools built using the librabbitmq package Group: Development/Libraries Requires: %{name}%{?_isa} = %{version} %description tools This package contains example tools built using %{name}. It provides: 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 %prep %setup -q -n rabbitmq-c-rabbitmq-c-v%{version} # Copy sources to be included in -devel docs. cp -pr examples Examples %build autoreconf -i %configure --enable-tools --enable-docs make %{_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR="%{buildroot}" rm %{buildroot}%{_libdir}/%{name}.la %check make check %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr (-,root,root,-) %doc AUTHORS README.md THANKS TODO LICENSE-MIT %{_libdir}/%{name}.so.1* %files devel %defattr (-,root,root,-) %doc Examples %{_libdir}/%{name}.so %{_includedir}/amqp* %{_libdir}/pkgconfig/librabbitmq.pc %files tools %defattr(-,root,root) %{_bindir}/amqp-* %doc %{_mandir}/man1/amqp-*.1* %doc %{_mandir}/man7/librabbitmq-tools.7.gz %changelog * Wed Mar 13 2013 Remi Collet - 0.3.0-2 - remove tools from main package * Wed Mar 13 2013 Remi Collet - 0.3.0-1 - update to 0.3.0 - create sub-package for tools * Thu Feb 14 2013 Fedora Release Engineering - 0.2-0.2.git2059570 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Aug 01 2012 Remi Collet - 0.2-0.1.git2059570 - update to latest snapshot (version 0.2, moved to github) - License is now MIT * Thu Jul 19 2012 Fedora Release Engineering - 0.1-0.3.hgfb6fca832fd2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * 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