1

我是 SCons 的新手,我正在尝试用 SCons 构建一个 rpm。这是失败的部分

rpm_env = Environment(tools=['default','packaging'])
rpm_env['RPM_BUILD_ROOT'] = os.path.join(os.environ['HOME'], 'test-rpm')

rpmDist = rpm_env.Package(
PACKAGEROOT = os.path.join(os.environ['HOME'], 'test-rpm'),
NAME='pmpb',
VERSION='1.2.3',
PACKAGEVERSION="1",
PACKAGETYPE='rpm',
DESCRIPTION = "Test",
SUMMARY = "test Sum",
LICENSE = "liscent",
X_RPM_GROUP="Application/pattern-matcher"
)
rpm_env = Environment(tools=['default','packaging'])
rpm_env['RPM_BUILD_ROOT'] = os.path.join(os.environ['HOME'], 'test-rpm')

运行 scons 时,创建规范文件时出现错误

scons: *** [build/debug/applications/pattern_matching/pmpb-1.2.3.spec] AttributeError :      'File' object has no attribute 'PACKAGING_INSTALL_LOCATION'

谁能告诉我我做错了什么谢谢

4

0 回答 0