# Generated from erubis-2.7.0.gem by gem2rpm -*- rpm-spec -*- %global gemname erubis %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Summary: a fast and extensible eRuby implementation which supports multi-language Name: rubygem-%{gemname} Version: 2.7.0 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://www.kuwata-lab.com/erubis/ Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Requires: ruby BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(rubygems) BuildRequires: ruby BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description Erubis is an implementation of eRuby and has the following features: * Very fast, almost three times faster than ERB and about 10% faster than eruby. * Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript) * Auto escaping support * Auto trimming spaces around '<% %>' * Embedded pattern changeable (default '<% %>') * Enable to handle Processing Instructions (PI) as embedded pattern (ex. '') * Context object available and easy to combine eRuby template with YAML datafile * Print statement available * Easy to extend and customize in subclass * Ruby on Rails support %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} \ --bindir .%{_bindir} \ --force %{SOURCE0} %build %install mkdir -p %{buildroot}%{gemdir} cp -a .%{gemdir}/* \ %{buildroot}%{gemdir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x %files %dir %{geminstdir} %{_bindir}/erubis %{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 - 2.7.0-1 - Initial package