From 5af49838dc024f33168ee080f917d96b47b7ca98 Mon Sep 17 00:00:00 2001 From: Bohuslav Kabrda Date: Thu, 28 Feb 2013 11:54:11 +0100 Subject: [PATCH] Fix the spec to be closer to guidelines --- rubygem-xml-simple.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rubygem-xml-simple.spec b/rubygem-xml-simple.spec index ac551bf..a508b7d 100644 --- a/rubygem-xml-simple.spec +++ b/rubygem-xml-simple.spec @@ -19,20 +19,19 @@ Provides: rubygem(%{gem_name}) = %{version} A simple API for XML processing. %prep +%setup -q -c -T +%gem_install -n %{SOURCE0} %build %install -rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} -%gem_install -n %{SOURCE0} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + chmod -x %{buildroot}/%{gem_libdir}/xmlsimple.rb -%clean -rm -rf %{buildroot} - %files -%defattr(-, root, root, -) %{gem_instdir} %doc %{gem_docdir} %{gem_cache}