From c1a36cc683a8838e307b3409c6dcc2f1a56da15e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 04 2015 07:25:32 +0000 Subject: import rh-ror41-rubygem-actionview-4.1.5-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..db325d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/actionview-4.1.5-tests.tgz +SOURCES/actionview-4.1.5.gem diff --git a/.rh-ror41-rubygem-actionview.metadata b/.rh-ror41-rubygem-actionview.metadata new file mode 100644 index 0000000..bc32de3 --- /dev/null +++ b/.rh-ror41-rubygem-actionview.metadata @@ -0,0 +1,2 @@ +21330fd210bb3e35db643d33c0af22e390c10fba SOURCES/actionview-4.1.5-tests.tgz +eb71ffc6ea7537d6066483b6ff5d1edf51f0c344 SOURCES/actionview-4.1.5.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-actionview.spec b/SPECS/rubygem-actionview.spec new file mode 100644 index 0000000..6e4fb8a --- /dev/null +++ b/SPECS/rubygem-actionview.spec @@ -0,0 +1,123 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name actionview +%global bootstrap 0 + +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 4.1.5 +Release: 3%{?dist} +Summary: Rendering framework putting the V in MVC (part of Rails) +Group: Development/Languages +License: MIT +URL: http://www.rubyonrails.org +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone http://github.com/rails/rails.git +# cd rails/actionview/ +# git checkout v4.1.5 +# tar czvf activesupport-4.1.5-tests.tgz test/ +Source1: %{gem_name}-%{version}-tests.tgz +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix}rubygem(builder) >= 3.1 +Requires: %{?scl_prefix}rubygem(builder) < 4.0 +Requires: %{?scl_prefix}rubygem(erubis) >= 2.7.0 +Requires: %{?scl_prefix}rubygem(erubis) < 3.0 +Requires: %{?scl_prefix}rubygem(activesupport) = %{version} +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +%if 0%{bootstrap} < 1 +BuildRequires: %{?scl_prefix}rubygem(activesupport) = %{version} +BuildRequires: %{?scl_prefix}rubygem(activerecord) = %{version} +BuildRequires: %{?scl_prefix}rubygem(actionpack) = %{version} +BuildRequires: %{?scl_prefix}rubygem(sqlite3) +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) +BuildRequires: %{?scl_prefix}rubygem(mocha) >= 0.9.8 +%endif +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +%description +Simple, battle-tested conventions and helpers for building web pages. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{pkg_name}. + +%prep +%setup -n %{pkg_name}-%{version} -q -c -T +%{?scl:scl enable %{scl} - << \EOF} +%gem_install -n %{SOURCE0} +%{?scl:EOF} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%if 0%{bootstrap} < 1 + +%check +pushd .%{gem_instdir} + +tar xzvf %{SOURCE1} -C . + +# This requires rails git structure and only requires bundler in the end +sed -i "s|require File.expand_path('../../../load_paths', __FILE__)||" ./test/abstract_unit.rb +sed -i '16,18d' ./test/active_record_unit.rb + +# Run separately as we need to avoid superclass mismatch errors +%{?scl:scl enable %{scl} - << \EOF} +ruby -Ilib:test -e "Dir.glob('./test/{actionpack,activerecord,lib}/*_test.rb').each {|t| require t}" +%{?scl:EOF} +%{?scl:scl enable %{scl} - << \EOF} +ruby -Ilib:test -e "Dir.glob('./test/template/*_test.rb').each {|t| require t}" +%{?scl:EOF} + +popd +%endif + +%files +%dir %{gem_instdir} +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} +%doc %{gem_instdir}/MIT-LICENSE + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.rdoc +%doc %{gem_instdir}/CHANGELOG.md + +%changelog +* Tue Jan 27 2015 Josef Stribny - 4.1.5-3 +- Enable tests + +* Thu Jan 22 2015 Josef Stribny - 4.1.5-2 +- Convert to SCL + +* Mon Aug 25 2014 Josef Stribny - 4.1.5-1 +- Update to actionview 4.1.5 + +* Fri Jul 04 2014 Josef Stribny - 4.1.4-1 +- Update to actionview 4.1.4 + +* Sun Jun 08 2014 Fedora Release Engineering - 4.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu May 22 2014 Josef Stribny - 4.1.1-1 +- Update to ActionView 4.1.1 + +* Tue Apr 15 2014 Josef Stribny - 4.1.0-2 +- Unpack test suite in %%check +- Adjust tests to run with all dependencies + +* Thu Apr 10 2014 Josef Stribny - 4.1.0-1 +- Initial package