Blame SPECS/rubygem-activerecord.spec

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