2013-09-28 07:33:11 +00:00
|
|
|
# spec file for librabbitmq
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012-2013 Remi Collet
|
|
|
|
# License: CC-BY-SA
|
|
|
|
# http://creativecommons.org/licenses/by-sa/3.0/
|
|
|
|
#
|
|
|
|
# Please, preserve the changelog entries
|
|
|
|
#
|
|
|
|
|
2012-03-12 15:19:34 +00:00
|
|
|
Name: librabbitmq
|
2013-08-01 13:25:48 +00:00
|
|
|
Summary: Client library for AMQP
|
2013-09-28 07:33:11 +00:00
|
|
|
Version: 0.4.1
|
|
|
|
Release: 1%{?dist}
|
2012-08-01 13:10:50 +00:00
|
|
|
License: MIT
|
2012-03-12 15:19:34 +00:00
|
|
|
Group: System Environment/Libraries
|
2012-08-01 13:10:50 +00:00
|
|
|
URL: https://github.com/alanxz/rabbitmq-c
|
2012-03-12 15:19:34 +00:00
|
|
|
|
2013-09-28 07:33:11 +00:00
|
|
|
Source0: https://github.com/alanxz/rabbitmq-c/archive/rabbitmq-c-%{version}.tar.gz
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: python-simplejson
|
2013-09-28 07:33:11 +00:00
|
|
|
BuildRequires: openssl-devel
|
2012-03-12 15:19:34 +00:00
|
|
|
# For tools
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
# 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
|
2013-03-13 08:34:56 +00:00
|
|
|
for %{name}.
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
2013-03-13 08:34:56 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Example tools built using the librabbitmq package
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}
|
2012-03-12 15:19:34 +00:00
|
|
|
|
2013-03-13 08:34:56 +00:00
|
|
|
%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
|
2013-09-28 07:33:11 +00:00
|
|
|
%setup -q -n rabbitmq-c-%{version}
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
# Copy sources to be included in -devel docs.
|
2013-03-13 08:34:56 +00:00
|
|
|
cp -pr examples Examples
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -i
|
2013-09-28 07:33:11 +00:00
|
|
|
%configure \
|
|
|
|
--enable-tools \
|
|
|
|
--enable-docs \
|
|
|
|
--with-ssl=openssl
|
|
|
|
|
|
|
|
# rpath removal
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
2012-03-12 15:19:34 +00:00
|
|
|
make %{_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR="%{buildroot}"
|
|
|
|
|
2012-08-01 13:10:50 +00:00
|
|
|
rm %{buildroot}%{_libdir}/%{name}.la
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2013-09-28 07:33:11 +00:00
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
2012-03-12 15:19:34 +00:00
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2013-03-13 08:34:56 +00:00
|
|
|
%doc AUTHORS README.md THANKS TODO LICENSE-MIT
|
|
|
|
%{_libdir}/%{name}.so.1*
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
2013-03-13 08:34:56 +00:00
|
|
|
%doc Examples
|
2012-03-12 15:19:34 +00:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_includedir}/amqp*
|
2012-08-01 13:10:50 +00:00
|
|
|
%{_libdir}/pkgconfig/librabbitmq.pc
|
2012-03-12 15:19:34 +00:00
|
|
|
|
2013-03-13 08:34:56 +00:00
|
|
|
%files tools
|
|
|
|
%{_bindir}/amqp-*
|
|
|
|
%doc %{_mandir}/man1/amqp-*.1*
|
|
|
|
%doc %{_mandir}/man7/librabbitmq-tools.7.gz
|
|
|
|
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-09-28 07:33:11 +00:00
|
|
|
* Sat Sep 28 2013 Remi Collet <remi@fedoraproject.org> - 0.4.1-1
|
|
|
|
- update to 0.4.1
|
|
|
|
- add ssl support
|
|
|
|
|
2013-08-01 13:25:48 +00:00
|
|
|
* Thu Aug 1 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-3
|
|
|
|
- cleanups
|
|
|
|
|
2013-03-13 09:05:09 +00:00
|
|
|
* Wed Mar 13 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-2
|
|
|
|
- remove tools from main package
|
|
|
|
|
2013-03-13 08:34:56 +00:00
|
|
|
* Wed Mar 13 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-1
|
|
|
|
- update to 0.3.0
|
|
|
|
- create sub-package for tools
|
|
|
|
|
2013-02-14 05:09:12 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-0.2.git2059570
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-01 13:10:50 +00:00
|
|
|
* Wed Aug 01 2012 Remi Collet <remi@fedoraproject.org> - 0.2-0.1.git2059570
|
|
|
|
- update to latest snapshot (version 0.2, moved to github)
|
|
|
|
- License is now MIT
|
|
|
|
|
2012-07-19 21:00:21 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-0.3.hgfb6fca832fd2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-03-12 15:19:34 +00:00
|
|
|
* Sun Mar 11 2012 Remi Collet <remi@fedoraproject.org> - 0.1-0.2.hgfb6fca832fd2
|
|
|
|
- add %%check (per review comment)
|
|
|
|
|
|
|
|
* Sat Mar 10 2012 Remi Collet <remi@fedoraproject.org> - 0.1-0.1.hgfb6fca832fd2
|
|
|
|
- Initial RPM
|
|
|
|
|