diff options
author | Wouter Deconinck <wdconinc@gmail.com> | 2024-09-30 03:47:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 10:47:53 +0200 |
commit | 6ea8079919e229fd84833fa0a3064bedcc0e34ba (patch) | |
tree | fde429814b12cdd83c9a12b2ae9f6220f4f44a20 /var | |
parent | d48cf4ea3e8a7f93e3db7f558ec7ec38ed94c932 (diff) | |
download | spack-6ea8079919e229fd84833fa0a3064bedcc0e34ba.tar.gz spack-6ea8079919e229fd84833fa0a3064bedcc0e34ba.tar.bz2 spack-6ea8079919e229fd84833fa0a3064bedcc0e34ba.tar.xz spack-6ea8079919e229fd84833fa0a3064bedcc0e34ba.zip |
cups: fix url; add v2.4.10 (#46624)
Co-authored-by: wdconinc <wdconinc@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cups/package.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/cups/package.py b/var/spack/repos/builtin/packages/cups/package.py index 22ce987f83..b2c5b84ecf 100644 --- a/var/spack/repos/builtin/packages/cups/package.py +++ b/var/spack/repos/builtin/packages/cups/package.py @@ -14,18 +14,25 @@ class Cups(AutotoolsPackage): install.""" homepage = "https://www.cups.org/" - url = "https://github.com/apple/cups/releases/download/v2.2.3/cups-2.2.3-source.tar.gz" + url = ( + "https://github.com/OpenPrinting/cups/releases/download/v2.4.10/cups-2.4.10-source.tar.gz" + ) - license("Apache-2.0") + license("Apache-2.0", checked_by="wdconinc") + version("2.4.10", sha256="d75757c2bc0f7a28b02ee4d52ca9e4b1aa1ba2affe16b985854f5336940e5ad7") version("2.3.3", sha256="261fd948bce8647b6d5cb2a1784f0c24cc52b5c4e827b71d726020bcc502f3ee") version("2.2.3", sha256="66701fe15838f2c892052c913bde1ba106bbee2e0a953c955a62ecacce76885f") - depends_on("c", type="build") # generated - depends_on("cxx", type="build") # generated + depends_on("c", type="build") + depends_on("cxx", type="build") + depends_on("pkgconfig", type="build") depends_on("gnutls") - depends_on("pkgconfig", type="build") + + def url_for_version(self, version): + org = "apple" if version < Version("2.4") else "OpenPrinting" + return f"https://github.com/{org}/cups/releases/download/v{version}/cups-{version}-source.tar.gz" def configure_args(self): args = ["--enable-gnutls", "--with-components=core"] |