|
|
06e69c |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
06e69c |
%{!?scl:%global pkg_name %{name}}
|
|
|
06e69c |
|
|
|
06e69c |
%global gem_name activesupport
|
|
|
06e69c |
|
|
|
06e69c |
Summary: Support and utility classes used by the Rails framework
|
|
|
06e69c |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
06e69c |
Epoch: 1
|
|
|
06e69c |
Version: 4.2.6
|
|
|
06e69c |
Release: 1%{?dist}
|
|
|
06e69c |
Group: Development/Languages
|
|
|
06e69c |
License: MIT
|
|
|
06e69c |
URL: http://www.rubyonrails.org
|
|
|
06e69c |
|
|
|
06e69c |
Source0: http://rubygems.org/downloads/activesupport-%{version}.gem
|
|
|
06e69c |
|
|
|
06e69c |
# Also the activesupport gem doesn't ship with the test suite like the other
|
|
|
06e69c |
# Rails rpms, you may check it out like so
|
|
|
06e69c |
# git clone http://github.com/rails/rails.git
|
|
|
06e69c |
# cd rails/activesupport/
|
|
|
06e69c |
# git checkout v4.2.6
|
|
|
06e69c |
# tar czvf activesupport-4.2.6-tests.tgz test/
|
|
|
06e69c |
Source2: activesupport-%{version}-tests.tgz
|
|
|
06e69c |
|
|
|
06e69c |
# Removes code which breaks the test suite due to a
|
|
|
06e69c |
# dependency on a file in the greater rails proj
|
|
|
06e69c |
Patch1: activesupport-tests-fix.patch
|
|
|
06e69c |
|
|
|
06e69c |
# Allow the test suite to be run out of Rails git repo layout
|
|
|
06e69c |
# See https://github.com/rails/rails/pull/19625
|
|
|
06e69c |
Patch2: activesupport-4.2.1-run-out-of-rails-git.patch
|
|
|
06e69c |
|
|
|
06e69c |
# Let's keep Requires and BuildRequires sorted alphabeticaly
|
|
|
06e69c |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
06e69c |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
06e69c |
Requires: %{?scl_prefix}rubygem(i18n) >= 0.7
|
|
|
06e69c |
Requires: %{?scl_prefix}rubygem(i18n) < 1
|
|
|
06e69c |
Requires: %{?scl_prefix_ruby}rubygem(json) >= 1.7.7
|
|
|
06e69c |
Requires: %{?scl_prefix_ruby}rubygem(json) < 2
|
|
|
06e69c |
Requires: %{?scl_prefix_ruby}rubygem(minitest) >= 5.1
|
|
|
06e69c |
Requires: %{?scl_prefix_ruby}rubygem(minitest) < 6
|
|
|
06e69c |
Requires: %{?scl_prefix}rubygem(thread_safe) >= 0.3.4
|
|
|
06e69c |
Requires: %{?scl_prefix}rubygem(thread_safe) < 1
|
|
|
06e69c |
Requires: %{?scl_prefix}rubygem(tzinfo) >= 1.1
|
|
|
06e69c |
Requires: %{?scl_prefix}rubygem(tzinfo) < 2
|
|
|
06e69c |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
06e69c |
BuildRequires: %{?scl_prefix_ruby}rubygem(bigdecimal)
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(builder)
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(dalli)
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(i18n) >= 0.6.9
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(i18n) < 1.0
|
|
|
06e69c |
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) >= 5.0.0
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(mocha)
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(rack)
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(thread_safe)
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(tzinfo) >= 1.1
|
|
|
06e69c |
BuildRequires: %{?scl_prefix}rubygem(tzinfo) < 2.0
|
|
|
06e69c |
BuildArch: noarch
|
|
|
06e69c |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
06e69c |
|
|
|
06e69c |
%description
|
|
|
06e69c |
Utility library which carries commonly used classes and
|
|
|
06e69c |
goodies from the Rails framework
|
|
|
06e69c |
|
|
|
06e69c |
%prep
|
|
|
06e69c |
%setup -n %{pkg_name}-%{version} -q -c -T
|
|
|
06e69c |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
06e69c |
%gem_install -n %{SOURCE0}
|
|
|
06e69c |
%{?scl:EOF}
|
|
|
06e69c |
|
|
|
06e69c |
# move the tests into place
|
|
|
06e69c |
tar xzvf %{SOURCE2} -C .%{gem_instdir}
|
|
|
06e69c |
|
|
|
06e69c |
|
|
|
06e69c |
pushd .%{gem_instdir}
|
|
|
06e69c |
%patch1 -p0
|
|
|
06e69c |
%patch2 -p2
|
|
|
06e69c |
popd
|
|
|
06e69c |
|
|
|
06e69c |
%build
|
|
|
06e69c |
|
|
|
06e69c |
%install
|
|
|
06e69c |
rm -rf %{buildroot}
|
|
|
06e69c |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
06e69c |
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
|
|
|
06e69c |
|
|
|
06e69c |
%check
|
|
|
06e69c |
pushd %{buildroot}%{gem_instdir}
|
|
|
06e69c |
# 1 failure, 5 errors
|
|
|
06e69c |
# Rails tests still require Minitest 5.3.3
|
|
|
06e69c |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
06e69c |
ruby -Ilib:test -e "Dir.glob('./test/**/*_test.rb').each {|t| require t}" | grep '1 failures, 5 errors'
|
|
|
06e69c |
%{?scl:EOF}
|
|
|
06e69c |
popd
|
|
|
06e69c |
|
|
|
06e69c |
%files
|
|
|
06e69c |
%dir %{gem_instdir}
|
|
|
06e69c |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
06e69c |
%{gem_libdir}
|
|
|
06e69c |
%doc %{gem_instdir}/MIT-LICENSE
|
|
|
06e69c |
%doc %{gem_instdir}/README.rdoc
|
|
|
06e69c |
%doc %{gem_docdir}
|
|
|
06e69c |
%{gem_cache}
|
|
|
06e69c |
%{gem_spec}
|
|
|
06e69c |
%{gem_instdir}/test
|
|
|
06e69c |
|
|
|
06e69c |
%changelog
|
|
|
06e69c |
* Mon Apr 04 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.6-1
|
|
|
06e69c |
- Update to 4.2.6
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Feb 29 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.5.1-4
|
|
|
06e69c |
- Remove unused patch
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Feb 17 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.5.1-3
|
|
|
06e69c |
- Update to 4.2.5.1
|
|
|
06e69c |
|
|
|
06e69c |
* Tue Feb 16 2016 Pavel Valena <pvalena@redhat.com> - 1:4.1.5-3
|
|
|
06e69c |
- Fix offset in patch for CVE-2016-0753
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Feb 10 2016 Pavel Valena <pvalena@redhat.com> - 1:4.1.5-2
|
|
|
06e69c |
- Fix possible input validation circumvention - rhbz#1301973
|
|
|
06e69c |
- Resolves: CVE-2016-0753
|
|
|
06e69c |
- Fix Timing attack vulnerability in basic authentication - rhbz#1301933
|
|
|
06e69c |
- Resolves: CVE-2015-7576
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Jan 19 2015 Josef Stribny <jstribny@redhat.com> - 1:4.1.5-1
|
|
|
06e69c |
- Update to 4.1.5
|
|
|
06e69c |
|
|
|
06e69c |
* Fri Jan 31 2014 Vít Ondruch <vondruch@redhat.com> - 1:4.0.2-3
|
|
|
06e69c |
- Remove unneeded patch.
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Jan 23 2014 Vít Ondruch <vondruch@redhat.com> - 1:4.0.2-2
|
|
|
06e69c |
- Fix minitest dependency.
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Dec 04 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-1
|
|
|
06e69c |
- Update to ActionSupport 4.0.2
|
|
|
06e69c |
- Resolves: rhbz#1037985
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Nov 21 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.1-1
|
|
|
06e69c |
- Update to ActiveSupport 4.0.1
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Oct 17 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-2
|
|
|
06e69c |
- Add missing minitest runtime dep
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Oct 03 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-1
|
|
|
06e69c |
- Update to ActiveSupport 4.0.0.
|
|
|
06e69c |
|
|
|
06e69c |
* Fri Jun 07 2013 Josef Stribny <jstribny@redhat.com> - 1:3.2.13-1
|
|
|
06e69c |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
06e69c |
- Update to ActiveSupport 3.2.13.
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Feb 27 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.8-4
|
|
|
06e69c |
- Rebuild to fix documentation vulnerability due to CVE-2013-0256.
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Jan 10 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.8-3
|
|
|
06e69c |
- Fix for CVE-2013-0156.
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Oct 04 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.8-2
|
|
|
06e69c |
- Fix name given to %%scl_package.
|
|
|
06e69c |
|
|
|
06e69c |
* Tue Sep 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.8-1
|
|
|
06e69c |
- Update to ActiveSupport 3.2.8.
|
|
|
06e69c |
|
|
|
06e69c |
* Tue Jul 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.6-3
|
|
|
06e69c |
- Remove the cached gem.
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Jul 25 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.6-2
|
|
|
06e69c |
- Recreated for SCL from Fedora again.
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Jul 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.6-1
|
|
|
06e69c |
- Update to ActiveSupport 3.2.6.
|
|
|
06e69c |
- Removed unneeded BuildRoot tag.
|
|
|
06e69c |
- Tests no longer fail with newer versions of Mocha, remove workaround.
|
|
|
06e69c |
|
|
|
06e69c |
* Fri Jun 15 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.15-1
|
|
|
06e69c |
- Update to ActiveSupport 3.0.15.
|
|
|
06e69c |
|
|
|
06e69c |
* Fri Jun 01 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.13-1
|
|
|
06e69c |
- Update to ActiveSupport 3.0.13.
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Apr 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-5
|
|
|
06e69c |
- Add the bigdecimal dependency to gemspec.
|
|
|
06e69c |
|
|
|
06e69c |
* Fri Mar 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-4
|
|
|
06e69c |
- The CVE patch name now contains the CVE id.
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Mar 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-3
|
|
|
06e69c |
- Patch for CVE-2012-1098
|
|
|
06e69c |
|
|
|
06e69c |
* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-1
|
|
|
06e69c |
- Rebuilt for Ruby 1.9.3.
|
|
|
06e69c |
- Update to ActiveSupport 3.0.11.
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.10-1
|
|
|
06e69c |
- Update to ActiveSupport 3.0.10
|
|
|
06e69c |
|
|
|
06e69c |
* Fri Jul 01 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.9-1
|
|
|
06e69c |
- Update to ActiveSupport 3.0.9
|
|
|
06e69c |
- Changed %%define into %%global
|
|
|
06e69c |
- Removed unnecessary %%clean section
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-3
|
|
|
06e69c |
- Reverting accidental change adding a few gem flags
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-2
|
|
|
06e69c |
- Include fix for CVE-2011-2197
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Mar 24 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.5-1
|
|
|
06e69c |
- Update to ActiveSupport 3.0.5
|
|
|
06e69c |
- Remove Rake dependnecy
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Feb 14 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-4
|
|
|
06e69c |
- fix bad dates in the spec changelog
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Feb 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-3
|
|
|
06e69c |
- include i18n runtime dependency
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.3-2
|
|
|
06e69c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Jan 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-1
|
|
|
06e69c |
- update to rails 3
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Aug 25 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-2
|
|
|
06e69c |
- bumped version
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Aug 04 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-1
|
|
|
06e69c |
- Update to 2.3.8
|
|
|
06e69c |
- Added check section with rubygem-mocha dependency
|
|
|
06e69c |
- Added upsteam Rakefile and test suite to run tests
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Jan 28 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.5-1
|
|
|
06e69c |
- Update to 2.3.5
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Oct 7 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.4-2
|
|
|
06e69c |
- Bump Epoch to ensure upgrade path from F-11
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Sep 7 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.4-1
|
|
|
06e69c |
- Update to 2.3.4 (bug 520843, CVE-2009-3009)
|
|
|
06e69c |
|
|
|
06e69c |
* Sun Jul 26 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.3-1
|
|
|
06e69c |
- New upstream version
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Mar 16 2009 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.3.2-1
|
|
|
06e69c |
- New upstream version
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
|
|
|
06e69c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Nov 24 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.2.2-1
|
|
|
06e69c |
- New upstream version
|
|
|
06e69c |
|
|
|
06e69c |
* Tue Sep 16 2008 David Lutterkort <dlutter@redhat.com> - 2.1.1-1
|
|
|
06e69c |
- New version (fixes CVE-2008-4094)
|
|
|
06e69c |
|
|
|
06e69c |
* Thu Jul 31 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.1.0-1
|
|
|
06e69c |
- New Upstream
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Apr 07 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-1
|
|
|
06e69c |
- New version
|
|
|
06e69c |
|
|
|
06e69c |
* Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 2.0.1-1
|
|
|
06e69c |
- New version
|
|
|
06e69c |
|
|
|
06e69c |
* Wed Nov 28 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-3
|
|
|
06e69c |
- Fix buildroot
|
|
|
06e69c |
|
|
|
06e69c |
* Tue Nov 14 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-2
|
|
|
06e69c |
- Install README and CHANGELOG in _docdir
|
|
|
06e69c |
|
|
|
06e69c |
* Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-1
|
|
|
06e69c |
- Initial package
|