[rubygem-puppet-lint] First cleanup after fedora-review run

Russell Harrison rharrison at fedoraproject.org
Mon Oct 1 01:38:49 UTC 2012


commit d18eed9e03dff2154370d6cf2d01c1c3c3be9ac4
Author: Russell Harrison <rharrison at fedoraproject.org>
Date:   Sun Aug 26 20:45:26 2012 -0400

    First cleanup after fedora-review run

 rubygem-puppet-lint.spec |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/rubygem-puppet-lint.spec b/rubygem-puppet-lint.spec
index 922ad15..85ddac6 100644
--- a/rubygem-puppet-lint.spec
+++ b/rubygem-puppet-lint.spec
@@ -2,16 +2,14 @@
 %global gem_name puppet-lint
 %global rubyabi 1.9.1
 
-Summary: Ensure your Puppet manifests conform with the Puppetlabs style guide
 Name: rubygem-%{gem_name}
 Version: 0.2.0
 Release: 1%{?dist}
+Summary: Ensure your Puppet manifests conform with the Puppetlabs style guide
 Group: Development/Languages
 License: MIT
 URL: https://github.com/rodjek/puppet-lint/
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-# https://github.com/rodjek/puppet-lint/pull/98
-#Patch0: %{name}-0002-apply-bug-fix-from-comment-on-issue-81.patch
 Requires: ruby(abi) = %{rubyabi}
 Requires: ruby(rubygems) 
 Requires: puppet
@@ -44,7 +42,8 @@ gem unpack %{SOURCE0}
 
 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
-#%patch0 -p1
+# remove unecisary execute bit
+chmod a-x lib/puppet-lint/bin.rb
 
 %build
 mkdir -p .%{gem_dir}
@@ -61,22 +60,23 @@ gem install --local --install-dir ./%{gem_dir} \
 
 %install
 mkdir -p %{buildroot}%{gem_dir}
-cp -a ./%{gem_dir}/* \
+cp -ap ./%{gem_dir}/* \
         %{buildroot}%{gem_dir}/
 
 
 mkdir -p %{buildroot}%{_bindir}
-cp -a ./%{_bindir}/* \
+cp -ap ./%{_bindir}/* \
         %{buildroot}%{_bindir}/
 
 find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
 
 rm -f %{buildroot}/%{gem_instdir}/%{gem_name}.gemspec
 rm -f %{buildroot}/%{gem_instdir}/.gitignore
+rm -f %{buildroot}/%{gem_instdir}/.travis.yml
 
 %check
 cd %{buildroot}%{gem_instdir}
-rake spec
+rspec -Ilib spec
 
 %files
 %dir %{gem_instdir}


More information about the scm-commits mailing list