commit e723fc6517c498a4ab24e1398dd4ae0b3366798c
Author: Russell Harrison <rharrison(a)fedoraproject.org>
Date: Sun Aug 26 21:59:18 2012 -0400
move chmod to install
rubygem-puppet-lint.spec | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/rubygem-puppet-lint.spec b/rubygem-puppet-lint.spec
index 6a8c71e..a775778 100644
--- a/rubygem-puppet-lint.spec
+++ b/rubygem-puppet-lint.spec
@@ -42,9 +42,6 @@ gem unpack %{SOURCE0}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
-# remove unecisary execute bit
-chmod a-x lib/puppet-lint/bin.rb
-
%build
mkdir -p .%{gem_dir}
@@ -69,6 +66,8 @@ cp -ap ./%{_bindir}/* \
%{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+# remove unecisary execute bit
+chmod a-x %{buildroot}%{gem_instdir}/lib/puppet-lint/bin.rb
rm -f %{buildroot}/%{gem_instdir}/%{gem_name}.gemspec
rm -f %{buildroot}/%{gem_instdir}/.gitignore