[rubygem-sprockets] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

Vít Ondruch vondruch at fedoraproject.org
Fri Mar 8 09:47:49 UTC 2013


commit de88f659efff589fe6f5081a98fca8fe18553379
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Mar 8 08:34:07 2013 +0100

    Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

 rubygem-sprockets.spec |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/rubygem-sprockets.spec b/rubygem-sprockets.spec
index cc0f498..e05acc0 100644
--- a/rubygem-sprockets.spec
+++ b/rubygem-sprockets.spec
@@ -1,20 +1,19 @@
 # Generated from sprockets-2.4.5.gem by gem2rpm -*- rpm-spec -*-
 %global gem_name sprockets
-%global rubyabi 1.9.1
 
 Summary: Rack-based asset packaging system
 Name: rubygem-%{gem_name}
 Version: 2.8.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://getsprockets.org/
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
 # to get tests:
 # git clone https://github.com/sstephenson/sprockets.git && cd sprockets/
-# git checkout v2.4.5 && tar czf sprockets-tests-2.4.5.tgz test/
+# git checkout v2.8.2 && tar czf sprockets-tests-2.8.2.tgz test/
 Source1: sprockets-%{version}-tests.tgz
-Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(release)
 Requires: ruby(rubygems)
 Requires: rubygem(hike) => 1.2
 Requires: rubygem(hike) < 2
@@ -25,7 +24,7 @@ Requires: rubygem(rack) < 2
 Requires: rubygem(tilt) => 1.1
 Requires: rubygem(tilt) < 2
 Conflicts: rubygem(tilt) = 1.3.0
-BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
 BuildRequires: rubygem(coffee-script)
@@ -66,10 +65,7 @@ Documentation for %{name}
 
 %prep
 %setup -q -c -T
-mkdir -p .%{gem_dir}
-gem install --local --install-dir .%{gem_dir} \
-            --bindir .%{_bindir} \
-            --force %{SOURCE0}
+%gem_install -n %{SOURCE0}
 
 %build
 
@@ -89,7 +85,9 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
 pushd .%{gem_instdir}
 tar xzf %{SOURCE1}
 # 4 errors due to missing Gems "eco" and "ejs"
-testrb -Ilib test | grep '447 tests, 1158 assertions, 0 failures, 4 errors, 0 skips'
+# 1 failure in test "read ASCII asset"(EncodingTest).
+# https://github.com/sstephenson/sprockets/issues/418
+testrb -Ilib test | grep '447 tests, 1158 assertions, 1 failures, 4 errors, 0 skips'
 popd
 
 %files
@@ -106,6 +104,9 @@ popd
 %doc %{gem_docdir}
 
 %changelog
+* Fri Mar 08 2013 Vít Ondruch <vondruch at redhat.com> - 2.8.2-3
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.8.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list