Blame SPECS/rubygem-actionview.spec

203364
%{?scl:%scl_package rubygem-%{gem_name}}
203364
%{!?scl:%global pkg_name %{name}}
203364
203364
%global gem_name actionview
203364
%global bootstrap 0
203364
203364
Name: %{?scl_prefix}rubygem-%{gem_name}
203364
Version: 4.2.6
203364
Release: 2%{?dist}
203364
Summary: Rendering framework putting the V in MVC (part of Rails)
203364
Group: Development/Languages
203364
License: MIT
203364
URL: http://www.rubyonrails.org
203364
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
203364
# git clone http://github.com/rails/rails.git
203364
# cd rails/actionview/
203364
# git checkout v4.2.6
203364
# tar czvf actionview-4.2.6-tests.tgz test/
203364
Source1: %{gem_name}-%{version}-tests.tgz
203364
203364
Requires: %{?scl_prefix_ruby}ruby(release)
203364
Requires: %{?scl_prefix_ruby}ruby(rubygems)
203364
Requires: %{?scl_prefix}rubygem(activesupport) = %{version}
203364
Requires: %{?scl_prefix}rubygem(builder) >= 3.1
203364
Requires: %{?scl_prefix}rubygem(builder) < 4
203364
Requires: %{?scl_prefix}rubygem(erubis) >= 2.7.0
203364
Requires: %{?scl_prefix}rubygem(erubis) < 2.8
203364
Requires: %{?scl_prefix}rubygem(rails-dom-testing) >= 1.0.5
203364
Requires: %{?scl_prefix}rubygem(rails-dom-testing) < 2
203364
Requires: %{?scl_prefix}rubygem(rails-html-sanitizer) >= 1.0.2
203364
Requires: %{?scl_prefix}rubygem(rails-html-sanitizer) < 2
203364
BuildRequires: %{?scl_prefix_ruby}ruby(release)
203364
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
203364
%if 0%{bootstrap} < 1
203364
BuildRequires: %{?scl_prefix}rubygem(activesupport) = %{version}
203364
BuildRequires: %{?scl_prefix}rubygem(activerecord) = %{version}
203364
BuildRequires: %{?scl_prefix}rubygem(actionpack) = %{version}
203364
BuildRequires: %{?scl_prefix}rubygem(railties) = %{version}
203364
BuildRequires: %{?scl_prefix}rubygem(sqlite3)
203364
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
203364
BuildRequires: %{?scl_prefix}rubygem(mocha) >= 0.9.8
203364
%endif
203364
BuildArch: noarch
203364
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
203364
203364
%description
203364
Simple, battle-tested conventions and helpers for building web pages.
203364
203364
%package doc
203364
Summary: Documentation for %{pkg_name}
203364
Group: Documentation
203364
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
203364
BuildArch: noarch
203364
203364
%description doc
203364
Documentation for %{pkg_name}.
203364
203364
%prep
203364
%setup -n %{pkg_name}-%{version} -q -c -T
203364
%{?scl:scl enable %{scl} - << \EOF}
203364
%gem_install -n %{SOURCE0}
203364
%{?scl:EOF}
203364
203364
203364
%build
203364
203364
%install
203364
mkdir -p %{buildroot}%{gem_dir}
203364
cp -pa .%{gem_dir}/* \
203364
        %{buildroot}%{gem_dir}/
203364
203364
%if 0%{bootstrap} < 1
203364
203364
%check
203364
pushd .%{gem_instdir}
203364
203364
tar xzvf %{SOURCE1} -C .
203364
203364
# This requires rails git structure and only requires bundler in the end
203364
sed -i "s|require File.expand_path('../../../load_paths', __FILE__)||" ./test/abstract_unit.rb
203364
sed -i '16,18d' ./test/active_record_unit.rb
203364
203364
# Run separately as we need to avoid superclass mismatch errors
203364
%{?scl:scl enable %{scl} - << \EOF}
203364
ruby -Ilib:test -e "Dir.glob('./test/{actionpack,activerecord,lib}/*_test.rb').each {|t| require t}"
203364
ruby -Ilib:test -e "Dir.glob('./test/template/*_test.rb').each {|t| require t}"
203364
%{?scl:EOF}
203364
203364
popd
203364
%endif
203364
203364
%files
203364
%dir %{gem_instdir}
203364
%{gem_libdir}
203364
%exclude %{gem_cache}
203364
%{gem_spec}
203364
%doc %{gem_instdir}/MIT-LICENSE
203364
203364
%files doc
203364
%doc %{gem_docdir}
203364
%doc %{gem_instdir}/README.rdoc
203364
%doc %{gem_instdir}/CHANGELOG.md
203364
203364
%changelog
203364
* Tue Apr 05 2016 Pavel Valena <pvalena@redhat.com> - 4.2.6-2
203364
- Enable tests
203364
203364
* Mon Apr 04 2016 Pavel Valena <pvalena@redhat.com> - 4.2.6-1
203364
- Update to 4.2.6
203364
203364
* Wed Feb 17 2016 Pavel Valena <pvalena@redhat.com> - 4.2.5.1-5
203364
- Update to actionview 4.2.5.1
203364
203364
* Thu Feb 11 2016 Pavel Valena <pvalena@redhat.com> - 4.1.5-4
203364
- Fix Possible Information Leak Vulnerability - rhbz#1301963
203364
  - Resolves: CVE-2016-0752
203364
203364
* Tue Jan 27 2015 Josef Stribny <jstribny@redhat.com> - 4.1.5-3
203364
- Enable tests
203364
203364
* Thu Jan 22 2015 Josef Stribny <jstribny@redhat.com> - 4.1.5-2
203364
- Convert to SCL
203364
203364
* Mon Aug 25 2014 Josef Stribny <jstribny@redhat.com> - 4.1.5-1
203364
- Update to actionview 4.1.5
203364
203364
* Fri Jul 04 2014 Josef Stribny <jstribny@redhat.com> - 4.1.4-1
203364
- Update to actionview 4.1.4
203364
203364
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.1-2
203364
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
203364
203364
* Thu May 22 2014 Josef Stribny <jstribny@redhat.com> - 4.1.1-1
203364
- Update to ActionView 4.1.1
203364
203364
* Tue Apr 15 2014 Josef Stribny <jstribny@redhat.com> - 4.1.0-2
203364
- Unpack test suite in %%check
203364
- Adjust tests to run with all dependencies
203364
203364
* Thu Apr 10 2014 Josef Stribny <jstribny@redhat.com> - 4.1.0-1
203364
- Initial package