some fixes so 'python setup.py bdist_rpm' works