[librabbitmq] Really fix broken librabbitmq.pc, #1039555 + add check for usable librabbitmq.pc
Remi Collet
remi at fedoraproject.org
Tue Jan 7 06:51:32 UTC 2014
commit 3b0b53d1bd1c85dde03cc7db462ae5a494d47b43
Author: Remi Collet <remi at fedoraproject.org>
Date: Tue Jan 7 07:51:30 2014 +0100
Really fix broken librabbitmq.pc, #1039555 + add check for usable librabbitmq.pc
librabbitmq.spec | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/librabbitmq.spec b/librabbitmq.spec
index 2d2436a..082f29c 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
@@ -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
@@ -93,7 +99,7 @@ make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-
+
%files
%doc AUTHORS README.md THANKS TODO LICENSE-MIT
@@ -113,8 +119,11 @@ make check
%changelog
-* Thu Jan 2 2014 Remi Collet <remi at fedoraproject.org> - 0.4.1-2
+* Tue Jan 7 2014 Remi Collet <remi at fedoraproject.org> - 0.4.1-3
- fix broken librabbitmq.pc, #1039555
+- add check for usable librabbitmq.pc
+
+* Thu Jan 2 2014 Remi Collet <remi at fedoraproject.org> - 0.4.1-2
- fix Source0 URL
* Sat Sep 28 2013 Remi Collet <remi at fedoraproject.org> - 0.4.1-1
More information about the scm-commits
mailing list