8a02e26
# Generated from activerecord-1.15.5.gem by gem2rpm -*- rpm-spec -*-
a89e8a2
%global gem_name activerecord
1dd6aab
8a02e26
Summary: Implements the ActiveRecord pattern for ORM
Josef Stribny f438a65
Name: rubygem-%{gem_name}
aa22f54
Epoch: 1
Josef Stribny 89538c4
Version: 4.2.1
Josef Stribny dddeeec
Release: 1%{?dist}
8a02e26
Group: Development/Languages
8a02e26
License: MIT
8a02e26
URL: http://www.rubyonrails.org
283a7cb
Source0: http://rubygems.org/downloads/activerecord-%{version}.gem
283a7cb
# git clone http://github.com/rails/rails.git
283a7cb
# cd rails/activerecord/
Josef Stribny 89538c4
# git checkout v4.2.1
Josef Stribny 89538c4
# tar czvf activerecord-4.2.1-tests.tgz test/
4769679
Source1: activerecord-%{version}-tests.tgz
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}
Josef Stribny f438a65
BuildRequires: rubygem(sqlite3)
Josef Stribny f438a65
BuildRequires: rubygem(erubis)
Josef Stribny f438a65
BuildRequires: rubygem(mocha)
Josef Stribny 241d801
BuildRequires: rubygem(arel) >= 6.0.0
Josef Stribny 241d801
BuildRequires: rubygem(arel) < 7.0.0
Josef Stribny f438a65
BuildRequires: rubygem(minitest)
Josef Stribny 6f3d41c
BuildRequires: rubygem(rack)
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
Josef Stribny f438a65
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}
a89e8a2
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
1dd6aab
1dd6aab
%check
a89e8a2
pushd .%{gem_instdir}
283a7cb
4769679
tar xzvf %{SOURCE1}
4769679
27fead4
# load_path is not available, remove its require.
27fead4
sed -i '1,2d' test/cases/helper.rb
27fead4
Josef Stribny 241d801
# Fail with any test
Josef Stribny 241d801
set -e
Josef Stribny 241d801
5a5bf51
ruby -I.:test:lib << EOF
Josef Stribny 35e9459
  test_files = Dir.glob( "test/cases/**/*_test.rb" ).sort
4769679
  test_files.reject! { |x| x =~ %r|/adapters/| }
4769679
4769679
  # Only test sqlite3 backend
Josef Stribny 35e9459
  test_files += Dir.glob("test/cases/adapters/sqlite3/*_test.rb").sort
Josef Stribny 2d9c15c
  test_files.delete('test/cases/invalid_connection_test.rb') # uses MySQL
4769679
4769679
  # To prevent a circular dependency w/ actionpack.
4769679
  test_files.delete('test/cases/session_store/session_test.rb')
4769679
Josef Stribny 9b22592
  # Running separatelly works
Josef Stribny 9b22592
  test_files.delete('test/cases/calculations_test.rb')
Josef Stribny 9b22592
Josef Stribny 241d801
  # Ensure that the tests run separately, they fail otherwise
Josef Stribny 241d801
  test_files.each { |f| system("ruby -I.:test:lib #{f}") }
4769679
EOF
283a7cb
a89e8a2
popd
1dd6aab
8a02e26
%files
a89e8a2
%dir %{gem_instdir}
a89e8a2
%{gem_libdir}
4769679
%doc %{gem_instdir}/MIT-LICENSE
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
4769679
%doc %{gem_instdir}/examples
4769679
8a02e26
%changelog
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
8a02e26
* Tue 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