Really fix broken librabbitmq.pc, #1039555 + add check for usable librabbitmq.pc

This commit is contained in:
Remi Collet 2014-01-07 07:51:30 +01:00
parent 16aa3e7c12
commit 3b0b53d1bd

View File

@ -10,7 +10,7 @@
Name: librabbitmq
Summary: Client library for AMQP
Version: 0.4.1
Release: 2%{?dist}
Release: 3%{?dist}
License: MIT
Group: System Environment/Libraries
URL: https://github.com/alanxz/rabbitmq-c
@ -61,6 +61,8 @@ amqp-publish Publish a message on an AMQP server
%prep
%setup -q -n rabbitmq-c-%{version}
%patch0 -p1
# Copy sources to be included in -devel docs.
cp -pr examples Examples
@ -86,6 +88,10 @@ rm %{buildroot}%{_libdir}/%{name}.la
%check
: check .pc is usable
grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1
: upstream tests
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
make check
@ -113,8 +119,11 @@ make check
%changelog
* Thu Jan 2 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-2
* Tue Jan 7 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-3
- fix broken librabbitmq.pc, #1039555
- add check for usable librabbitmq.pc
* Thu Jan 2 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-2
- fix Source0 URL
* Sat Sep 28 2013 Remi Collet <remi@fedoraproject.org> - 0.4.1-1