8a02e26
# Generated from activerecord-1.15.5.gem by gem2rpm -*- rpm-spec -*-
a89e8a2
%global gem_name activerecord
a89e8a2
%global rubyabi 1.9.1
1dd6aab
8a02e26
Summary: Implements the ActiveRecord pattern for ORM
a89e8a2
Name: rubygem-%{gem_name}
aa22f54
Epoch: 1
aa5f23e
Version: 3.2.8
6de845f
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/
aa5f23e
# git checkout v3.2.8
aa5f23e
# tar czvf activerecord-3.2.8-tests.tgz test/
4769679
Source1: activerecord-%{version}-tests.tgz
1dd6aab
Requires: ruby(abi) = %{rubyabi}
a89e8a2
Requires: ruby(rubygems)
31182b1
Requires: rubygem(activesupport) = %{version}
283a7cb
Requires: rubygem(activemodel)   = %{version}
283a7cb
Requires: rubygem(arel) 
283a7cb
Requires: rubygem(tzinfo) >= 0.3.23
a89e8a2
BuildRequires: rubygems-devel
4769679
BuildRequires: rubygem(bcrypt-ruby)
283a7cb
BuildRequires: rubygem(activesupport) = %{version}
283a7cb
BuildRequires: rubygem(activemodel)   = %{version}
283a7cb
BuildRequires: rubygem(sqlite3)
54819ad
BuildRequires: rubygem(erubis)
283a7cb
BuildRequires: rubygem(mocha)
a89e8a2
BuildRequires: rubygem(arel)
283a7cb
BuildRequires: rubygem(tzinfo) >= 0.3.23
a89e8a2
BuildRequires: rubygem(minitest)
8a02e26
BuildArch: noarch
a89e8a2
Provides: rubygem(%{gem_name}) = %{version}
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
4769679
Summary: Documentation for %{name}
4769679
Group: Documentation
b8beba2
Requires: %{name} = %{epoch}:%{version}-%{release}
4769679
BuildArch: noarch
8a02e26
4769679
%description doc
4769679
Documentation for %{name}
8a02e26
4769679
%prep
4769679
%setup -q -c -T
4769679
mkdir -p .%{gem_dir}
4769679
gem install --local --install-dir .%{gem_dir} \
8a02e26
            --force --rdoc %{SOURCE0}
8a02e26
1dd6aab
%build
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
4769679
ruby -I.:test:lib << EOF
4769679
  test_files = Dir.glob( "test/cases/**/*_test.rb" )
4769679
  test_files.reject! { |x| x =~ %r|/adapters/| }
4769679
4769679
  # Only test sqlite3 backend
4769679
  test_files += Dir.glob("test/cases/adapters/sqlite3/*_test.rb")
4769679
4769679
  # To prevent a circular dependency w/ actionpack.
4769679
  test_files.delete('test/cases/session_store/session_test.rb')
4769679
4769679
  test_files.each { |f| require 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
4769679
8a02e26
%changelog
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