graphite-project/graphite-web — pull request #4 by bmhatfield (2012-05-18 18:29:01+00:00)
Title: Enable BDIST_RPM to work right with setup.py

I've made some modifications to Graphite to enable bdist_rpm to work with setup.py, outputting a valid RPM that installs and works on Red Hat distros.

I've made a number of tweaks that allow this to work on first install, with no reconfiguration required (like a good RPM should!).

Notably, I made the vhost config valid for Centos-installed Apache, a postinstall script, updates to the setup.cfg to support bdist_rpm, and some tweaks to setup.py. Unfortunately, the version string fix ('-' to '_' is critical, as the RPM will not build with it the other way.)