When doing 'python setup.py bdist_rpm' the build fails with the following output:
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.63631
+ umask 022
+ cd /data/home/tim/homegrown_rpms/PyOpenGL-2.0.1.09/build/bdist.linux-i686/rpm/BUILD
+ cd PyOpenGL-2.0.1.09
+ LANG=C
+ export LANG
+ unset DISPLAY
+ env 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' python setup.py build
Traceback (most recent call last):
File "setup.py", line 44, in ?
from setup.togl_setup import install, build_togl
File "/data/home/tim/homegrown_rpms/PyOpenGL-2.0.1.09/build/bdist.linux-i686/rpm/BUILD/PyOpenGL-2.0.1.09/setup/togl_setup.py", line 27, in ?
tk = Tkinter.Tk()
File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1569, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
error: Bad exit status from /var/tmp/rpm-tmp.63631 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.63631 (%build)
error: command 'rpmbuild' failed with exit status 1
Version info:
PyOpenGL-2.0.1.09
python-2.4.4-1.fc6
tkinter-2.4.4-1.fc6
Fedora 6