[rubygem-activeresource] Rebuilt for Ruby 1.9.3. Update to ActiveResource 3.0.11

Bohuslav Kabrda bkabrda at fedoraproject.org
Wed Jan 25 11:45:23 UTC 2012


commit 43e343ea52e8e154e846d1a0e179533c99f0951c
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Jan 25 12:45:13 2012 +0100

    Rebuilt for Ruby 1.9.3.
    Update to ActiveResource 3.0.11

 .gitignore                  |    2 +
 rubygem-activeresource.spec |   75 ++++++++++++++++++++++--------------------
 sources                     |    4 +-
 3 files changed, 43 insertions(+), 38 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e84f153..f72699c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@ activeresource-2.3.5.gem
 /activeresource-3.0.9.gem
 /activeresource-3.0.10-tests.tgz
 /activeresource-3.0.10.gem
+/activeresource-3.0.11-tests.tgz
+/activeresource-3.0.11.gem
diff --git a/rubygem-activeresource.spec b/rubygem-activeresource.spec
index b017737..85e236c 100644
--- a/rubygem-activeresource.spec
+++ b/rubygem-activeresource.spec
@@ -1,16 +1,13 @@
 # Generated from activeresource-2.0.1.gem by gem2rpm -*- rpm-spec -*-
-%global gemname activeresource
+%global gem_name activeresource
 
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
-
-%global rubyabi 1.8
+%global rubyabi 1.9.1
 
 Summary: Active Record for web resources
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
 Epoch: 1
-Version: 3.0.10
-Release: 2%{?dist}
+Version: 3.0.11
+Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://www.rubyonrails.org
@@ -18,14 +15,14 @@ URL: http://www.rubyonrails.org
 Source0: http://rubygems.org/downloads/activeresource-%{version}.gem
 
 # The activeresource gem doesn't ship with the upstream Rakefile
-Source1: http://github.com/rails/rails/raw/v%{version}/%{gemname}/Rakefile
+Source1: http://github.com/rails/rails/raw/v%{version}/%{gem_name}/Rakefile
 
 # Also the activeresource gem doesn't ship with the test suite.
 # You may check it out like so
 # git clone http://github.com/rails/rails.git
 # cd rails/activeresource/
-# git checkout v3.0.10
-# tar czvf activeresource-3.0.10-tests.tgz test/
+# git checkout v3.0.11
+# tar czvf activeresource-3.0.11-tests.tgz test/
 Source2: activeresource-%{version}-tests.tgz
 
 # Remove a task which breaks the Rakefile due to the gemspec
@@ -37,17 +34,18 @@ Patch0: activeresource-rakefile-fix.patch
 Patch1: activeresource-tests-fix.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: rubygems
+Requires: ruby(rubygems)
 Requires: rubygem(activesupport) = %{version}
 Requires: rubygem(activemodel) = %{version}
 Requires: ruby(abi) = %{rubyabi}
-BuildRequires: rubygems
+BuildRequires: rubygems-devel
 BuildRequires: rubygem(rake)
 BuildRequires: rubygem(mocha)
+BuildRequires: rubygem(minitest)
 BuildRequires: rubygem(activesupport) = %{version}
 BuildRequires: rubygem(activemodel) = %{version}
 BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
 
 %description
 Wraps web resources in model classes that can be manipulated through XML over
@@ -56,17 +54,17 @@ REST.
 
 %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}
 
 # move the Rakefile in place
-cp %{SOURCE1} .%{geminstdir}
+cp %{SOURCE1} .%{gem_instdir}
 
 # move the tests into place
-tar xzvf %{SOURCE2} -C .%{geminstdir}
+tar xzvf %{SOURCE2} -C .%{gem_instdir}
 
-pushd ./%{geminstdir}
+pushd ./%{gem_instdir}
 %patch0 -p0
 %patch1 -p0
 popd
@@ -74,22 +72,22 @@ popd
 %build
 
 %install
-mkdir -p %{buildroot}%{gemdir}
-cp -a .%{gemdir}/* %{buildroot}%{gemdir}
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
 
 # Remove backup files
-find %{buildroot}/%{geminstdir} -type f -name "*~" -delete
+find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
 
 # Delete zero-length files
-find %{buildroot}/%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
+find %{buildroot}/%{gem_instdir} -type f -size 0c -exec rm -rvf {} \;
 
 # Fix anything executable that does not have a shebang
-for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
+for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
     [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
 done
 
 # Find files with a shebang that do not have executable permissions
-for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
+for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do
     [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
 done
 
@@ -97,24 +95,29 @@ done
 rm -rf %{buildroot}
 
 %check
-pushd %{buildroot}%{geminstdir}
+pushd %{buildroot}%{gem_instdir}
 rake test --trace
+popd
 
 %files
 %defattr(-, root, root, -)
-%dir %{geminstdir}
-%doc %{geminstdir}/CHANGELOG
-%doc %{geminstdir}/examples
-%{geminstdir}/lib
-%doc %{geminstdir}/README.rdoc
-%{geminstdir}/Rakefile
-%{geminstdir}/test
-%doc %{gemdir}/doc/%{gemname}-%{version}
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}
+%doc %{gem_instdir}/CHANGELOG
+%doc %{gem_instdir}/examples
+%{gem_libdir}
+%doc %{gem_instdir}/README.rdoc
+%{gem_instdir}/Rakefile
+%{gem_instdir}/test
+%doc %{gem_docdir}
+%{gem_cache}
+%{gem_spec}
 
 
 %changelog
+* Wed Jan 25 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1:3.0.11-1
+- Rebuilt for Ruby 1.9.3.
+- Update to ActiveResource 3.0.11
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:3.0.10-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index 233d1d7..d5d0fa9 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-9cedcb9799bb30e5dee47ce6dc8676f1  activeresource-3.0.10-tests.tgz
-2accb10df552475749f60fc707c96339  activeresource-3.0.10.gem
+9227ce3a0be37a387fd62e418eaf6bf2  activeresource-3.0.11-tests.tgz
+b6f5d678376dcea42c32da0b2d83e97f  activeresource-3.0.11.gem


More information about the scm-commits mailing list