summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Pottier <48072795+lpottier@users.noreply.github.com>2023-01-25 13:05:32 -0800
committerGitHub <noreply@github.com>2023-01-25 13:05:32 -0800
commitb32a07bbe17a2308611c70728c2e87be44774fa2 (patch)
tree9fee895494181a4561516e2e88d039af4a0d687d
parent8709dbc232adbde6ddb0a038042f5cc46b0ba6c2 (diff)
downloadspack-b32a07bbe17a2308611c70728c2e87be44774fa2.tar.gz
spack-b32a07bbe17a2308611c70728c2e87be44774fa2.tar.bz2
spack-b32a07bbe17a2308611c70728c2e87be44774fa2.tar.xz
spack-b32a07bbe17a2308611c70728c2e87be44774fa2.zip
amqp-cpp: added RabbitMQ C++ API (#35156)
Signed-off-by: Loïc Pottier <pottier1@llnl.gov>
-rw-r--r--var/spack/repos/builtin/packages/amqp-cpp/package.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/amqp-cpp/package.py b/var/spack/repos/builtin/packages/amqp-cpp/package.py
new file mode 100644
index 0000000000..72f1608211
--- /dev/null
+++ b/var/spack/repos/builtin/packages/amqp-cpp/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 AmqpCpp(CMakePackage):
+ """AMQP-CPP is a C++ library for communicating with a RabbitMQ message
+ broker. The library can be used to parse incoming data from, and generate
+ frames to, a RabbitMQ server."""
+
+ homepage = "https://github.com/CopernicaMarketingSoftware/AMQP-CPP"
+ git = "https://github.com/CopernicaMarketingSoftware/AMQP-CPP.git"
+ url = "https://github.com/CopernicaMarketingSoftware/AMQP-CPP/archive/refs/tags/v4.3.19.tar.gz"
+
+ maintainers = ["lpottier"]
+
+ version("4.3.19", sha256="ca29bb349c498948576a4604bed5fd3c27d87240b271a4441ccf04ba3797b31d")
+
+ variant(
+ "tcp",
+ default=False,
+ description="Build TCP module. TCP module is supported for Linux only.",
+ )
+ variant("shared", default=True, description="Build as a shared library (static by default)")
+
+ conflicts("tcp", when="platform=darwin", msg="TCP module requires Linux")
+
+ depends_on("cmake@3.5:", type="build")
+ depends_on("openssl@1.1.1:", when="+tcp", type=("build", "link", "run"))
+
+ def cmake_args(self):
+ args = [
+ self.define_from_variant("AMQP-CPP_LINUX_TCP", "tcp"),
+ self.define_from_variant("AMQP-CPP_BUILD_SHARED", "shared"),
+ ]
+ return args