mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
RPM requires python
This commit is contained in:
parent
9c9630a905
commit
6132cec34e
@ -3587,6 +3587,7 @@ Release: 1
|
|||||||
License: Panda3D License
|
License: Panda3D License
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
BuildRoot: PANDASOURCE/linuxroot
|
BuildRoot: PANDASOURCE/linuxroot
|
||||||
|
BuildRequires: PYTHONV
|
||||||
%description
|
%description
|
||||||
The Panda3D engine.
|
The Panda3D engine.
|
||||||
%post
|
%post
|
||||||
@ -3652,7 +3653,7 @@ def MakeInstallerLinux():
|
|||||||
oscmd("rpm -E '%_target_cpu' > built/tmp/architecture.txt")
|
oscmd("rpm -E '%_target_cpu' > built/tmp/architecture.txt")
|
||||||
ARCH=ReadFile("built/tmp/architecture.txt").strip()
|
ARCH=ReadFile("built/tmp/architecture.txt").strip()
|
||||||
pandasource = os.path.abspath(os.getcwd())
|
pandasource = os.path.abspath(os.getcwd())
|
||||||
txt = INSTALLER_SPEC_FILE[1:].replace("VERSION",VERSION).replace("PANDASOURCE",pandasource)
|
txt = INSTALLER_SPEC_FILE[1:].replace("VERSION",VERSION).replace("PANDASOURCE",pandasource).replace("PYTHONV",PYTHONV)
|
||||||
WriteFile("panda3d.spec", txt)
|
WriteFile("panda3d.spec", txt)
|
||||||
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' -bb panda3d.spec")
|
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' -bb panda3d.spec")
|
||||||
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
|
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user