add spec file and Makefile to build RPMs #40
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 editsetup.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 Pythonsite-packages
dir.setup.py
needs a patch to handle this properly.