[rubygem-activesupport] Update to ActiveSupport 3.0.5 Remove Rake dependnecy

Vít Ondruch vondruch at fedoraproject.org
Thu Mar 24 15:51:50 UTC 2011


commit 344cbba19b2fd16d42c3ea2afdf05a5c00761dfb
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Mar 24 16:50:24 2011 +0100

    Update to ActiveSupport 3.0.5
    Remove Rake dependnecy

 Rakefile                         |   32 --------------------------------
 activesupport-rakefile-fix.patch |   15 ---------------
 rubygem-activesupport.spec       |   26 +++++++++-----------------
 3 files changed, 9 insertions(+), 64 deletions(-)
---
diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec
index 782fefe..b499bd7 100644
--- a/rubygem-activesupport.spec
+++ b/rubygem-activesupport.spec
@@ -7,29 +7,22 @@
 Summary: Support and utility classes used by the Rails framework
 Name: rubygem-%{gemname}
 Epoch: 1
-Version: 3.0.3
-Release: 4%{?dist}
+Version: 3.0.5
+Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://www.rubyonrails.org
 
 Source0: http://rubygems.org/downloads/activesupport-%{version}.gem
 
-# For some reason the activesupport doesn't ship with the upstream Rakefile
-Source1: http://github.com/rails/rails/raw/v%{version}/%{gemname}/Rakefile
-
 # Also the activesupport gem doesn't ship with the test suite like the other
 # Rails rpms, you may check it out like so
 # git clone http://github.com/rails/rails.git
 # cd rails/activesupport/
-# git checkout v3.0.3
+# git checkout v3.0.5
 # tar czvf activesupport-tests.tgz test/
 Source2: activesupport-tests.tgz
 
-# Remove a task which breaks the Rakefile due to the gemspec
-# not being present in the gem
-Patch0: activesupport-rakefile-fix.patch
-
 # Removes code which breaks the test suite due to a
 # dependency on a file in the greater rails proj
 Patch1: activesupport-tests-fix.patch
@@ -43,7 +36,6 @@ Requires: rubygems
 Requires: ruby(abi) = %{rubyabi}
 Requires: rubygem(i18n)
 BuildRequires: rubygems
-BuildRequires: rubygem(rake)
 BuildRequires: rubygem(mocha)
 BuildRequires: rubygem(i18n)
 #BuildRequires: rubygem(memcache-client)
@@ -63,15 +55,11 @@ mkdir -p .%{gemdir}
 gem install --local --install-dir .%{gemdir} \
             --force -V --rdoc %{SOURCE0}
 
-# move the rakefile in place
-cp %{SOURCE1} .%{geminstdir}
-
 # move the tests into place
 tar xzvf %{SOURCE2} -C .%{geminstdir}
 
 
 pushd .%{geminstdir}
-%patch0 -p0
 %patch1 -p0
 %patch2 -p0
 
@@ -87,13 +75,13 @@ rm -rf %{buildroot}
 
 %check
 pushd %{buildroot}%{geminstdir} 
-rake test
+RUBYOPT="Itest" ruby -e "Dir.glob('test/**/*_test.rb').each {|t| require t}"
+popd
 
 %files
 %defattr(-, root, root, -)
 %dir %{geminstdir}
 %doc %{geminstdir}/CHANGELOG
-%{geminstdir}/Rakefile
 %{geminstdir}/lib
 %doc %{geminstdir}/README.rdoc
 %doc %{gemdir}/doc/%{gemname}-%{version}
@@ -103,6 +91,10 @@ rake test
 
 
 %changelog
+* Thu Mar 24 2011 Vít Ondruch <vondruch at redhat.com> - 1:3.0.3-5
+- Update to ActiveSupport 3.0.5
+- Remove Rake dependnecy
+
 * Mon Feb 14 2011 Mohammed Morsi <mmorsi at redhat.com> - 1:3.0.3-4
 - fix bad dates in the spec changelog
 


More information about the scm-commits mailing list