[openstack-puppet-modules/el6-icehouse] avoid modifying fedora dist git with %prep

Pádraig Brady pbrady at fedoraproject.org
Sat Apr 26 13:53:19 UTC 2014


commit 1918ffc0cf7233e24d5a50833cba7db2856363e9
Author: Pádraig Brady <P at draigBrady.com>
Date:   Sat Apr 26 12:38:41 2014 +0100

    avoid modifying fedora dist git with %prep

 openstack-puppet-modules.spec |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/openstack-puppet-modules.spec b/openstack-puppet-modules.spec
index 4d66af4..6b3de31 100644
--- a/openstack-puppet-modules.spec
+++ b/openstack-puppet-modules.spec
@@ -179,11 +179,11 @@ cd %{_builddir}/%{name}-%{version}/puppet-nova-%{nova_commit}
 %patch9 -p1
 %patch11 -p1
 
-find %{_builddir} -type f -name ".*" -exec rm {} +
-find %{_builddir} -size 0 -exec rm {} +
-find %{_builddir} \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
-find %{_builddir} \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
-find %{_builddir} \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} + -exec sed -i "/^#!/{d;q}" {} +
+find %{_builddir}/%{name}-%{version}/ -type f -name ".*" -exec rm {} +
+find %{_builddir}/%{name}-%{version}/ -size 0 -exec rm {} +
+find %{_builddir}/%{name}-%{version}/ \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
+find %{_builddir}/%{name}-%{version}/ \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
+find %{_builddir}/%{name}-%{version}/ \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} + -exec sed -i "/^#!/{d;q}" {} +
 
 
 %build


More information about the scm-commits mailing list