Blame SPECS/rubygem-activesupport.spec

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