[packages/rabbitmq-c] fix build without static libs

atler atler at pld-linux.org
Mon Oct 5 00:46:24 CEST 2020


commit 1c54fe253c823ca72eb1caa86bcbdc2ee1c25c56
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Oct 5 00:45:16 2020 +0200

    fix build without static libs

 rabbitmq-c.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/rabbitmq-c.spec b/rabbitmq-c.spec
index 3a6ea90..1d39b7a 100644
--- a/rabbitmq-c.spec
+++ b/rabbitmq-c.spec
@@ -1,7 +1,12 @@
 #
 # Conditional build:
 %bcond_without	static_libs	# don't build static libraries
+%bcond_without	tests		# don't build tests
 #
+%if %{without static_libs}
+# tests require static libs
+%undefine	with_tests
+%endif
 Summary:	RabbitMQ C AMQP client library
 Summary(pl.UTF-8):	Biblioteka kliencka C RabbitMQ AMQP
 Name:		rabbitmq-c
@@ -74,6 +79,7 @@ install -d build
 cd build
 %cmake .. \
 	%{!?with_static_libs:-DBUILD_STATIC_LIBS=OFF} \
+	%{!?with_tests:-DBUILD_TESTS=OFF} \
 	-DBUILD_TOOLS_DOCS=ON \
 	-DCMAKE_INSTALL_INCLUDEDIR:PATH=include \
 	-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rabbitmq-c.git/commitdiff/1c54fe253c823ca72eb1caa86bcbdc2ee1c25c56



More information about the pld-cvs-commit mailing list