summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/mysql-connector-c/package.py
blob: f79f95fdc39c06989d4d976031aee1de08e7e06f (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
# Copyright 2013-2023 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 MysqlConnectorC(CMakePackage):
    """MySQL Connector/C, the C interface for communicating with MySQL servers.

    Connector/C is a client library that implements the C API for client/server
    communication. It is a standalone replacement for the MySQL client library
    shipped with MySQL Server distributions."""

    homepage = "https://dev.mysql.com/downloads/connector/c/"
    url = "https://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.11-src.tar.gz"

    depends_on("cmake")

    patch("fix-cmake.patch", when="@6.1.11")

    license("GPL-2.0-or-later")

    version("6.1.11", sha256="c8664851487200162b38b6f3c8db69850bd4f0e4c5ff5a6d161dbfb5cb76b6c4")