[openstack-keystone] run openstack-config in the 'build' rather than the 'prep'

Alan Pevec apevec at fedoraproject.org
Wed May 23 22:26:59 UTC 2012


commit 873a194bf42937f39ce11fc15b1e361a4d5cb33d
Author: Alan Pevec <apevec at redhat.com>
Date:   Tue May 22 12:52:14 2012 +0200

    run openstack-config in the 'build' rather than the 'prep'
    
    so that one can run prep independently of BuildRequires.
    (idea by pbrady from openstack-glance)

 openstack-keystone.spec |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/openstack-keystone.spec b/openstack-keystone.spec
index b249e4f..803f87e 100644
--- a/openstack-keystone.spec
+++ b/openstack-keystone.spec
@@ -79,6 +79,12 @@ This package contains the Keystone Python library.
 %setup -q -n keystone-%{version}
 
 %patch0001 -p1
+
+find . \( -name .gitignore -o -name .placeholder \) -delete
+find keystone -name \*.py -exec sed -i '/\/usr\/bin\/env python/d' {} \;
+
+
+%build
 # change default configuration
 openstack-config --set etc/keystone.conf DEFAULT log_file %{_localstatedir}/log/keystone/keystone.log
 openstack-config --set etc/keystone.conf sql connection mysql://keystone:keystone@localhost/keystone
@@ -88,11 +94,6 @@ openstack-config --set etc/keystone.conf identity driver keystone.identity.backe
 openstack-config --set etc/keystone.conf token driver keystone.token.backends.sql.Token
 openstack-config --set etc/keystone.conf ec2 driver keystone.contrib.ec2.backends.sql.Ec2
 
-find . \( -name .gitignore -o -name .placeholder \) -delete
-find keystone -name \*.py -exec sed -i '/\/usr\/bin\/env python/d' {} \;
-
-
-%build
 %{__python} setup.py build
 
 %install


More information about the scm-commits mailing list