summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/redis/package.py34
1 files changed, 33 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/redis/package.py b/var/spack/repos/builtin/packages/redis/package.py
index 07240f6824..66bb725b73 100644
--- a/var/spack/repos/builtin/packages/redis/package.py
+++ b/var/spack/repos/builtin/packages/redis/package.py
@@ -18,8 +18,22 @@ class Redis(MakefilePackage):
"""
homepage = "https://redis.io"
- url = "https://download.redis.io/releases/redis-6.2.5.tar.gz"
+ urls = [
+ "https://download.redis.io/releases/redis-7.0.5.tar.gz",
+ "https://github.com/redis/redis/archive/refs/tags/7.0.5.tar.gz",
+ ]
+ git = "https://github.com/redis/redis.git"
+ maintainers = ["lpottier"]
+
+ version("7.0.5", sha256="67054cc37b58c125df93bd78000261ec0ef4436a26b40f38262c780e56315cc3")
+ version("7.0.4", sha256="f0e65fda74c44a3dd4fa9d512d4d4d833dd0939c934e946a5c622a630d057f2f")
+ version("7.0.3", sha256="2cde7d17214ffe305953da9fff12333e8a72caa57fd4923e4872f6362a208e73")
+ version("7.0.2", sha256="5e57eafe7d4ac5ecb6a7d64d6b61db775616dbf903293b3fcc660716dbda5eeb")
+ version("7.0.1", sha256="ca1820d527e4759884620be2917079e61e996fa81da5fbe5c07c4a7b507264dc")
+ version("7.0.0", sha256="284d8bd1fd85d6a55a05ee4e7c31c31977ad56cbf344ed83790beeb148baa720")
+ version("6.2.7", sha256="b7a79cc3b46d3c6eb52fa37dde34a4a60824079ebdfb3abfbbfa035947c55319")
+ version("6.2.6", sha256="5b2b8b7a50111ef395bf1c1d5be11e6e167ac018125055daa8b5c2317ae131ab")
version("6.2.5", sha256="4b9a75709a1b74b3785e20a6c158cab94cf52298aa381eea947a678a60d551ae")
version("6.2.4", sha256="ba32c406a10fc2c09426e2be2787d74ff204eb3a2e496d87cff76a476b6ae16e")
version("6.2.3", sha256="98ed7d532b5e9671f5df0825bb71f0f37483a16546364049384c63db8764512b")
@@ -36,6 +50,24 @@ class Redis(MakefilePackage):
version("4.0.12", sha256="6447259d2eed426a949c9c13f8fdb2d91fb66d9dc915dd50db13b87f46d93162")
version("4.0.11", sha256="fc53e73ae7586bcdacb4b63875d1ff04f68c5474c1ddeda78f00e5ae2eed1bbb")
+ variant("tls", default=False, when="@6:", description="Builds with TLS support")
+ depends_on("openssl@1.1:", type=("build", "link"), when="+tls")
+
+ variant(
+ "systemd",
+ default=False,
+ description="Builds with systemd support (systemd development libraries required)",
+ )
+
+ @property
+ def build_targets(self):
+ use_tls = "yes" if "+tls" in self.spec else "no"
+ use_systemd = "yes" if "+systemd" in self.spec else "no"
+ return [
+ "BUILD_TLS={0}".format(use_tls),
+ "USE_SYSTEMD={0}".format(use_systemd),
+ ]
+
@property
def install_targets(self):
return ["PREFIX={0}".format(self.spec.prefix), "install"]