From c3cde8c3154842cc26ec5690caf9245dabcf4493 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 09:33:35 +0000 Subject: import rh-ror50-rubygem-coffee-script-2.4.1-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..772fcdd --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/coffee-script-2.4.1.gem +SOURCES/coffee-script-tests-2.4.1.tgz diff --git a/.rh-ror50-rubygem-coffee-script.metadata b/.rh-ror50-rubygem-coffee-script.metadata new file mode 100644 index 0000000..c79cce4 --- /dev/null +++ b/.rh-ror50-rubygem-coffee-script.metadata @@ -0,0 +1,2 @@ +6f303ab3b52ae4231732ac24d302a4db0e4f7f9e SOURCES/coffee-script-2.4.1.gem +56c56297a7859a19b0619bb769066f1b88dbb099 SOURCES/coffee-script-tests-2.4.1.tgz 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-script.spec b/SPECS/rubygem-coffee-script.spec new file mode 100644 index 0000000..67bec9a --- /dev/null +++ b/SPECS/rubygem-coffee-script.spec @@ -0,0 +1,110 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +# Generated from coffee-script-2.2.0.gem by gem2rpm -*- rpm-spec -*- +%global gem_name coffee-script + +# 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}-}} + +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 2.4.1 +Release: 3%{?dist} +Summary: Ruby CoffeeScript Compiler +Group: Development/Languages +License: MIT +URL: https://github.com/rails/ruby-coffee-script.git +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# To get the tests: +# git clone https://github.com/rails/ruby-coffee-script.git && cd ruby-coffee-script +# git checkout v2.4.1 && tar czf coffee-script-tests-2.4.1.tgz test/ +Source1: coffee-script-tests-%{version}.tgz + +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix}rubygem(coffee-script-source) +Requires: %{?scl_prefix}rubygem(execjs) +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby +BuildRequires: %{?scl_prefix}rubygem(coffee-script-source) +BuildRequires: %{?scl_prefix}rubygem(execjs) +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) +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 +Ruby CoffeeScript is a bridge to the JS CoffeeScript compiler. + +%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} +# unpack and patch the tests +tar xzf %{SOURCE1} + +%{?scl:scl enable %{scl} %{scl_nodejs} - << \EOF} +ruby -Ilib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' +%{?scl:EOF} +popd + +%files +%dir %{gem_instdir} +%{gem_instdir}/LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md + +%changelog +* Wed Feb 24 2016 Pavel Valena - 2.4.1-3 +- Update to 2.4.1 + +* Mon Jan 26 2015 Josef Stribny - 2.2.0-6 +- rebuilt for rh-ror41 + +* Mon Feb 17 2014 Josef Stribny - 2.2.0-5 +- Depend on scldevel(v8) virtual provide + +* Tue Nov 26 2013 Josef Stribny - 2.2.0-4 +- Use v8 scl macro + +* Wed Jun 12 2013 Josef Stribny - 2.2.0-3 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Thu Jul 26 2012 Bohuslav Kabrda - 2.2.0-2 +- Introduce test suite. +- Specfile cleanup + +* Tue Jul 17 2012 Bohuslav Kabrda - 2.2.0-1 +- Initial package