diff options
author | Daryl W. Grunau <DarylGrunau@gmail.com> | 2019-08-14 13:54:15 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-08-14 14:54:15 -0500 |
commit | 0c5f5d4d0d79e965d730534014dea6d0d92d27bb (patch) | |
tree | 900440d601379d1b5bd94066968b84755987b0cb | |
parent | da21d277123da5288fe43e87def83023ce32de71 (diff) | |
download | spack-0c5f5d4d0d79e965d730534014dea6d0d92d27bb.tar.gz spack-0c5f5d4d0d79e965d730534014dea6d0d92d27bb.tar.bz2 spack-0c5f5d4d0d79e965d730534014dea6d0d92d27bb.tar.xz spack-0c5f5d4d0d79e965d730534014dea6d0d92d27bb.zip |
New package: device-mapper (#12406)
* bump eospac version
* Revert "bump eospac version"
This reverts commit 835b1f822d8c083f6ab9eb17222c00409e8eb3da.
* new package: device-mapper
* address comments by @hartzell
* extraneous whitespace
* capitalization
* device-mapper -> lvm2
* unprovide device-mapper
* address comments by @adamjstewart
* address comments by @adamjstewart
-rw-r--r-- | var/spack/repos/builtin/packages/lvm2/package.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lvm2/package.py b/var/spack/repos/builtin/packages/lvm2/package.py new file mode 100644 index 0000000000..18d9ef205d --- /dev/null +++ b/var/spack/repos/builtin/packages/lvm2/package.py @@ -0,0 +1,47 @@ +# 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 Lvm2(AutotoolsPackage): + """LVM2 is the userspace toolset that provides logical volume + management facilities on linux. To use it you need 3 things: + device-mapper in your kernel, the userspace device-mapper support + library (libdevmapper) and the userspace LVM2 tools (dmsetup). These + userspace components, and associated header files, are provided by this + package. See http://sources.redhat.com/dm/ for additional information + about the device-mapper kernel and userspace components.""" + + homepage = "https://www.sourceware.org/lvm2" + url = "https://sourceware.org/pub/lvm2/releases/LVM2.2.03.05.tgz" + + version('2.03.05', sha256='ca52815c999b20c6d25e3192f142f081b93d01f07b9d787e99664b169dba2700') + version('2.03.04', sha256='f151f36fc0039997d2d9369b607b9262568b1a268afe19fd1535807355402142') + version('2.03.03', sha256='cedefa63ec5ae1b62fedbfddfc30706c095be0fc7c6aaed6fd1c50bc8c840dde') + version('2.03.02', sha256='550ba750239fd75b7e52c9877565cabffef506bbf6d7f6f17b9700dee56c720f') + version('2.03.01', sha256='424e58b074195ec08e0315fa1aff2550590998c33aea5c43bdceb8c1d135530b') + version('2.03.00', sha256='405992bf76960e60c7219d84d5f1e22edc34422a1ea812e21b2ac3c813d0da4e') + + def url_for_version(self, version): + url = "https://sourceware.org/pub/lvm2/releases/LVM2.{0}.tgz" + return url.format(version) + + variant('pkgconfig', default=True, + description='install pkgconfig support') + + depends_on('libaio') + depends_on('pkgconfig', type='build', when='+pkgconfig') + + def configure_args(self): + args = ['--with-confdir={0}'. + format(self.prefix.etc), + '--with-default-system-dir={0}'. + format(self.prefix.etc.lvm)] + if self.spec.satisfies('+pkgconfig'): + args.append('--enable-pkgconfig') + else: + args.append('--disable-pkgconfig') + return args |