From b72b7d269fc36a9c0a9e17d12c0f85b36d6c43cd Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 09:14:32 +0000 Subject: import rh-ror50-rubygem-coffee-rails-4.2.1-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cf26f35 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/coffee-rails-4.2.1-tests.tgz +SOURCES/coffee-rails-4.2.1.gem diff --git a/.rh-ror50-rubygem-coffee-rails.metadata b/.rh-ror50-rubygem-coffee-rails.metadata new file mode 100644 index 0000000..e885859 --- /dev/null +++ b/.rh-ror50-rubygem-coffee-rails.metadata @@ -0,0 +1,2 @@ +d76a943b5296e6fa3b087f1e52374ebf6da2dc58 SOURCES/coffee-rails-4.2.1-tests.tgz +9f42911b1ae91155689d9315e5d93558bd065eed SOURCES/coffee-rails-4.2.1.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..2608a48 --- /dev/null +++ b/SPECS/rubygem-coffee-rails.spec @@ -0,0 +1,129 @@ +%{?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