[rubygem-boxgrinder-core/f15] Rebuilt for Ruby 1.9.3.

Marek Goldmann goldmann at fedoraproject.org
Mon Mar 19 12:38:33 UTC 2012


commit 5c7357cae07c51678d6184be9a29b301516a2c10
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Feb 6 13:39:28 2012 +0100

    Rebuilt for Ruby 1.9.3.

 rubygem-boxgrinder-core.spec |   57 ++++++++++++++++++++++--------------------
 1 files changed, 30 insertions(+), 27 deletions(-)
---
diff --git a/rubygem-boxgrinder-core.spec b/rubygem-boxgrinder-core.spec
index e69b0b3..05e2224 100644
--- a/rubygem-boxgrinder-core.spec
+++ b/rubygem-boxgrinder-core.spec
@@ -1,16 +1,14 @@
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global gemname boxgrinder-core
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
-%global rubyabi 1.8
+%global gem_name boxgrinder-core
+%global rubyabi 1.9.1
 
 Summary: Core library for BoxGrinder
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
 Version: 0.3.10
-Release: 2%{?dist}
+Release: 3%{?dist}
 Group: Development/Languages
 License: LGPLv3+
 URL: http://boxgrinder.org/
-Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
 
 Requires: ruby(abi) = %{rubyabi}
 Requires: rubygem(open4)
@@ -24,9 +22,10 @@ BuildRequires: rubygem(echoe)
 BuildRequires: rubygem(kwalify)
 # Use rspec-core until rspec are migrated to RSpec 2.x
 BuildRequires: rubygem(rspec-core)
+BuildRequires: rubygems-devel
 
 BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
 
 %description
 Core library containing files required by BoxGrinder family of projects
@@ -41,41 +40,45 @@ Documentation for %{name}
 
 %prep
 %setup -q -c -T
-mkdir -p .%{gemdir}
-gem install --local --install-dir .%{gemdir} \
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
             --force --rdoc %{SOURCE0}
 
 %build
 
 %install
-mkdir -p %{buildroot}%{gemdir}
-cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
 
 %check
-pushd .%{geminstdir}
-rake spec
+pushd .%{gem_instdir}
+sed -i "/require 'yaml'/a\ \nYAML::ENGINE.yamler = 'syck'\n" lib/boxgrinder-core/models/config.rb
+rspec spec/**/*-spec.rb
 popd
 
 %files
 %defattr(-, root, root, -)
-%dir %{geminstdir}
-%{geminstdir}/lib
-%doc %{geminstdir}/CHANGELOG
-%doc %{geminstdir}/LICENSE
-%doc %{geminstdir}/README
-%doc %{geminstdir}/Manifest
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}
+%{gem_libdir}
+%doc %{gem_instdir}/CHANGELOG
+%doc %{gem_instdir}/LICENSE
+%doc %{gem_instdir}/README
+%doc %{gem_instdir}/Manifest
+%{gem_cache}
+%{gem_spec}
 
 %files doc
 %defattr(-, root, root, -)
-%{geminstdir}/spec
-%{geminstdir}/Rakefile
-%{geminstdir}/rubygem-%{gemname}.spec
-%{geminstdir}/%{gemname}.gemspec
-%{gemdir}/doc/%{gemname}-%{version}
+%{gem_instdir}/spec
+%{gem_instdir}/Rakefile
+%{gem_instdir}/rubygem-%{gem_name}.spec
+%{gem_instdir}/%{gem_name}.gemspec
+%{gem_docdir}
 
 %changelog
+* Thu Feb 02 2012 Vít Ondruch <vondruch at redhat.com> - 0.3.10-3
+- Rebuilt for Ruby 1.9.3.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.10-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list