Blame SPECS/rubygem-activesupport.spec

72d67b
%{?scl:%scl_package rubygem-%{gem_name}}
72d67b
%{!?scl:%global pkg_name %{name}}
72d67b
72d67b
%global gem_name activesupport
72d67b
72d67b
Summary: A support libraries and Ruby core extensions extracted from the Rails framework
72d67b
Name: %{?scl_prefix}rubygem-%{gem_name}
72d67b
Epoch: 1
72d67b
Version: 5.0.1
72d67b
Release: 3%{?dist}
72d67b
Group: Development/Languages
72d67b
License: MIT
72d67b
URL: http://rubyonrails.org
72d67b
72d67b
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
72d67b
72d67b
# The activesupport gem doesn't ship with the test suite like the other
72d67b
# Rails rpms, you may check it out like so
72d67b
# git clone http://github.com/rails/rails.git
72d67b
# cd rails/activesupport/
72d67b
# git checkout v5.0.1 && tar czvf activesupport-5.0.1-tests.tgz test/
72d67b
Source1: %{gem_name}-%{version}-tests.tgz
72d67b
72d67b
# Make the test which needs online access optional.
72d67b
# https://github.com/rails/rails/pull/25678
72d67b
Patch1: rubygem-activesupport-5.0.0-DRY-Downloader.patch
72d67b
Patch2: rubygem-activesupport-5.0.0-Skip-the-test-if-test-data-download-fails.patch
72d67b
72d67b
# Fixnum and Bignum are deprecated in Ruby trunk
72d67b
# https://github.com/rails/rails/pull/26732
72d67b
Patch3: rubygem-activesupport-5.0.1-Fixnum-and-Bignum-are-deprecated-in-Ruby-trunk.patch
72d67b
Patch4: rubygem-activesupport-5.0.1-Fixnum-and-Bignum-are-deprecated-in-Ruby-trunk-tests.patch
72d67b
72d67b
# Fix parsing decimal on Ruby 2.4.
72d67b
# https://github.com/rails/rails/commit/b3d8117
72d67b
Patch5: rubygem-activesupport-5.0.1-parsing-decimal.patch
72d67b
72d67b
# Fix duplicable on Ruby 2.4.
72d67b
# https://github.com/rails/rails/commit/89fcd13
72d67b
Patch6: rubygem-activesupport-5.0.1-duplicable.patch
72d67b
Patch7: rubygem-activesupport-5.0.1-duplicable-tests.patch
72d67b
72d67b
# Fix duplicable symbol on Ruby 2.4.
72d67b
# https://github.com/rails/rails/commit/2badd55
72d67b
Patch8: rubygem-activesupport-5.0.1-duplicable-symbol.patch
72d67b
Patch9: rubygem-activesupport-5.0.1-duplicable-symbol-tests.patch
72d67b
72d67b
# Fix iso8601 output on Ruby 2.4.
72d67b
# https://github.com/rails/rails/commit/c784102
72d67b
Patch10: rubygem-activesupport-5.0.1-iso8601_output.patch
72d67b
72d67b
# Fix Fixnum deprecated warning in Ruby 2.4+
72d67b
# https://github.com/rails/rails/commit/598f10c
72d67b
Patch11: rubygem-activesupport-5.0.1-Fix-Fixnum-duration-test.patch
72d67b
72d67b
# Remove Bignum deprecated warning in Ruby 2.4+
72d67b
# https://github.com/rails/rails/commit/8683ac5
72d67b
Patch12: rubygem-activesupport-5.0.1-remove-warning-from-Bignum.patch
72d67b
72d67b
# ruby package has just soft dependency on rubygem(bigdecimal), while
72d67b
# ActiveSupport always requires it.
72d67b
Requires: %{?scl_prefix_ruby}rubygem(bigdecimal)
72d67b
72d67b
# Let's keep Requires and BuildRequires sorted alphabeticaly
72d67b
Requires: %{?scl_prefix_ruby}ruby(release)
72d67b
Requires: %{?scl_prefix_ruby}ruby(rubygems)
72d67b
Requires: %{?scl_prefix}rubygem(i18n) >= 0.7
72d67b
Requires: %{?scl_prefix}rubygem(i18n) < 1
72d67b
Requires: %{?scl_prefix_ruby}rubygem(json)
72d67b
Requires: %{?scl_prefix_ruby}rubygem(minitest) >= 5.1
72d67b
Requires: %{?scl_prefix_ruby}rubygem(minitest) < 6
72d67b
Requires: %{?scl_prefix}rubygem(tzinfo) >= 1.1
72d67b
Requires: %{?scl_prefix}rubygem(tzinfo) < 2
72d67b
Requires: %{?scl_prefix}rubygem(concurrent-ruby)
72d67b
BuildRequires: %{?scl_prefix_ruby}ruby(release)
72d67b
BuildRequires: %{?scl_prefix_ruby}ruby(rubygems)
72d67b
BuildRequires: %{?scl_prefix_ruby}ruby
72d67b
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
72d67b
BuildRequires: %{?scl_prefix_ruby}rubygem(bigdecimal)
72d67b
BuildRequires: %{?scl_prefix}rubygem(builder)
72d67b
BuildRequires: %{?scl_prefix}rubygem(concurrent-ruby)
72d67b
BuildRequires: %{?scl_prefix}rubygem(dalli)
72d67b
BuildRequires: %{?scl_prefix}rubygem(i18n) >= 0.6.9
72d67b
BuildRequires: %{?scl_prefix}rubygem(i18n) < 1.0
72d67b
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) >= 5.0.0
72d67b
BuildRequires: %{?scl_prefix}rubygem(rack)
72d67b
BuildRequires: %{?scl_prefix}rubygem(tzinfo) >= 1.1
72d67b
BuildRequires: %{?scl_prefix}rubygem(tzinfo) < 2.0
72d67b
BuildArch: noarch
72d67b
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
72d67b
72d67b
# Explicitly require runtime subpackage, as long as older scl-utils do not generate it
72d67b
%{?scl:Requires: %{?scl_prefix}runtime}
72d67b
72d67b
72d67b
%description
72d67b
A toolkit of support libraries and Ruby core extensions extracted from the
72d67b
Rails framework. Rich support for multibyte strings, internationalization,
72d67b
time zones, and testing.
72d67b
72d67b
%package doc
72d67b
Summary: Documentation for %{pkg_name}
72d67b
Group: Documentation
72d67b
Requires: %{?scl_prefix}%{pkg_name} = %{epoch}:%{version}-%{release}
72d67b
BuildArch: noarch
72d67b
72d67b
%description doc
72d67b
Documentation for %{pkg_name}.
72d67b
72d67b
%prep
72d67b
%setup -n %{pkg_name}-%{version} -q -c -T
72d67b
%{?scl:scl enable %{scl} - << \EOF}
72d67b
set -e
72d67b
%gem_install -n %{SOURCE0}
72d67b
pushd .%{gem_instdir}
72d67b
%patch3 -p2
72d67b
%patch5 -p2
72d67b
%patch6 -p2
72d67b
%patch8 -p2
72d67b
popd
72d67b
%{?scl:EOF}
72d67b
72d67b
%build
72d67b
72d67b
%install
72d67b
mkdir -p %{buildroot}%{gem_dir}
72d67b
cp -a .%{gem_dir}/* \
72d67b
        %{buildroot}%{gem_dir}/
72d67b
72d67b
%check
72d67b
pushd .%{gem_instdir}
72d67b
# Move the tests into place
72d67b
tar xzvf %{SOURCE1}
72d67b
72d67b
cat %{PATCH1} | patch -p2
72d67b
cat %{PATCH2} | patch -p2
72d67b
patch -p2 < %{PATCH4}
72d67b
cat %{PATCH7} | patch -p2
72d67b
cat %{PATCH9} | patch -p2
72d67b
cat %{PATCH10} | patch -p2
72d67b
cat %{PATCH11} | patch -p2
72d67b
cat %{PATCH12} | patch -p2
72d67b
72d67b
# These tests are really unstable, but they seems to be passing upstream :/
72d67b
for f in test/evented_file_update_checker_test.rb test/file_update_checker_test.rb; do
72d67b
  mv $f{,.disable}
72d67b
done
72d67b
72d67b
# These seems to be unstable as well ...
72d67b
# https://github.com/rails/rails/issues/25683
72d67b
sed -i '/^class MemoryStoreTest/,/^end/ s/^/#/' test/caching_test.rb
72d67b
# https://github.com/rails/rails/issues/25682
72d67b
sed -i '/def test_iso8601_output_and_reparsing$/,/^  end$/ s/^/#/' test/core_ext/duration_test.rb
72d67b
72d67b
%{?scl:scl enable %{scl} - << \EOF}
72d67b
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
72d67b
%{?scl:EOF}
72d67b
popd
72d67b
72d67b
%files
72d67b
# There is no %%license macro on RHEL6.
72d67b
# https://bugzilla.redhat.com/show_bug.cgi?id=1386246
72d67b
%{!?_licensedir:%global license %%doc}
72d67b
72d67b
%dir %{gem_instdir}
72d67b
%license %{gem_instdir}/MIT-LICENSE
72d67b
%{gem_libdir}
72d67b
%exclude %{gem_cache}
72d67b
%{gem_spec}
72d67b
72d67b
%files doc
72d67b
%doc %{gem_docdir}
72d67b
%doc %{gem_instdir}/CHANGELOG.md
72d67b
%doc %{gem_instdir}/README.rdoc
72d67b
72d67b
%changelog
72d67b
* Tue Feb 14 2017 Jun Aruga <jaruga@redhat.com> - 1:5.0.1-3
72d67b
- Fix Fixnum/Bignum deprecated warning for Ruby 2.4.0.
72d67b
72d67b
* Thu Jan 12 2017 Jun Aruga <jaruga@redhat.com> - 1:5.0.1-2
72d67b
- Update Requires rubygem-json for SCL rh-ruby24.
72d67b
72d67b
* Thu Jan 12 2017 Jun Aruga <jaruga@redhat.com> - 1:5.0.1-1
72d67b
- Update to Active Support 5.0.1.
72d67b
- Fix warnings: Fixnum and Bignum are deprecated in Ruby trunk
72d67b
- Fix Ruby 2.4.0 compatibility.
72d67b
72d67b
* Mon Apr 04 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.6-1
72d67b
- Update to 4.2.6
72d67b
72d67b
* Mon Feb 29 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.5.1-4
72d67b
- Remove unused patch
72d67b
72d67b
* Wed Feb 17 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.5.1-3
72d67b
- Update to 4.2.5.1
72d67b
72d67b
* Tue Feb 16 2016 Pavel Valena <pvalena@redhat.com> - 1:4.1.5-3
72d67b
- Fix offset in patch for CVE-2016-0753
72d67b
72d67b
* Wed Feb 10 2016 Pavel Valena <pvalena@redhat.com> - 1:4.1.5-2
72d67b
- Fix possible input validation circumvention - rhbz#1301973
72d67b
  - Resolves: CVE-2016-0753
72d67b
- Fix Timing attack vulnerability in basic authentication - rhbz#1301933
72d67b
  - Resolves: CVE-2015-7576
72d67b
72d67b
* Mon Jan 19 2015 Josef Stribny <jstribny@redhat.com> - 1:4.1.5-1
72d67b
- Update to 4.1.5
72d67b
72d67b
* Fri Jan 31 2014 Vít Ondruch <vondruch@redhat.com> - 1:4.0.2-3
72d67b
- Remove unneeded patch.
72d67b
72d67b
* Thu Jan 23 2014 Vít Ondruch <vondruch@redhat.com> - 1:4.0.2-2
72d67b
- Fix minitest dependency.
72d67b
72d67b
* Wed Dec 04 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-1
72d67b
- Update to ActionSupport 4.0.2
72d67b
  - Resolves: rhbz#1037985
72d67b
72d67b
* Thu Nov 21 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.1-1
72d67b
- Update to ActiveSupport 4.0.1
72d67b
72d67b
* Thu Oct 17 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-2
72d67b
- Add missing minitest runtime dep
72d67b
72d67b
* Thu Oct 03 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-1
72d67b
- Update to ActiveSupport 4.0.0.
72d67b
72d67b
* Fri Jun 07 2013 Josef Stribny <jstribny@redhat.com> - 1:3.2.13-1
72d67b
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
72d67b
- Update to ActiveSupport 3.2.13.
72d67b
72d67b
* Wed Feb 27 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.8-4
72d67b
- Rebuild to fix documentation vulnerability due to CVE-2013-0256.
72d67b
72d67b
* Thu Jan 10 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.8-3
72d67b
- Fix for CVE-2013-0156.
72d67b
72d67b
* Thu Oct 04 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.8-2
72d67b
- Fix name given to %%scl_package.
72d67b
72d67b
* Tue Sep 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.8-1
72d67b
- Update to ActiveSupport 3.2.8.
72d67b
72d67b
* Tue Jul 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.6-3
72d67b
- Remove the cached gem.
72d67b
72d67b
* Wed Jul 25 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.6-2
72d67b
- Recreated for SCL from Fedora again.
72d67b
72d67b
* Wed Jul 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.2.6-1
72d67b
- Update to ActiveSupport 3.2.6.
72d67b
- Removed unneeded BuildRoot tag.
72d67b
- Tests no longer fail with newer versions of Mocha, remove workaround.
72d67b
72d67b
* Fri Jun 15 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.15-1
72d67b
- Update to ActiveSupport 3.0.15.
72d67b
72d67b
* Fri Jun 01 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.13-1
72d67b
- Update to ActiveSupport 3.0.13.
72d67b
72d67b
* Wed Apr 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-5
72d67b
- Add the bigdecimal dependency to gemspec.
72d67b
72d67b
* Fri Mar 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-4
72d67b
- The CVE patch name now contains the CVE id.
72d67b
72d67b
* Mon Mar 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-3
72d67b
- Patch for CVE-2012-1098
72d67b
72d67b
* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-1
72d67b
- Rebuilt for Ruby 1.9.3.
72d67b
- Update to ActiveSupport 3.0.11.
72d67b
72d67b
* Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.10-1
72d67b
- Update to ActiveSupport 3.0.10
72d67b
72d67b
* Fri Jul 01 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.9-1
72d67b
- Update to ActiveSupport 3.0.9
72d67b
- Changed %%define into %%global
72d67b
- Removed unnecessary %%clean section
72d67b
72d67b
* Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-3
72d67b
- Reverting accidental change adding a few gem flags
72d67b
72d67b
* Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-2
72d67b
- Include fix for CVE-2011-2197
72d67b
72d67b
* Thu Mar 24 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.5-1
72d67b
- Update to ActiveSupport 3.0.5
72d67b
- Remove Rake dependnecy
72d67b
72d67b
* Mon Feb 14 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-4
72d67b
- fix bad dates in the spec changelog
72d67b
72d67b
* Thu Feb 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-3
72d67b
- include i18n runtime dependency
72d67b
72d67b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.3-2
72d67b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
72d67b
72d67b
* Mon Jan 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-1
72d67b
- update to rails 3
72d67b
72d67b
* Wed Aug 25 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-2
72d67b
- bumped version
72d67b
72d67b
* Wed Aug 04 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-1
72d67b
- Update to 2.3.8
72d67b
- Added check section with rubygem-mocha dependency
72d67b
- Added upsteam Rakefile and test suite to run tests
72d67b
72d67b
* Thu Jan 28 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.5-1
72d67b
- Update to 2.3.5
72d67b
72d67b
* Wed Oct  7 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.4-2
72d67b
- Bump Epoch to ensure upgrade path from F-11
72d67b
72d67b
* Mon Sep 7 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.4-1
72d67b
- Update to 2.3.4 (bug 520843, CVE-2009-3009)
72d67b
72d67b
* Sun Jul 26 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.3-1
72d67b
- New upstream version
72d67b
72d67b
* Mon Mar 16 2009 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.3.2-1
72d67b
- New upstream version
72d67b
72d67b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
72d67b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
72d67b
72d67b
* Mon Nov 24 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.2.2-1
72d67b
- New upstream version
72d67b
72d67b
* Tue Sep 16 2008 David Lutterkort <dlutter@redhat.com> - 2.1.1-1
72d67b
- New version (fixes CVE-2008-4094)
72d67b
72d67b
* Thu Jul 31 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.1.0-1
72d67b
- New Upstream
72d67b
72d67b
* Mon Apr 07 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-1
72d67b
- New version
72d67b
72d67b
* Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 2.0.1-1
72d67b
- New version
72d67b
72d67b
* Wed Nov 28 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-3
72d67b
- Fix buildroot
72d67b
72d67b
* Tue Nov 14 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-2
72d67b
- Install README and CHANGELOG in _docdir
72d67b
72d67b
* Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.4.4-1
72d67b
- Initial package