Info-ZIP/3.0-6.0-cpeGNU-25.03 (Info-ZIP-3.0-6.0-cpeGNU-25.03.eb)
Install with the EasyBuild-user module:
To access module help after installation and get reminded for which stacks and partitions the module is installed, usemodule spider Info-ZIP/3.0-6.0-cpeGNU-25.03.
EasyConfig:
easyblock = 'Bundle'
local_bzip2_version = '1.0.8' # http://www.bzip.org/downloads.html
local_Zip_version = '3.0' # https://infozip.sourceforge.net/Zip.html
local_UnZip_version = '6.0' # https://infozip.sourceforge.net/UnZip.html
name = 'Info-ZIP'
version = f'{local_Zip_version}-{local_UnZip_version}'
homepage = 'http://www.info-zip.org/Zip.html'
whatis = [
'Description: Info-ZIP provides the zip compression and uncompression tools'
]
description = """
Info-ZIP contains the zip compression and file packaging/archive utilities
and unzip file extraction utilities.
Although highly compatible both with PKWARE's PKZIP and PKUNZIP
utilities for MS-DOS, our primary objectives have been portability and
other-than-MSDOS functionality.
This module may not really be needed as the same utilities are installed
in the system image of LUMI.
"""
docurls = [
'man pages in section 1 for zip, zipcloak, zipnote, zipsplit, unzip, funzip, unzipsfx, zipgrep and zipinfo',
]
toolchain = {'name': 'cpeGNU', 'version': '25.03'}
builddependencies = [
('buildtools', '%(toolchain_version)s', '', SYSTEM),
('craype-network-none', EXTERNAL_MODULE),
('craype-accel-host', EXTERNAL_MODULE),
]
dependencies = [
('bzip2', local_bzip2_version),
]
local_zip_buildopts = ' '.join([
'-f unix/Makefile',
'CC="$CC"',
'IZ_OUR_BZIP2_DIR="$EBROOTBZIP2/lib"',
'CFLAGS="$CFLAGS -I. -DUNIX -DBZIP2_SUPPORT -DUNICODE_SUPPORT -DLARGE_FILE_SUPPORT -DHAVE_DIRENT_H -DHAVE_TERMIOS_H"',
'LFLAGS2="$LDFLAGS -L$EBROOTBZIP2/lib -lbz2"',
'OCRCU8="crc32_.o"',
'OCRCTB=""',
'zips'
])
local_unzip_buildopts = ' '.join([
'-f unix/Makefile',
'CC="$CC"',
'D_USE_BZ2=-DUSE_BZIP2',
'L_BZ2=-lbz2',
'LF2="$LDFLAGS"',
# Note: CF is multiple lines
'CF="$CFLAGS $CPPFLAGS -I. -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT ' +
'-DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD ' +
'-DDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DIZ_HAVE_UXUIDGID -DNOMEMCPY -DNO_WORKING_ISPRINT"',
'unzips'
])
local_common_installopts = '-f unix/Makefile prefix=%(installdir)s '
default_easyblock = 'ConfigureMake'
default_component_specs = {
'start_dir': '%(namelower)s%(version_major)s%(version_minor)s',
'skipsteps': ['configure'],
'preconfigopts': 'module unload cray-libsci cray-mpich rocm xpmem && ',
'prebuildopts': 'module unload cray-libsci cray-mpich rocm xpmem && ',
'pretestopts': 'module unload cray-libsci cray-mpich rocm xpmem && ',
'preinstallopts': 'module unload cray-libsci cray-mpich rocm xpmem && ',
}
components = [
('Zip', local_Zip_version, {
'sources': [ {
'filename': '%(namelower)s%(version_major)s%(version_minor)s.tar.gz',
'source_urls': ['https://download.sourceforge.net/infozip']
} ],
'patches': ['Zip-%(version)s_gcc-14-compatibility.patch',],
'buildopts': local_zip_buildopts,
'installopts': local_common_installopts,
}),
('UnZip', local_UnZip_version, {
'sources': [ {
'filename': '%(namelower)s%(version_major)s%(version_minor)s.tar.gz',
'source_urls': ['https://download.sourceforge.net/infozip']
} ],
'patches': ['UnZip-%(version)s_various-security-and-other-fixes-from-Ubuntu.patch',],
'buildopts': local_unzip_buildopts,
'installopts': local_common_installopts,
}),
]
checksums = [
{'zip30.tar.gz': 'f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369'},
{'unzip60.tar.gz': '036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37'},
{'Zip-3.0_gcc-14-compatibility.patch': '5bf576105aaaa944b514337465835f03210151e8d5fe4fe037bb83f289ad9df1'},
{'UnZip-6.0_various-security-and-other-fixes-from-Ubuntu.patch': '06b9307fd5aa018896bd4126818c00c1fd284a06cc3681cf0492f951ebb57ffe'},
]
sanity_check_paths = {
'files': ['bin/zip', 'bin/zipcloak', 'bin/zipnote', 'bin/zipsplit',
'bin/unzip', 'bin/funzip', 'bin/unzipsfx', 'bin/zipinfo', 'bin/zipgrep'],
'dirs': ['man/man1']
}
sanity_check_commands = [
'zip --version',
'zipcloak --version',
'zipnote -h',
'zipsplit -h',
'unzip -v',
'unzipsfx -h',
]
moduleclass = 'tools'