[python-django-horizon/el6-havana] add patch handling via git

Matthias Runge mrunge at fedoraproject.org
Fri Feb 14 11:03:53 UTC 2014


commit 5009290a6d3b594be749a9fdcd33a8bc3f21bb1c
Author: Matthias Runge <mrunge at redhat.com>
Date:   Fri Feb 14 12:04:23 2014 +0100

    add patch handling via git

 python-django-horizon.spec |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/python-django-horizon.spec b/python-django-horizon.spec
index c5285c6..ffea8dd 100644
--- a/python-django-horizon.spec
+++ b/python-django-horizon.spec
@@ -153,6 +153,14 @@ Customization module for OpenStack Dashboard to provide a branded logo.
 
 %prep
 %setup -q -n horizon-%{version}
+# Use git to manage patches.
+# http://rwmj.wordpress.com/2011/08/09/nice-rpm-git-patch-management-trick/
+git init
+git config user.email "python-django-horizon-owner at fedoraproject.org"
+git config user.name "python-django-horizon"
+git add .
+git commit -a -q -m "%{version} baseline"
+git am %{patches}
 
 
 # remove unnecessary .po files


More information about the scm-commits mailing list