summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLoïc Pottier <48072795+lpottier@users.noreply.github.com>2023-01-16 19:02:42 -0800
committerGitHub <noreply@github.com>2023-01-16 19:02:42 -0800
commit0040236cc615d2b872223d680b632f29e9e1e1db (patch)
treea44494b772b603e1923261accc5ebbd20ff0024e /var
parent0629c8e5fabac429fd96f81344c88a19634cbf5b (diff)
downloadspack-0040236cc615d2b872223d680b632f29e9e1e1db.tar.gz
spack-0040236cc615d2b872223d680b632f29e9e1e1db.tar.bz2
spack-0040236cc615d2b872223d680b632f29e9e1e1db.tar.xz
spack-0040236cc615d2b872223d680b632f29e9e1e1db.zip
rabbitmq-c: added RabbitMQ C interface (#34892)
Co-authored-by: Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/rabbitmq-c/package.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rabbitmq-c/package.py b/var/spack/repos/builtin/packages/rabbitmq-c/package.py
new file mode 100644
index 0000000000..82b521a430
--- /dev/null
+++ b/var/spack/repos/builtin/packages/rabbitmq-c/package.py
@@ -0,0 +1,39 @@
+# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class RabbitmqC(CMakePackage):
+ """This is a C-language AMQP client library for use with v2.0+ of the
+ RabbitMQ broker."""
+
+ homepage = "https://github.com/alanxz/rabbitmq-c"
+ url = "https://github.com/alanxz/rabbitmq-c/archive/refs/tags/v0.11.0.tar.gz"
+ git = "https://github.com/alanxz/rabbitmq-c.git"
+
+ maintainers = ["lpottier"]
+
+ version("0.11.0", sha256="437d45e0e35c18cf3e59bcfe5dfe37566547eb121e69fca64b98f5d2c1c2d424")
+
+ variant("ssl", default=True, description="Required to connect to RabbitMQ using SSL/TLS")
+ variant("shared", default=True, description="Build shared library")
+ variant("static", default=True, description="Build static library")
+ variant("doc", default=False, description="Build the documentation")
+
+ depends_on("cmake@3.12:", type="build")
+ depends_on("openssl@1.1.1:", when="+ssl", type=("build", "link", "run"))
+ depends_on("doxygen", when="+doc", type="build")
+
+ def cmake_args(self):
+ args = [
+ self.define_from_variant("ENABLE_SSL_SUPPORT", "ssl"),
+ self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
+ self.define_from_variant("BUILD_STATIC_LIBS", "static"),
+ # Tests can only be built against static libraries
+ self.define_from_variant("BUILD_TESTS", "static"),
+ self.define_from_variant("BUILD_API_DOCS", "doc"),
+ ]
+ return args