# Generated from coffee-rails-3.1.1.gem by gem2rpm -*- rpm-spec -*- %global gemname coffee-rails %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Summary: Coffee Script adapter for the Rails asset pipeline Name: rubygem-%{gemname} Version: 3.1.1 Release: 1%{?dist} Group: Development/Languages License: MIT URL: https://github.com/rails/coffee-rails Source0: %{gemname}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Requires: ruby Requires: rubygem(coffee-script) >= 2.2.0 Requires: rubygem(railties) => 3.1.0 Requires: rubygem(railties) < 3.2 BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(rubygems) BuildRequires: ruby BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description Coffee Script adapter for the Rails asset pipeline. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -c -T mkdir -p .%{gemdir} gem install --local --install-dir .%{gemdir} \ --force %{SOURCE0} %build %install mkdir -p %{buildroot}%{gemdir} cp -a .%{gemdir}/* \ %{buildroot}%{gemdir}/ %files %dir %{geminstdir} %{geminstdir}/ %exclude %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %files doc %doc %{gemdir}/doc/%{gemname}-%{version} %changelog * Mon Feb 27 2012 tuxdna@gmail.com - 3.1.1-1 - Initial package