Blame SPECS/rubygem-coffee-rails.spec

30231a
%{?scl:%scl_package rubygem-%{gem_name}}
30231a
%{!?scl:%global pkg_name %{name}}
30231a
30231a
# Generated from coffee-rails-3.2.2.gem by gem2rpm -*- rpm-spec -*-
30231a
%global gem_name coffee-rails
30231a
30231a
# Fallback to rh-nodejs4. rh-nodejs4-scldevel is probably not available in
30231a
# the buildroot.
30231a
%{!?scl_nodejs:%global scl_nodejs rh-nodejs4}
30231a
%{!?scl_prefix_nodejs:%global scl_prefix_nodejs %{scl_nodejs}-}
30231a
30231a
Summary: Coffee Script adapter for the Rails asset pipeline
30231a
Name: %{?scl_prefix}rubygem-%{gem_name}
30231a
Version: 4.1.0
30231a
Release: 4%{?dist}
30231a
Group: Development/Languages
30231a
License: MIT
30231a
URL: https://github.com/rails/coffee-rails
30231a
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
30231a
30231a
Requires:      %{?scl_prefix_ruby}ruby(release)
30231a
Requires:      %{?scl_prefix_ruby}ruby(rubygems)
30231a
Requires:      %{?scl_prefix}rubygem(coffee-script) >= 2.2.0
30231a
Requires:      %{?scl_prefix}rubygem(railties) >= 4.0.0
30231a
Requires:      %{?scl_prefix}rubygem(railties) < 5.0
30231a
BuildRequires: %{?scl_prefix_ruby}ruby(release)
30231a
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
30231a
BuildRequires: %{?scl_prefix_ruby}ruby
30231a
BuildRequires: %{?scl_prefix}rubygem(coffee-script) >= 2.2.0
30231a
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
30231a
BuildRequires: %{?scl_prefix}rubygem(railties) => 4.0.0
30231a
BuildRequires: %{?scl_prefix}rubygem(railties) < 5.0.0
30231a
BuildRequires: %{?scl_prefix}rubygem(sprockets-rails)
30231a
BuildRequires: %{?scl_prefix}rubygem(tzinfo)
30231a
BuildArch:     noarch
30231a
Provides:      %{?scl_prefix}rubygem(%{gem_name}) = %{version}
30231a
30231a
BuildRequires: %{?scl_prefix_nodejs}nodejs
30231a
30231a
%description
30231a
Coffee Script adapter for the Rails asset pipeline.
30231a
30231a
%package doc
30231a
Summary: Documentation for %{pkg_name}
30231a
Group: Documentation
30231a
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
30231a
BuildArch: noarch
30231a
30231a
%description doc
30231a
Documentation for %{pkg_name}.
30231a
30231a
%prep
30231a
%setup -n %{pkg_name}-%{version} -q -c -T
30231a
%{?scl:scl enable %{scl} - << \EOF}
30231a
%gem_install -n %{SOURCE0}
30231a
%{?scl:EOF}
30231a
30231a
%build
30231a
30231a
%install
30231a
mkdir -p %{buildroot}%{gem_dir}
30231a
cp -a .%{gem_dir}/* \
30231a
        %{buildroot}%{gem_dir}/
30231a
30231a
%check
30231a
pushd .%{gem_instdir}
30231a
# Disable Bundler.
30231a
sed -i '/require .bundler\/setup./ s/^/#/' test/test_helper.rb
30231a
30231a
# Explicitly require ActionController to workaround "uninitialized constant
30231a
# ActionController::Live" issue.
30231a
# https://github.com/rails/rails/issues/15918
30231a
# Explicitly require Shellwords to avoid "undefined method `shellescape'" error.
30231a
# https://github.com/rails/rails/issues/15919
30231a
%{?scl:scl enable %{scl} %{scl_nodejs} - << \EOF}
30231a
ruby -raction_controller -rshellwords -I.:test:lib -e 'Dir.glob("test/**/*_test.rb").each {|t| require t}'
30231a
%{?scl:EOF}
30231a
popd
30231a
30231a
%files
30231a
%dir %{gem_instdir}
30231a
%doc %{gem_instdir}/MIT-LICENSE
30231a
%{gem_libdir}
30231a
%exclude %{gem_instdir}/.*
30231a
%exclude %{gem_cache}
30231a
%{gem_spec}
30231a
30231a
%files doc
30231a
%doc %{gem_docdir}
30231a
%doc %{gem_instdir}/CHANGELOG.md
30231a
%doc %{gem_instdir}/README.md
30231a
%{gem_instdir}/Gemfile
30231a
%{gem_instdir}/%{gem_name}.gemspec*
30231a
%{gem_instdir}/Rakefile
30231a
%{gem_instdir}/gemfiles
30231a
%{gem_instdir}/test
30231a
30231a
%changelog
30231a
* Wed Mar 02 2016 Pavel Valena <pvalena@redhat.com> - 4.1.0-4
30231a
- Update to 4.1.0
30231a
30231a
* Tue Jan 27 2015 Josef Stribny <jstribny@redhat.com> - 4.0.1-1
30231a
- Update to 4.0.1
30231a
30231a
* Mon Feb 17 2014 Josef Stribny <jstribny@redhat.com> - 4.0.0-4
30231a
- Depend on scldevel(v8) virtual provide
30231a
30231a
* Thu Nov 28 2013 Josef Stribny <jstribny@redhat.com> - 4.0.0-3
30231a
- Use v8 macro
30231a
30231a
* Thu Oct 17 2013 Josef Stribny <jstribny@redhat.com> - 4.0.0-2
30231a
- Convert to scl
30231a
30231a
* Mon Aug 05 2013 Josef Stribny <jstribny@redhat.com> - 4.0.0-1
30231a
- Update to coffee-rails 4.0.0
30231a
30231a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-4
30231a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
30231a
30231a
* Thu Mar 14 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.2-3
30231a
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
30231a
30231a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-2
30231a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
30231a
30231a
* Mon Jul 23 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.2-1
30231a
- Initial package