%{?scl:%scl_package rubygem-%{gem_name}} %{!?scl:%global pkg_name %{name}} # Generated from coffee-rails-3.2.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name coffee-rails # Fallback to rh-nodejs4. rh-nodejs4-scldevel is probably not available in # the buildroot. %{?scl:%{!?scl_nodejs:%global scl_nodejs rh-nodejs4}} %{?scl:%{!?scl_prefix_nodejs:%global scl_prefix_nodejs %{scl_nodejs}-}} Summary: Coffee Script adapter for the Rails asset pipeline Name: %{?scl_prefix}rubygem-%{gem_name} Version: 4.2.1 Release: 1%{?dist} Group: Development/Languages License: MIT URL: https://github.com/rails/coffee-rails Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/rails/coffee-rails.git && cd coffee-rails # git checkout v4.2.1 && tar czvf coffee-rails-4.2.1-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(coffee-script) >= 2.2.0 Requires: %{?scl_prefix}rubygem(railties) >= 4.0.0 Requires: %{?scl_prefix}rubygem(railties) < 5.2.0 BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix_ruby}rubygems-devel BuildRequires: %{?scl_prefix_ruby}ruby BuildRequires: %{?scl_prefix}rubygem(coffee-script) >= 2.2.0 BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) BuildRequires: %{?scl_prefix}rubygem(railties) => 4.0.0 BuildRequires: %{?scl_prefix}rubygem(railties) < 5.2.0 BuildRequires: %{?scl_prefix}rubygem(sprockets-rails) BuildRequires: %{?scl_prefix}rubygem(tzinfo) BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} # Explicitly require runtime subpackage, as long as older scl-utils do not generate it %{?scl:Requires: %{?scl_prefix}runtime} BuildRequires: %{?scl_prefix_nodejs}nodejs %description Coffee Script adapter for the Rails asset pipeline. %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 -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} tar xzvf %{SOURCE1} # Disable Bundler. sed -i '/require .bundler\/setup./ s/^/#/' test/test_helper.rb %{?scl:scl enable %{scl} %{scl_nodejs} - << \EOF} ruby -I.:test:lib -e 'Dir.glob("test/**/*_test.rb").each {|t| require t}' %{?scl:EOF} popd %files # There is no %%license macro on RHEL6. # https://bugzilla.redhat.com/show_bug.cgi?id=1386246 %{!?_licensedir:%global license %%doc} %dir %{gem_instdir} %license %{gem_instdir}/MIT-LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.md %changelog * Mon Nov 21 2016 Jun Aruga - 4.2.1-1 - Update to coffee-rails 4.2.1. * Wed Mar 02 2016 Pavel Valena - 4.1.0-4 - Update to 4.1.0 * Tue Jan 27 2015 Josef Stribny - 4.0.1-1 - Update to 4.0.1 * Mon Feb 17 2014 Josef Stribny - 4.0.0-4 - Depend on scldevel(v8) virtual provide * Thu Nov 28 2013 Josef Stribny - 4.0.0-3 - Use v8 macro * Thu Oct 17 2013 Josef Stribny - 4.0.0-2 - Convert to scl * Mon Aug 05 2013 Josef Stribny - 4.0.0-1 - Update to coffee-rails 4.0.0 * Sun Aug 04 2013 Fedora Release Engineering - 3.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Mar 14 2013 Bohuslav Kabrda - 3.2.2-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 3.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Jul 23 2012 Bohuslav Kabrda - 3.2.2-1 - Initial package