hmarr/django-ses — pull request #40 by atodorov (2012-06-08 19:22:54+00:00)
Title: add spec file and Makefile to build RPMs

Hi,
here's a .spec file and a Makefile to help build RPMs for those like me, who don't like to install from PyPI directly.

In the PWD ensure you have the django-ses-$VERSION.tar.gz file and run make rpm. The resulting RPMs will be in the current directory.

I've tested the resulting RPM on RHEL6 and it appears to be working correctly.

NOTE: Since latest stable is 0.4.1 and `setup.py` in Git is at 0.5.0 you have to either edit `setup.py` to match the version of the tarball or checkout 0.4.1 from git.

NOTE2: This is unrelated but is visible while doing the packaging. The `example/` directory is installed under `/usr/lib/python-x.y/site-packages/example` which is very likely to conflict with other packages. In the RPM I place it under `/usr/share/doc/django-ses-x.y/example` but can't remove it from the Python `site-packages` dir. `setup.py` needs a patch to handle this properly.