summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Green <greenc@fnal.gov>2019-03-15 14:12:30 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2019-03-15 14:12:30 -0500
commit6de6d5396c72b38fb12cfed11f1143a95ee559d9 (patch)
tree90212ef8a0d6d9fb0497a6537411e70edea6da33
parent82e33800492d58ce11708ad9caa4be8ce94e59a7 (diff)
downloadspack-6de6d5396c72b38fb12cfed11f1143a95ee559d9.tar.gz
spack-6de6d5396c72b38fb12cfed11f1143a95ee559d9.tar.bz2
spack-6de6d5396c72b38fb12cfed11f1143a95ee559d9.tar.xz
spack-6de6d5396c72b38fb12cfed11f1143a95ee559d9.zip
New package: mariadb-c-client (#7729)
* mariadb-c-client is a new package using the distinct, LGPL, MySQL-compatible client library from mariadb.com. It provides the virtual package mariadb-client * mariadb is recorded as a provider of the mariadb-client virtual * The mysql-client virtual package is also added, and mariadb-c-client is recorded as a provider for it
-rw-r--r--etc/spack/defaults/packages.yaml2
-rw-r--r--var/spack/repos/builtin/packages/mariadb-c-client/package.py62
-rw-r--r--var/spack/repos/builtin/packages/mariadb/package.py2
3 files changed, 66 insertions, 0 deletions
diff --git a/etc/spack/defaults/packages.yaml b/etc/spack/defaults/packages.yaml
index 51278cfc38..b72c83ec40 100644
--- a/etc/spack/defaults/packages.yaml
+++ b/etc/spack/defaults/packages.yaml
@@ -30,9 +30,11 @@ packages:
java: [jdk, openjdk, ibm-java]
jpeg: [libjpeg-turbo, libjpeg]
lapack: [openblas]
+ mariadb-client: [mariadb-c-client, mariadb]
mkl: [intel-mkl]
mpe: [mpe2]
mpi: [openmpi, mpich]
+ mysql-client: [mariadb-c-client]
opencl: [pocl]
openfoam: [openfoam-com, openfoam-org, foam-extend]
pil: [py-pillow]
diff --git a/var/spack/repos/builtin/packages/mariadb-c-client/package.py b/var/spack/repos/builtin/packages/mariadb-c-client/package.py
new file mode 100644
index 0000000000..e64a34303a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mariadb-c-client/package.py
@@ -0,0 +1,62 @@
+# Copyright 2013-2019 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 import *
+
+
+class MariadbCClient(CMakePackage):
+ """MariaDB turns data into structured information in a wide array of
+ applications, ranging from banking to websites. It is an enhanced,
+ drop-in replacement for MySQL. MariaDB is used because it is fast,
+ scalable and robust, with a rich ecosystem of storage engines,
+ plugins and many other tools make it very versatile for a wide
+ variety of use cases. This package comprises only the standalone 'C
+ Connector', which enables connections to MariaDB and MySQL servers.
+ """
+
+ homepage = "http://mariadb.org/about/"
+
+ url = "https://downloads.mariadb.com/Connectors/c/connector-c-3.0.3/mariadb-connector-c-3.0.3-src.tar.gz"
+ list_url = "https://downloads.mariadb.com/Connectors/c/"
+ list_depth = 1
+
+ version('3.0.9', sha256='7277c0caba6f50b1d07e1d682baf0b962a63e2e6af9e00e09b8dcf36a7858641')
+ version('3.0.8', sha256='2ca368fd79e87e80497a5c9fd18922d8316af8584d87cecb35bd5897cb1efd05')
+ version('3.0.7', sha256='f63883c9360675d111646fba5c97feb0d08e0def5873dd189d78bafbb75fa004')
+ version('3.0.6', sha256='2b2d18dc969dc385f7f740e4db112300e11bc626c9ba9aa05c284704095b9e48')
+ version('3.0.5', sha256='940017f13a13846153eb9d36290824c4615c8a8be4142b6bbaeb698609f02667')
+ version('3.0.4', sha256='6eff680cd429fdb32940f6ea4755a997dda1bb00f142f439071f752fd0b200cf')
+ version('3.0.3', sha256='210f0ee3414b235d3db8e98e9e5a0a98381ecf771e67ca4a688036368984eeea')
+ version('3.0.2', sha256='518d14b8d77838370767d73f9bf1674f46232e1a2a34d4195bd38f52a3033758')
+ version('2.3.7', sha256='94f9582da738809ae1d9f1813185165ec7c8caf9195bdd04e511f6bdcb883f8e')
+ version('2.3.6', sha256='6b271d25dddda15f1c2328eee64f646a2e8b116ea21b04ece24b5a70712c3e96')
+ version('2.3.5', sha256='2f3bf4c326d74284debf7099f30cf3615f7978d1ec22b8c1083676688a76746f')
+ version('2.3.4', sha256='8beb0513da8a24ed2cb47836564c8b57045c3b36f933362f74b3676567c13abc')
+ version('2.3.3', sha256='82a5710134e7654b9cad58964d6a25ed91b3dc1804ff51e8be2def0032914089')
+ version('2.3.2', sha256='4063c8655dc37608d4eade981e25b76f67f5d36e8426dc7f20d59e48ebba628a')
+ version('2.3.1', sha256='6ab7e1477ae1484939675a3b499f98148980a0bd340d15d22df00a5c6656c633')
+ version('2.3.0', sha256='37faae901ca77bd48d2c6286f2e19e8c1abe7cac6fb1b128bd556617f4335c8a')
+ version('2.2.3', sha256='cd01ce2c418382f90fd0b21c3c756b89643880efe3447507bf740569b9d08eed')
+ version('2.2.2', sha256='93f56ad9f08bbaf0da8ef03bc96f7093c426ae40dede60575d485e1b99e6406b')
+ version('2.2.1', sha256='c30ba19be03a6ac8688ef7620aed0eabdf34ca9ee886c017c56b013b5f8ee06a')
+ version('2.2.0', sha256='3825b068d38bc19d6ad1eaecdd74bcd49d6ddd9d00559fb150e4e851a55bbbd4')
+ version('2.1.0', sha256='568050b89463af7610d458669fd9eee06dcc9405689aca8a526ac8c013b59167')
+
+ provides('mariadb-client')
+ provides('mysql-client')
+
+ depends_on('cmake@2.6:', type='build')
+ depends_on('curl')
+ depends_on('pcre')
+ depends_on('openssl')
+ depends_on('zlib')
+
+ def url_for_version(self, version):
+ url = "https://downloads.mariadb.com/Connectors/c/connector-c-{0}/mariadb-connector-c-{1}-src.tar.gz"
+ return url.format(version.up_to(3), version)
+
+ def cmake_args(self):
+ args = ['-DWITH_EXTERNAL_ZLIB=ON', '-DWITH_MYSQLCOMPAT=ON']
+ return args
diff --git a/var/spack/repos/builtin/packages/mariadb/package.py b/var/spack/repos/builtin/packages/mariadb/package.py
index d7ffcd482c..54489486a5 100644
--- a/var/spack/repos/builtin/packages/mariadb/package.py
+++ b/var/spack/repos/builtin/packages/mariadb/package.py
@@ -25,6 +25,8 @@ class Mariadb(CMakePackage):
variant('nonblocking', default=True, description='Allow non blocking '
'operations in the mariadb client library.')
+ provides('mariadb-client')
+
depends_on('boost')
depends_on('cmake@2.6:', type='build')
depends_on('jemalloc')