mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Minor tweak for RPM building
This commit is contained in:
parent
d4dcd9cb12
commit
b56d39e46e
@ -4810,10 +4810,6 @@ def MakeInstallerLinux():
|
|||||||
PV=PYTHONV.replace("python", "")
|
PV=PYTHONV.replace("python", "")
|
||||||
if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot")
|
if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot")
|
||||||
oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec")
|
oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec")
|
||||||
if (os.path.exists("/usr/bin/rpmbuild")):
|
|
||||||
oscmd("rm -rf `rpm -E '%_target_cpu'`")
|
|
||||||
if (os.path.exists("/usr/bin/dpkg-deb")):
|
|
||||||
oscmd("rm -rf `dpkg --print-architecture`")
|
|
||||||
oscmd("mkdir linuxroot")
|
oscmd("mkdir linuxroot")
|
||||||
|
|
||||||
# Invoke installpanda.py to install it into a temporary dir
|
# Invoke installpanda.py to install it into a temporary dir
|
||||||
@ -4832,6 +4828,7 @@ def MakeInstallerLinux():
|
|||||||
WriteFile("panda3d.spec", txt)
|
WriteFile("panda3d.spec", txt)
|
||||||
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' --root "+pandasource+" --buildroot linuxroot -bb panda3d.spec")
|
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' --root "+pandasource+" --buildroot linuxroot -bb panda3d.spec")
|
||||||
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
|
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
|
||||||
|
oscmd("rmdir "+ARCH, True)
|
||||||
|
|
||||||
if (os.path.exists("/usr/bin/dpkg-deb")):
|
if (os.path.exists("/usr/bin/dpkg-deb")):
|
||||||
oscmd("dpkg --print-architecture > "+GetOutputDir()+"/tmp/architecture.txt")
|
oscmd("dpkg --print-architecture > "+GetOutputDir()+"/tmp/architecture.txt")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user