|
|
72c49a |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
72c49a |
%{!?scl:%global pkg_name %{name}}
|
|
|
72c49a |
|
|
|
72c49a |
# Generated from activerecord-1.15.5.gem by gem2rpm -*- rpm-spec -*-
|
|
|
72c49a |
%global gem_name activerecord
|
|
|
72c49a |
|
|
|
72c49a |
Summary: Implements the ActiveRecord pattern for ORM
|
|
|
72c49a |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
72c49a |
Epoch: 1
|
|
|
72c49a |
Version: 4.1.5
|
|
|
cf260a |
Release: 2%{?dist}
|
|
|
72c49a |
Group: Development/Languages
|
|
|
72c49a |
License: MIT
|
|
|
72c49a |
URL: http://www.rubyonrails.org
|
|
|
72c49a |
Source0: http://rubygems.org/downloads/activerecord-%{version}.gem
|
|
|
72c49a |
# git clone http://github.com/rails/rails.git
|
|
|
72c49a |
# cd rails/activerecord/
|
|
|
72c49a |
# git checkout v4.1,5
|
|
|
72c49a |
# tar czvf activerecord-4.1.5-tests.tgz test/
|
|
|
72c49a |
Source1: activerecord-%{version}-tests.tgz
|
|
|
cf260a |
|
|
|
cf260a |
# Fix CVE-2016-0753 Possible Input Validation Circumvention
|
|
|
cf260a |
# https://bugzilla.redhat.com/show_bug.cgi?id=1301973
|
|
|
cf260a |
Patch0: rubygem-activerecord-4.1.14.1-CVE-2016-0753-fix-possible-input-validation-circumvention.patch
|
|
|
cf260a |
# Fix CVE-2015-7577 Nested attributes rejection proc bypass
|
|
|
cf260a |
# https://bugzilla.redhat.com/show_bug.cgi?id=1301957
|
|
|
cf260a |
Patch1: rubygem-activerecord-4.1.14.1-CVE-2015-7577-fix-nested-attributes-rejection-proc-bypass.patch
|
|
|
cf260a |
Patch2: rubygem-activerecord-4.1.14.1-CVE-2015-7577-fix-nested-attributes-rejection-proc-bypass-tests.patch
|
|
|
cf260a |
|
|
|
72c49a |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
72c49a |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
72c49a |
Requires: %{?scl_prefix}rubygem(activesupport) = %{version}
|
|
|
72c49a |
Requires: %{?scl_prefix}rubygem(activemodel) = %{version}
|
|
|
72c49a |
Requires: %{?scl_prefix}rubygem(arel) >= 5.0.0
|
|
|
72c49a |
Requires: %{?scl_prefix}rubygem(arel) < 6.0.0
|
|
|
72c49a |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
72c49a |
BuildRequires: %{?scl_prefix}rubygem(bcrypt)
|
|
|
72c49a |
BuildRequires: %{?scl_prefix}rubygem(activesupport) = %{version}
|
|
|
72c49a |
BuildRequires: %{?scl_prefix}rubygem(activemodel) = %{version}
|
|
|
72c49a |
BuildRequires: %{?scl_prefix}rubygem(sqlite3)
|
|
|
72c49a |
BuildRequires: %{?scl_prefix}rubygem(erubis)
|
|
|
72c49a |
BuildRequires: %{?scl_prefix}rubygem(mocha)
|
|
|
72c49a |
BuildRequires: %{?scl_prefix}rubygem(arel) >= 5.0.0
|
|
|
72c49a |
BuildRequires: %{?scl_prefix}rubygem(arel) < 6.0.0
|
|
|
72c49a |
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
|
|
|
72c49a |
BuildArch: noarch
|
|
|
72c49a |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
72c49a |
|
|
|
72c49a |
%description
|
|
|
72c49a |
Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database
|
|
|
72c49a |
tables and classes together for business objects, like Customer or
|
|
|
72c49a |
Subscription, that can find, save, and destroy themselves without resorting to
|
|
|
72c49a |
manual SQL.
|
|
|
72c49a |
|
|
|
72c49a |
%package doc
|
|
|
72c49a |
Summary: Documentation for %{pkg_name}
|
|
|
72c49a |
Group: Documentation
|
|
|
72c49a |
Requires: %{?scl_prefix}%{pkg_name} = %{epoch}:%{version}-%{release}
|
|
|
72c49a |
BuildArch: noarch
|
|
|
72c49a |
|
|
|
72c49a |
%description doc
|
|
|
72c49a |
Documentation for %{pkg_name}
|
|
|
72c49a |
|
|
|
72c49a |
%prep
|
|
|
72c49a |
%setup -n %{pkg_name}-%{version} -q -c -T
|
|
|
72c49a |
%{?scl:scl enable %scl - << \EOF}
|
|
|
72c49a |
%gem_install -n %{SOURCE0}
|
|
|
72c49a |
%{?scl:EOF}
|
|
|
72c49a |
|
|
|
72c49a |
pushd .%{gem_instdir}
|
|
|
72c49a |
tar xzvf %{SOURCE1}
|
|
|
cf260a |
%patch0 -p2
|
|
|
cf260a |
%patch1 -p2
|
|
|
cf260a |
%patch2 -p2
|
|
|
72c49a |
popd
|
|
|
72c49a |
|
|
|
72c49a |
%build
|
|
|
72c49a |
|
|
|
72c49a |
%install
|
|
|
72c49a |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
72c49a |
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
|
|
|
72c49a |
|
|
|
72c49a |
%check
|
|
|
72c49a |
pushd .%{gem_instdir}
|
|
|
72c49a |
|
|
|
72c49a |
# load_path is not available, remove its require.
|
|
|
72c49a |
sed -i '1,2d' test/cases/helper.rb
|
|
|
72c49a |
|
|
|
72c49a |
%{?scl:scl enable %scl - << \FOE}
|
|
|
72c49a |
# Fail with any test
|
|
|
72c49a |
set -e
|
|
|
72c49a |
ruby -I.:test:lib << EOF
|
|
|
72c49a |
|
|
|
72c49a |
test_files = Dir.glob( "test/cases/**/*_test.rb" )
|
|
|
72c49a |
test_files.reject! { |x| x =~ %r|/adapters/| }
|
|
|
72c49a |
|
|
|
72c49a |
# Only test sqlite3 backend
|
|
|
72c49a |
test_files += Dir.glob("test/cases/adapters/sqlite3/*_test.rb")
|
|
|
72c49a |
test_files.delete('test/cases/invalid_connection_test.rb') # uses MySQL
|
|
|
72c49a |
|
|
|
72c49a |
# To prevent a circular dependency w/ actionpack.
|
|
|
72c49a |
test_files.delete('test/cases/session_store/session_test.rb')
|
|
|
72c49a |
|
|
|
72c49a |
# Ensure that the tests run separately, they fail otherwise
|
|
|
72c49a |
test_files.each { |f| system("ruby -I.:test:lib #{f}") }
|
|
|
72c49a |
EOF
|
|
|
72c49a |
%{?scl:FOE}
|
|
|
72c49a |
|
|
|
72c49a |
popd
|
|
|
72c49a |
|
|
|
72c49a |
%files
|
|
|
72c49a |
%dir %{gem_instdir}
|
|
|
72c49a |
%{gem_libdir}
|
|
|
72c49a |
%doc %{gem_instdir}/MIT-LICENSE
|
|
|
72c49a |
%exclude %{gem_cache}
|
|
|
72c49a |
%{gem_spec}
|
|
|
72c49a |
|
|
|
72c49a |
%files doc
|
|
|
72c49a |
%doc %{gem_docdir}
|
|
|
72c49a |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
72c49a |
%doc %{gem_instdir}/README.rdoc
|
|
|
72c49a |
%doc %{gem_instdir}/examples
|
|
|
72c49a |
%{gem_instdir}/test
|
|
|
72c49a |
|
|
|
72c49a |
%changelog
|
|
|
cf260a |
* Wed Feb 10 2016 Pavel Valena <pvalena@redhat.com> - 1:4.1.5-2
|
|
|
cf260a |
- Fix possible input validation circumvention - rhbz#1301973
|
|
|
cf260a |
- Resolves: CVE-2016-0753
|
|
|
cf260a |
- Nested attributes rejection proc bypass - rhbz#1301957
|
|
|
cf260a |
- Resolves: CVE-2015-7577
|
|
|
cf260a |
|
|
|
72c49a |
* Thu Jan 22 2015 Josef Stribny <jstribny@redhat.com> - 1:4.1.5-1
|
|
|
72c49a |
- Update to 4.1.5
|
|
|
72c49a |
|
|
|
72c49a |
* Fri Aug 22 2014 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-5
|
|
|
72c49a |
- Fix CVE-2014-3514: vulnerability in the create_with
|
|
|
72c49a |
- Resolves: rhbz#1133531
|
|
|
72c49a |
|
|
|
72c49a |
* Wed Jul 09 2014 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-4
|
|
|
72c49a |
- Fix CVE-2014-3483 regression
|
|
|
72c49a |
- Related: rhbz#1115336
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Jul 03 2014 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-3
|
|
|
72c49a |
- Fix CVE-2014-3483
|
|
|
72c49a |
- Resolves: rhbz#1115336
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Feb 18 2014 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-2
|
|
|
72c49a |
- Fix CVE-2014-0080: PostgreSQL array data injection vulnerability
|
|
|
72c49a |
- Resolves: rhbz#1065585
|
|
|
72c49a |
|
|
|
72c49a |
* Wed Dec 04 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-1
|
|
|
72c49a |
- Update to ActiveRecord 4.0.2
|
|
|
72c49a |
- Resolves: rhbz#1037985
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Nov 21 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.1-1
|
|
|
72c49a |
- Update to ActiveRecord 4.0.1
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Oct 14 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-2
|
|
|
72c49a |
- Convert to scl
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Aug 01 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-1
|
|
|
72c49a |
- Update to ActiveRecord 4.0.0.
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Mar 19 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.13-1
|
|
|
72c49a |
- Update to ActiveRecord 3.2.13.
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Mar 04 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.12-2
|
|
|
72c49a |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Feb 12 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.12-1
|
|
|
72c49a |
- Update to ActiveRecord 3.2.12.
|
|
|
72c49a |
|
|
|
72c49a |
* Wed Jan 09 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.11-1
|
|
|
72c49a |
- Update to ActiveRecord 3.2.11.
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Jan 03 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.10-1
|
|
|
72c49a |
- Update to ActiveRecord 3.2.10.
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Aug 13 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.8-1
|
|
|
72c49a |
- Update to ActiveRecord 3.2.8.
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Jul 30 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.7-1
|
|
|
72c49a |
- Update to ActiveRecord 3.2.7.
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Jul 24 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.6-2
|
|
|
72c49a |
- Fixed missing epoch in -doc subpackage.
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Jul 19 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.6-1
|
|
|
72c49a |
- Update to ActiveRecord 3.2.6.
|
|
|
72c49a |
|
|
|
72c49a |
* Fri Jun 15 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.15-1
|
|
|
72c49a |
- Update to ActiveRecord 3.0.15.
|
|
|
72c49a |
|
|
|
72c49a |
* Fri Jun 01 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.13-1
|
|
|
72c49a |
- Update to ActiveRecord 3.0.13.
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Jan 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-1
|
|
|
72c49a |
- Rebuilt for Ruby 1.9.3.
|
|
|
72c49a |
- Update to ActionRecord 3.0.11
|
|
|
72c49a |
|
|
|
72c49a |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.10-2
|
|
|
72c49a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.10-1
|
|
|
72c49a |
- Update to ActiveRecord 3.0.10
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Jul 04 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.9-1
|
|
|
72c49a |
- Update to ActiveRecord 3.0.9
|
|
|
72c49a |
|
|
|
72c49a |
* Fri Mar 25 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.5-1
|
|
|
72c49a |
- Updated to ActiveRecord 3.0.5
|
|
|
72c49a |
|
|
|
72c49a |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.3-2
|
|
|
72c49a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Jan 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-1
|
|
|
72c49a |
- Update to rails 3
|
|
|
72c49a |
|
|
|
72c49a |
* Wed Sep 08 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-4
|
|
|
72c49a |
- Updated postgres fix to resolve security issue
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Aug 16 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-3
|
|
|
72c49a |
- Included postgres fix (patch also pushed upstream, see rails issue tracker)
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Aug 12 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-2
|
|
|
72c49a |
- Updated patch0 to correctly parse sqlite3 version
|
|
|
72c49a |
|
|
|
72c49a |
* Wed Aug 04 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-1
|
|
|
72c49a |
- Update to 2.3.8
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Jan 28 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.5-1
|
|
|
72c49a |
- Update to 2.3.5
|
|
|
72c49a |
|
|
|
72c49a |
* Wed Oct 7 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.4-2
|
|
|
72c49a |
- Bump Epoch to ensure upgrade path from F-11
|
|
|
72c49a |
|
|
|
72c49a |
* Fri Sep 18 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.4-1
|
|
|
72c49a |
- Update to 2.3.4
|
|
|
72c49a |
- Enable check
|
|
|
72c49a |
|
|
|
72c49a |
* Sun Jul 26 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.3-1
|
|
|
72c49a |
- New upstream version
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Mar 16 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.2-1
|
|
|
72c49a |
- New upstream version
|
|
|
72c49a |
|
|
|
72c49a |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
|
|
|
72c49a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Nov 24 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.2.2-1
|
|
|
72c49a |
- New upstream version
|
|
|
72c49a |
- Fixed rpmlint errors zero-length files and script-without-shebang
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Nov 20 2008 David Lutterkort <lutter@redhat.com> - 2.1.1-2
|
|
|
72c49a |
- Do not mark lib/ as doc
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Sep 16 2008 David Lutterkort <dlutter@redhat.com> - 2.1.1-1
|
|
|
72c49a |
- New version (fixes CVE-2008-4094)
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Jul 31 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.1.0-1
|
|
|
72c49a |
- New Upstream
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Apr 8 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-2
|
|
|
72c49a |
- Fix dependency
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Apr 07 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-1
|
|
|
72c49a |
- New version
|
|
|
72c49a |
|
|
|
72c49a |
* Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 2.0.1-1
|
|
|
72c49a |
- New version
|
|
|
72c49a |
|
|
|
72c49a |
* Thu Nov 29 2007 David Lutterkort <dlutter@redhat.com> - 1.15.6-1
|
|
|
72c49a |
- New version
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Nov 14 2007 David Lutterkort <dlutter@redhat.com> - 1.15.5-2
|
|
|
72c49a |
- Fix buildroot
|
|
|
72c49a |
- Properly mark docs in geminstdir
|
|
|
72c49a |
|
|
|
72c49a |
* Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.15.5-1
|
|
|
72c49a |
- Initial package
|