Fix RPM file creation (tested on Fedora)

This commit is contained in:
rdb 2010-11-15 08:18:05 +00:00
parent ab58d85599
commit dcdafc4b4e

View File

@ -5092,7 +5092,7 @@ def MakeInstallerLinux():
txt = INSTALLER_SPEC_FILE[1:]
txt = txt.replace("VERSION", VERSION).replace("RPMRELEASE", RPMRELEASE).replace("PANDASOURCE", pandasource).replace("PV", PV)
WriteFile("panda3d.spec", txt)
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' --root "+pandasource+" --buildroot targetroot -bb panda3d.spec")
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' --buildroot '"+os.abspath("targetroot")+"' -bb panda3d.spec")
if (RUNTIME):
oscmd("mv "+ARCH+"/panda3d-runtime-"+VERSION+"-"+RPMRELEASE+"."+ARCH+".rpm .")
else: