From 30231a2a63f8e3fd4429cb203a48b2b783adc33f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:31:14 +0000 Subject: import rh-ror42-rubygem-coffee-rails-4.1.0-4.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d2bafa5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/coffee-rails-4.1.0.gem diff --git a/.rh-ror42-rubygem-coffee-rails.metadata b/.rh-ror42-rubygem-coffee-rails.metadata new file mode 100644 index 0000000..3f27d98 --- /dev/null +++ b/.rh-ror42-rubygem-coffee-rails.metadata @@ -0,0 +1 @@ +898a2c3b199827eb99d68cea223143c7a49350e9 SOURCES/coffee-rails-4.1.0.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-coffee-rails.spec b/SPECS/rubygem-coffee-rails.spec new file mode 100644 index 0000000..0aa1cf3 --- /dev/null +++ b/SPECS/rubygem-coffee-rails.spec @@ -0,0 +1,127 @@ +%{?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_nodejs:%global scl_nodejs rh-nodejs4} +%{!?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.1.0 +Release: 4%{?dist} +Group: Development/Languages +License: MIT +URL: https://github.com/rails/coffee-rails +Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem + +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.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.0.0 +BuildRequires: %{?scl_prefix}rubygem(sprockets-rails) +BuildRequires: %{?scl_prefix}rubygem(tzinfo) +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +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} +# Disable Bundler. +sed -i '/require .bundler\/setup./ s/^/#/' test/test_helper.rb + +# Explicitly require ActionController to workaround "uninitialized constant +# ActionController::Live" issue. +# https://github.com/rails/rails/issues/15918 +# Explicitly require Shellwords to avoid "undefined method `shellescape'" error. +# https://github.com/rails/rails/issues/15919 +%{?scl:scl enable %{scl} %{scl_nodejs} - << \EOF} +ruby -raction_controller -rshellwords -I.:test:lib -e 'Dir.glob("test/**/*_test.rb").each {|t| require t}' +%{?scl:EOF} +popd + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%exclude %{gem_instdir}/.* +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/README.md +%{gem_instdir}/Gemfile +%{gem_instdir}/%{gem_name}.gemspec* +%{gem_instdir}/Rakefile +%{gem_instdir}/gemfiles +%{gem_instdir}/test + +%changelog +* 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