ansible/ansible — pull request #748 by dagwieers (2012-08-01 12:59:37+00:00)
Title: Implements git commit date into RPM release

With this patch one can do `make rpm` and get an RPM file that looks like:

rpm-build/noarch/ansible-0.6-0.git201208010541.el6.noarch.rpm

My goal was not to rewrite the original SPEC file, and/or the tarball. In other
projects what I tend to do is prepare the SPEC file in the tarball with the
correct version/release so that rpmbuild works on the (released) tarball as
well. If this is wanted, we will have to rewrite the SPEC file on the fly as
part of creating the tarball. If there is no git or .git/ available, we will
use the current time.

We can do something similar for Debian packages (and the tarball) if wanted.