[rubygem-activemodel] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
Vít Ondruch
vondruch at fedoraproject.org
Mon Mar 4 10:51:31 UTC 2013
commit 8313ad6cccc28bc1b7208b4cf14a9eac8e3f31c2
Author: Vít Ondruch <vondruch at redhat.com>
Date: Mon Mar 4 09:00:46 2013 +0100
Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
rubygem-activemodel.spec | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/rubygem-activemodel.spec b/rubygem-activemodel.spec
index 6e26230..c65c7f5 100644
--- a/rubygem-activemodel.spec
+++ b/rubygem-activemodel.spec
@@ -1,11 +1,10 @@
%global gem_name activemodel
-%global rubyabi 1.9.1
Summary: A toolkit for building modeling frameworks
Name: rubygem-%{gem_name}
Version: 3.2.12
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Development/Languages
License: MIT
URL: http://www.rubyonrails.org
@@ -16,8 +15,11 @@ Source1: %{gem_name}-%{version}-tests.tgz
# ActiveModel depends on Bundler ~> 3.0.0. This relax the dependency and
# fixes the test for Bundler >= 3.1.
Patch1: activemodel-3.2.8-relax-builder-dependency.patch
+# Fixes "NoMethodError: private method `initialize_dup' called" error.
+# https://github.com/rails/rails/commit/127411fdf3a3470e8830abf0c7876db67c0c344a
+Patch2: rubygem-activemodel-3.2.13-respond_to-with-private-methods.patch
# Let's keep Requires and BuildRequires sorted alphabeticaly
-Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(release)
Requires: ruby(rubygems)
Requires: rubygem(activesupport) = %{version}
Requires: rubygem(builder) => 3.0.0
@@ -49,14 +51,16 @@ Documentation for %{name}
%prep
%setup -q -c -T
-mkdir -p .%{gem_dir}
-gem install --local --install-dir .%{gem_dir} \
- --force %{SOURCE0}
+%gem_install -n %{SOURCE0}
pushd .%{gem_dir}
%patch1 -p1
popd
+pushd .%{gem_instdir}
+%patch2 -p2
+popd
+
%build
%install
@@ -88,6 +92,9 @@ popd
%changelog
+* Mon Mar 04 2013 Vít Ondruch <vondruch at redhat.com> - 3.2.12-2
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
* Tue Feb 12 2013 Vít Ondruch <vondruch at redhat.com> - 3.2.12-1
- Update to ActiveModel 3.2.12.
More information about the scm-commits
mailing list