]> git.pld-linux.org Git - packages/rabbitmq-c.git/commitdiff
fix build without static libs
authorJan Palus <atler@pld-linux.org>
Sun, 4 Oct 2020 22:45:16 +0000 (00:45 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 4 Oct 2020 22:45:16 +0000 (00:45 +0200)
rabbitmq-c.spec

index 3a6ea908c9e2365784d3d56ac8acd5f9b410fea6..1d39b7a89fc74de99431b061e8a4e31c824e0df2 100644 (file)
@@ -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}
This page took 0.037517 seconds and 4 git commands to generate.