1*4882a593SmuzhiyunSUMMARY = "Set of CLI tools for Openlmi providers" 2*4882a593SmuzhiyunDESCRIPTION = "openlmi-tools is a set of command line tools for Openlmi providers." 3*4882a593SmuzhiyunHOMEPAGE = "http://www.openlmi.org/" 4*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later" 5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://../COPYING;md5=75859989545e37968a99b631ef42722e" 6*4882a593SmuzhiyunSECTION = "System/Management" 7*4882a593Smuzhiyun 8*4882a593Smuzhiyuninherit ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "setuptools", "", d)} 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunSKIP_RECIPE[openlmi-tools] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}" 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunDEPENDS = "python-native python-pywbem-native python-m2crypto python-pywbem" 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunSRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \ 15*4882a593Smuzhiyun " 16*4882a593SmuzhiyunSRC_URI[md5sum] = "e156246cb7b49753db82f4ddf7f03e50" 17*4882a593SmuzhiyunSRC_URI[sha256sum] = "292b8f5f2250655a4add8183c529b73358bc980bd4f23cfa484a940953fce9e4" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunS = "${WORKDIR}/${BP}/cli" 20*4882a593Smuzhiyun 21*4882a593Smuzhiyundo_configure:prepend() { 22*4882a593Smuzhiyun sed 's/@@VERSION@@/$(VERSION)/g' ${S}/setup.py.skel > ${S}/setup.py 23*4882a593Smuzhiyun} 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunpython() { 26*4882a593Smuzhiyun if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split(): 27*4882a593Smuzhiyun raise bb.parse.SkipRecipe('Requires meta-python2 to be present.') 28*4882a593Smuzhiyun} 29