8a02e26
# Generated from activerecord-1.15.5.gem by gem2rpm -*- rpm-spec -*-
a89e8a2
%global gem_name activerecord
1dd6aab
Josef Stribny f438a65
Name: rubygem-%{gem_name}
aa22f54
Epoch: 1
f534944
Version: 5.0.1
7043b6f
Release: 2%{?dist}
18a497d
Summary: Object-relational mapper framework (part of Rails)
8a02e26
Group: Development/Languages
8a02e26
License: MIT
18a497d
URL: http://rubyonrails.org
18a497d
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
283a7cb
# git clone http://github.com/rails/rails.git
283a7cb
# cd rails/activerecord/
f534944
# git checkout v5.0.1 && tar czvf activerecord-5.0.1-tests.tgz test/
4769679
Source1: activerecord-%{version}-tests.tgz
f534944
f534944
# Fixnum and Bignum are deprecated in Ruby trunk
f534944
# https://github.com/rails/rails/pull/26732
f534944
Patch0: rubygem-activerecord-5.0.1-Fixnum-and-Bignum-are-deprecated-in-Ruby-trunk.patch
f534944
7043b6f
# Fix unstable ReflectionTest#test_read_attribute_names test.
7043b6f
# https://github.com/rails/rails/pull/26124
7043b6f
Patch1: activerecord-5.0.1-Creating-a-new-Topic-class-instead-of-class_eval.patch
7043b6f
18a497d
# Database dump/load reuires the executable.
18a497d
Suggests: %{_bindir}/sqlite3
Josef Stribny f438a65
BuildRequires: rubygems-devel
Josef Stribny 6f3d41c
BuildRequires: rubygem(bcrypt)
Josef Stribny f438a65
BuildRequires: rubygem(activesupport) = %{version}
Josef Stribny f438a65
BuildRequires: rubygem(activemodel)   = %{version}
18a497d
BuildRequires: rubygem(builder)
Josef Stribny f438a65
BuildRequires: rubygem(sqlite3)
Josef Stribny f438a65
BuildRequires: rubygem(erubis)
Josef Stribny f438a65
BuildRequires: rubygem(mocha)
18a497d
BuildRequires: rubygem(arel) >= 7.0.0
18a497d
BuildRequires: rubygem(arel) < 8.0.0
Josef Stribny 6f3d41c
BuildRequires: rubygem(rack)
c313c35
BuildRequires: %{_bindir}/sqlite3
8a02e26
BuildArch: noarch
8a02e26
8a02e26
%description
8a02e26
Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database
8a02e26
tables and classes together for business objects, like Customer or
8a02e26
Subscription, that can find, save, and destroy themselves without resorting to
8a02e26
manual SQL.
8a02e26
4769679
%package doc
Josef Stribny f438a65
Summary: Documentation for %{name}
4769679
Group: Documentation
Josef Stribny f438a65
Requires: %{name} = %{epoch}:%{version}-%{release}
4769679
BuildArch: noarch
8a02e26
4769679
%description doc
18a497d
Documentation for %{name}.
8a02e26
4769679
%prep
Josef Stribny b750f71
gem unpack %{SOURCE0}
Josef Stribny b750f71
%setup -q -D -T -n  %{gem_name}-%{version}
Josef Stribny b750f71
Josef Stribny b750f71
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
Josef Stribny b750f71
1dd6aab
%build
Josef Stribny b750f71
gem build %{gem_name}.gemspec
Josef Stribny b750f71
%gem_install
Josef Stribny b750f71
1dd6aab
1dd6aab
%install
a89e8a2
mkdir -p %{buildroot}%{gem_dir}
18a497d
cp -a .%{gem_dir}/* \
18a497d
        %{buildroot}%{gem_dir}/
1dd6aab
1dd6aab
%check
a89e8a2
pushd .%{gem_instdir}
283a7cb
4769679
tar xzvf %{SOURCE1}
4769679
f534944
patch -p2 < %{PATCH0}
7043b6f
patch -p2 < %{PATCH1}
f534944
18a497d
# Disable unstable tests.
18a497d
# https://github.com/rails/rails/issues/25774
18a497d
sed -i '/^  def test_preconfigured_includes_with_has_many_and_habtm$/,/^  end$/ s/^/#/' \
18a497d
  test/cases/associations/eager_test.rb
18a497d
sed -i '/^  def test_has_one_through_polymorphic_with_primary_key_option$/,/^  end$/ s/^/#/' \
18a497d
  test/cases/associations/has_one_through_associations_test.rb
18a497d
sed -i '/^  def test_has_many_through_polymorphic_with_primary_key_option$/,/^  end$/ s/^/#/' \
18a497d
  test/cases/associations/has_many_through_associations_test.rb
18a497d
sed -i '/^  def test_create_resets_cached_counters$/,/^  end$/ s/^/#/' \
18a497d
  test/cases/associations/has_many_associations_test.rb
18a497d
sed -i '/^  def test_do_not_call_callbacks_for_delete_all$/,/^  end$/ s/^/#/' \
18a497d
  test/cases/associations/has_many_associations_test.rb
18a497d
sed -i '/^  def test_find_queries_with_cache_multi_record$/,/^  end$/ s/^/#/' \
18a497d
  test/cases/associations/has_many_associations_test.rb
18a497d
sed -i '/^      def test_add_column_with_timestamp_type$/,/^      end$/ s/^/#/' \
18a497d
  test/cases/migration/change_schema_test.rb
18a497d
sed -i '/^  def test_do_not_call_callbacks_for_delete_all$/,/^  end$/ s/^/#/' \
18a497d
  test/cases/query_cache_test.rb
18a497d
sed -i '/^    def test_raises_an_error_when_called_with_protected_environment$/,/^    end$/ s/^/#/' \
18a497d
  test/cases/tasks/database_tasks_test.rb
18a497d
sed -i '/^class FoxyFixturesTest < ActiveRecord::TestCase/,/^end$/ s/^/#/' \
18a497d
  test/cases/fixtures_test.rb
18a497d
18a497d
ruby -Itest:lib <
18a497d
  test_files = Dir.glob( "./test/cases/**/*_test.rb" )
4769679
  test_files.reject! { |x| x =~ %r|/adapters/| }
4769679
4769679
  # Only test sqlite3 backend
18a497d
  test_files += Dir.glob("./test/cases/adapters/sqlite3/*_test.rb")
Josef Stribny 9b22592
Josef Stribny 2ee81bb
  test_files.sort.each { |f| require f }
4769679
EOF
283a7cb
a89e8a2
popd
1dd6aab
8a02e26
%files
a89e8a2
%dir %{gem_instdir}
18a497d
%license %{gem_instdir}/MIT-LICENSE
a89e8a2
%{gem_libdir}
27fead4
%exclude %{gem_cache}
a89e8a2
%{gem_spec}
8a02e26
4769679
%files doc
4769679
%doc %{gem_docdir}
4769679
%doc %{gem_instdir}/CHANGELOG.md
4769679
%doc %{gem_instdir}/README.rdoc
18a497d
%{gem_instdir}/examples
4769679
8a02e26
%changelog
7043b6f
* Tue Jan 24 2017 Vít Ondruch <vondruch@redhat.com> - 1:5.0.1-2
7043b6f
- Fix unstable ReflectionTest#test_read_attribute_names test.
7043b6f
f534944
* Mon Jan 02 2017 Pavel Valena <pvalena@redhat.com> - 1:5.0.1-1
f534944
- Update to Active Record 5.0.1.
f534944
- Fix warnings: Fixnum and Bignum are deprecated in Ruby trunk
f534944
458d75b
* Mon Aug 15 2016 Pavel Valena <pvalena@redhat.com> - 1:5.0.0.1-1
458d75b
- Update to Activerecord 5.0.0.1
458d75b
18a497d
* Thu Jul 07 2016 Vít Ondruch <vondruch@redhat.com> - 1:5.0.0-1
18a497d
- Update to ActiveRecord 5.0.0.
18a497d
e1ca736
* Tue Mar 08 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.6-1
e1ca736
- Update to activerecord 4.2.6
e1ca736
123c3c0
* Wed Mar 02 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.5.2-1
123c3c0
- Update to activerecord 4.2.5.2
c313c35
- Add sqlite3 executable to BR
123c3c0
8b9d4be
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.2.5.1-2
8b9d4be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8b9d4be
aad1ec4
* Tue Jan 26 2016 Pavel Valena <pvalena@redhat.com> - 1:4.2.5.1-1
aad1ec4
- Update to activerecord 4.2.5.1
aad1ec4
6312355
* Wed Nov 18 2015 Pavel Valena <pvalena@redhat.com> - 1:4.2.5-1
6312355
- Update to activerecord 4.2.5
6312355
Josef Stribny ff43676
* Wed Aug 26 2015 Josef Stribny <jstribny@redhat.com> - 1:4.2.4-1
Josef Stribny ff43676
- Update to activerecord 4.2.4
Josef Stribny ff43676
Josef Stribny 59b17c0
* Tue Jun 30 2015 Josef Stribny <jstribny@redhat.com> - 1:4.2.3-1
Josef Stribny 59b17c0
- Update to activerecord 4.2.3
Josef Stribny 59b17c0
Josef Stribny 4ab0402
* Mon Jun 22 2015 Josef Stribny <jstribny@redhat.com> - 1:4.2.2-1
Josef Stribny 4ab0402
- Update to activerecord 4.2.2
Josef Stribny 4ab0402
c314da6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.2.1-2
c314da6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c314da6
Josef Stribny 89538c4
* Fri Mar 20 2015 Josef Stribny <jstribny@redhat.com> - 1:4.2.1-1
Josef Stribny 89538c4
- Update to activerecord 4.2.1
Josef Stribny 89538c4
Josef Stribny 241d801
* Mon Feb 09 2015 Josef Stribny <jstribny@redhat.com> - 1:4.2.0-1
Josef Stribny 241d801
- Update to activerecord 4.2.0
Josef Stribny 241d801
Josef Stribny 66ce26e
* Mon Aug 25 2014 Josef Stribny <jstribny@redhat.com> - 4.1.5-1
Josef Stribny 66ce26e
- Update to activerecord 4.1.5
Josef Stribny 66ce26e
Josef Stribny dddeeec
* Fri Jul 04 2014 Josef Stribny <jstribny@redhat.com> - 4.1.4-1
Josef Stribny dddeeec
- Update to activerecord 4.1.4
Josef Stribny dddeeec
4f64aaa
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.1.1-2
4f64aaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4f64aaa
Josef Stribny 35e9459
* Thu May 22 2014 Josef Stribny <jstribny@redhat.com> - 1:4.1.1-1
Josef Stribny 35e9459
- Update to ActiveRecord 4.1.1
Josef Stribny 35e9459
Josef Stribny 6f3d41c
* Thu Apr 17 2014 Josef Stribny <jstribny@redhat.com> - 1:4.1.0-2
Josef Stribny 6f3d41c
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
Josef Stribny 6f3d41c
Josef Stribny 9b22592
* Fri Apr 11 2014 Josef Stribny <jstribny@redhat.com> - 1:4.1.0-1
Josef Stribny 9b22592
- Update to ActiveRecord 4.1.0
Josef Stribny 9b22592
Josef Stribny dcb76e8
* Wed Feb 26 2014 Josef Stribny <jstribny@redhat.com> - 1:4.0.3-1
Josef Stribny dcb76e8
- Update to ActiveRecord 4.0.3
Josef Stribny dcb76e8
Josef Stribny b750f71
* Wed Dec 11 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-2
Josef Stribny b750f71
- Enable tests
Josef Stribny b750f71
- Patch for new sqlite
Josef Stribny b750f71
Josef Stribny d770e5b
* Thu Dec 05 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.2-1
Josef Stribny d770e5b
- Update to ActiveRecord 4.0.2
Josef Stribny 9034f11
- Disable tests
Josef Stribny d770e5b
Josef Stribny f438a65
* Thu Nov 21 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.1-2
Josef Stribny f438a65
- Fix: this shouldn't be scl spec
Josef Stribny f438a65
Josef Stribny 2d9c15c
* Mon Nov 11 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.1-1
Josef Stribny 2d9c15c
- Update to ActiveRecord 4.0.1
Josef Stribny 2d9c15c
Josef Stribny 2d9c15c
* Fri Oct 04 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-2
Josef Stribny 2d9c15c
- Convert to scl
Josef Stribny 2d9c15c
Josef Stribny e45b5bc
* Thu Aug 01 2013 Josef Stribny <jstribny@redhat.com> - 1:4.0.0-1
Josef Stribny e45b5bc
- Update to ActiveRecord 4.0.0.
3cf5661
6c58514
* Tue Mar 19 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.13-1
6c58514
- Update to ActiveRecord 3.2.13.
6c58514
fce32bb
* Mon Mar 04 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.12-2
fce32bb
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
fce32bb
65823e4
* Tue Feb 12 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.12-1
65823e4
- Update to ActiveRecord 3.2.12.
65823e4
9afa9e4
* Wed Jan 09 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.11-1
9afa9e4
- Update to ActiveRecord 3.2.11.
9afa9e4
bbb9e28
* Thu Jan 03 2013 Vít Ondruch <vondruch@redhat.com> - 1:3.2.10-1
bbb9e28
- Update to ActiveRecord 3.2.10.
bbb9e28
aa5f23e
* Mon Aug 13 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.8-1
aa5f23e
- Update to ActiveRecord 3.2.8.
aa5f23e
6de845f
* Mon Jul 30 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.7-1
6de845f
- Update to ActiveRecord 3.2.7.
6de845f
b8beba2
* Tue Jul 24 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.6-2
b8beba2
- Fixed missing epoch in -doc subpackage.
b8beba2
4769679
* Thu Jul 19 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.2.6-1
4769679
- Update to ActiveRecord 3.2.6.
4769679
ebfbb96
* Fri Jun 15 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.15-1
ebfbb96
- Update to ActiveRecord 3.0.15.
ebfbb96
27fead4
* Fri Jun 01 2012 Vít Ondruch <vondruch@redhat.com> - 1:3.0.13-1
27fead4
- Update to ActiveRecord 3.0.13.
27fead4
a89e8a2
* Tue Jan 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-1
a89e8a2
- Rebuilt for Ruby 1.9.3.
27fead4
- Update to ActionRecord 3.0.11
a89e8a2
d9a10ad
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.10-2
d9a10ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d9a10ad
4212061
* Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.10-1
4212061
- Update to ActiveRecord 3.0.10
4212061
54819ad
* Mon Jul 04 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.9-1
54819ad
- Update to ActiveRecord 3.0.9
54819ad
642a1f7
* Fri Mar 25 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.5-1
642a1f7
- Updated to ActiveRecord 3.0.5
642a1f7
9c6e660
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.3-2
9c6e660
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9c6e660
283a7cb
* Mon Jan 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-1
283a7cb
- Update to rails 3
283a7cb
611b284
* Wed Sep 08 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-4
611b284
- Updated postgres fix to resolve security issue
611b284
b800795
* Mon Aug 16 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-3
b800795
- Included postgres fix (patch also pushed upstream, see rails issue tracker)
b800795
b800795
* Thu Aug 12 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-2
b800795
- Updated patch0 to correctly parse sqlite3 version
b800795
b800795
* Wed Aug 04 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-1
b800795
- Update to 2.3.8
b800795
4ce3824
* Thu Jan 28 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.5-1
4ce3824
- Update to 2.3.5
4ce3824
aa22f54
* Wed Oct  7 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.4-2
aa22f54
- Bump Epoch to ensure upgrade path from F-11
aa22f54
1dd6aab
* Fri Sep 18 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.4-1
1dd6aab
- Update to 2.3.4
1dd6aab
- Enable check
1dd6aab
5c628a4
* Sun Jul 26 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.3-1
5c628a4
- New upstream version
5c628a4
bacb6b7
* Mon Mar 16 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.2-1
bacb6b7
- New upstream version
bacb6b7
837df6b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
837df6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
837df6b
cc6d25e
* Mon Nov 24 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 2.2.2-1
cc6d25e
- New upstream version
cc6d25e
- Fixed rpmlint errors zero-length files and script-without-shebang
cc6d25e
6f9db8f
* Thu Nov 20 2008 David Lutterkort <lutter@redhat.com> - 2.1.1-2
6f9db8f
- Do not mark lib/ as doc
6f9db8f
6f9db8f
* Tue Sep 16 2008 David Lutterkort <dlutter@redhat.com> - 2.1.1-1
950a022
- New version (fixes CVE-2008-4094)
950a022
789c32b
* Thu Jul 31 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.1.0-1
789c32b
- New Upstream
789c32b
31182b1
* Tue Apr  8 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-2
31182b1
- Fix dependency
31182b1
db0096e
* Mon Apr 07 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-1
db0096e
- New version
db0096e
279fc74
* Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 2.0.1-1
279fc74
- New version
279fc74
8a02e26
* Thu Nov 29 2007 David Lutterkort <dlutter@redhat.com> - 1.15.6-1
8a02e26
- New version
8a02e26
Josef Stribny 2ee81bb
* Wed Nov 14 2007 David Lutterkort <dlutter@redhat.com> - 1.15.5-2
8a02e26
- Fix buildroot
8a02e26
- Properly mark docs in geminstdir
8a02e26
8a02e26
* Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.15.5-1
8a02e26
- Initial package