librabbitmq/librabbitmq.spec

128 lines
3.1 KiB
RPMSpec
Raw Normal View History

2012-08-01 13:10:50 +00:00
%global client_tag 2059570
%global codegen_tag db13342f2443
2012-03-12 15:19:34 +00:00
Name: librabbitmq
Summary: Client library and command line tools for AMPQ
2012-08-01 13:10:50 +00:00
Version: 0.2
Release: 0.2.git%{client_tag}%{?dist}
2012-08-01 13:10:50 +00:00
# client and amqp-rabbitmq-0.9.1.json are MIT
# codegen MPLv1.1 (but only used during build)
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
2012-08-01 13:10:50 +00:00
# https://nodeload.github.com/alanxz/rabbitmq-c/tarball/master
Source0: alanxz-rabbitmq-c-%{version}-69-g%{client_tag}.tar.gz
2012-03-12 15:19:34 +00:00
Source1: http://hg.rabbitmq.com/rabbitmq-codegen/archive/%{codegen_tag}.tar.bz2
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.
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}.
%prep
%setup -qc -a 1
2012-08-01 13:10:50 +00:00
mv alanxz-rabbitmq-c-%{client_tag} rabbitmq-c
mv rabbitmq-codegen-%{codegen_tag}/* rabbitmq-c/codegen
2012-03-12 15:19:34 +00:00
# Copy sources to be included in -devel docs.
cp -pr rabbitmq-c/examples examples
%build
cd rabbitmq-c
autoreconf -i
2012-08-01 13:10:50 +00:00
%configure --enable-tools --enable-docs
2012-03-12 15:19:34 +00:00
make %{_smp_mflags}
%install
rm -rf %{buildroot}
cd rabbitmq-c
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
cd rabbitmq-c
make check
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-,root,root,-)
2012-08-01 13:10:50 +00:00
%doc rabbitmq-c/{AUTHORS,README.md,THANKS,TODO,LICENSE*}
2012-03-12 15:19:34 +00:00
%{_libdir}/%{name}.so.*
%{_bindir}/amqp*
%{_mandir}/man1/amqp*
%{_mandir}/man7/%{name}*
%files devel
%defattr (-,root,root,-)
%doc examples
%{_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
%changelog
* 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
* 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