summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/hadoop-xrootd/package.py
blob: 439301c38ecf87c72559aba213a759b570c7ee46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 2013-2024 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 HadoopXrootd(MavenPackage):
    """Connector between Hadoop and XRootD protocols (EOS compatible)."""

    homepage = "https://gitlab.cern.ch/db/hadoop-xrootd"
    url = "https://lcgpackages.web.cern.ch/tarFiles/sources/hadoop-xrootd-v1.0.7.tar.gz"

    maintainers("haralmha")

    license("Apache-2.0")

    version("1.0.7", sha256="9a129dc14b3dc139aa4da7543f6392a5c80b41fea6bb9f6cd27db5acf6f5471f")

    depends_on("hadoop")
    depends_on("xrootd")
    conflicts("%clang")

    def build_args(self):
        xrootd_prefix = self.spec["xrootd"].prefix
        return ["-Dxrootd.include.path={0}/include/xrootd".format(xrootd_prefix)]