anchor.diff:  
   %files
   %defattr(-,root,root,-)
  -%{prefix}/gems/%{rbname}-%{version}/
  -%{prefix}/specifications/%{rbname}-%{version}.gemspec
  -%{prefix}/cache/%{rbname}-%{version}.gem
  +%{gem_prefix}/gems/%{rbname}-%{version}/
  +%{gem_prefix}/specifications/%{rbname}-%{version}.gemspec
  +%{gem_prefix}/cache/%{rbname}-%{version}.gem
   <% spec.executables.each do |e| %>
  -%{prefix}/bin/<%= e %>
  +%{gem_prefix}/bin/<%= e %>
   <% end %>
   
   
  
positive.code: gem install %{SOURCE0} --force --local --no-rdoc --no-ri --install-dir=.
  
  %install
  #echo "moving gem files to %{local_gems_dir}..."
  
  rm -rf $RPM_BUILD_ROOT%{prefix}
  tree $RPM_BUILD_ROOT
  mkdir -p $RPM_BUILD_ROOT%{prefix}
  mv * $RPM_BUILD_ROOT%{prefix}
  chmod -R 0755 $RPM_BUILD_ROOT%{prefix}
  
  %clean
  rm -rf $RPM_BUILD_ROOT
  
negative.code: 
  Prefix: <%=@prefix%>
  
  %define gem_prefix %{prefix}/lib/gems/%(<%=@ruby_cmd%> -e "puts VERSION.split('.')[0..1].join('.')")
  
  %description
  <%= spec.description %>
  
  