summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-07 07:50:47 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-07 07:50:47 +0100
commite7641fc0e58a75472bb15863388a82128d474a60 (patch)
treec2186decd98e9e25936b176123a8de7da9d6101c
parent58ae1942d91c4449a297f8744f484482bd0bc2cc (diff)
add check for usable librabbitmq.pc
-rw-r--r--librabbitmq.spec13
1 files changed, 10 insertions, 3 deletions
diff --git a/librabbitmq.spec b/librabbitmq.spec
index 68dfe88..26829b0 100644
--- a/librabbitmq.spec
+++ b/librabbitmq.spec
@@ -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
@@ -65,6 +65,7 @@ amqp-publish Publish a message on an AMQP server
%prep
%setup -q -n rabbitmq-c-%{version}
+
%if 0%{?rhel} != 5
%patch0 -p1
%endif
@@ -99,6 +100,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
@@ -125,7 +130,6 @@ rm -rf %{buildroot}
%{_includedir}/amqp*
%{_libdir}/pkgconfig/librabbitmq.pc
-
%files tools
%defattr (-,root,root,-)
%{_bindir}/amqp-*
@@ -134,8 +138,11 @@ rm -rf %{buildroot}
%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