Add the bigdecimal dependency to gemspec.

f38
Bohuslav Kabrda 13 years ago
parent 119b2bd498
commit a0685eb211

@ -0,0 +1,16 @@
diff --git a/specifications/activesupport-3.0.11.gemspec.orig b/specifications/activesupport-3.0.11.gemspec
index 0277593..ef9b71d 100644
--- a/specifications/activesupport-3.0.11.gemspec.orig
+++ b/specifications/activesupport-3.0.11.gemspec
@@ -20,8 +20,11 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency("bigdecimal", ">= 0")
else
+ s.add_dependency("bigdecimal", ">= 0")
end
else
+ s.add_dependency("bigdecimal", ">= 0")
end
end

@ -7,7 +7,7 @@ Summary: Support and utility classes used by the Rails framework
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Epoch: 1 Epoch: 1
Version: 3.0.11 Version: 3.0.11
Release: 4%{?dist} Release: 5%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://www.rubyonrails.org URL: http://www.rubyonrails.org
@ -34,6 +34,11 @@ Patch2: activesupport-remove-memcache-build-dep.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=799275 # https://bugzilla.redhat.com/show_bug.cgi?id=799275
Patch3: activesupport-CVE-2012-1098-safe-buffer-slice.patch Patch3: activesupport-CVE-2012-1098-safe-buffer-slice.patch
# We need to add the bigdecimal dependency to gemspec, otherwise it won't be
# loaded. The reason for this is unbundling it from ruby libdir and moving
# it under %%{gem_dir} (therefore if not in Gemfile, it won't be found).
Patch4: activesupport-add-bigdecimal-dependency.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(rubygems) Requires: ruby(rubygems)
Requires: ruby(abi) = %{rubyabi} Requires: ruby(abi) = %{rubyabi}
@ -71,6 +76,10 @@ pushd .%{gem_instdir}
%patch3 -p2 %patch3 -p2
popd popd
pushd .%{gem_dir}
%patch4 -p1
popd
%build %build
%install %install
@ -96,6 +105,9 @@ popd
%changelog %changelog
* Wed Apr 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-5
- Add the bigdecimal dependency to gemspec.
* Fri Mar 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-4 * Fri Mar 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-4
- The CVE patch name now contains the CVE id. - The CVE patch name now contains the CVE id.

Loading…
Cancel
Save