# IT4Innovations 2018

easyblock = 'ConfigureMake'

name = 'RPM'
version = '4.14.0'

homepage = 'http://rpm.org'
description = 'The RPM Package Manager (RPM) is a powerful package management system.'

toolchain = {'name': 'system', 'version': ''}

source_urls = ['https://github.com/rpm-software-management/rpm/archive']
sources = ['%(namelower)s-%(version)s-release.tar.gz']

dependencies = [
    ('zlib', '1.2.11'),
]

builddependencies = [
    ('Autotools', '20150215'),
    ('pkg-config', '0.29.2'),
]

osdependencies = [('openssl-devel', 'libssl-dev', 'libopenssl-devel')]

preconfigopts = './autogen.sh && '
configopts = '--with-crypto=openssl'

sanity_check_paths = {
    'files': ['bin/curl', 'lib/libcurl.a', 'lib/libcurl.%s' % SHLIB_EXT],
    'dirs': ['lib/pkgconfig'],
}

moduleclass = 'tools'
