%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gemname sinatra %global geminstdir %{gemdir}/gems/%{gemname}-%{version} Summary: Ruby-based web application framework Name: rubygem-%{gemname} Version: 1.0 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://sinatra.rubyforge.org Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: ruby(abi) = 1.8 Requires: rubygems Requires: rubygem(rack) >= 0.9.1 BuildRequires: rubygem(shotgun) >= 0.2 BuildRequires: rubygem(shotgun) < 1.0 Requires: rubygem(rack-test) >= 0.3.0 BuildRequires: rubygems BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} Epoch: 1 %description Sinatra is a DSL intended for quickly creating web-applications in Ruby with minimal effort. %prep %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{gemdir} gem install --local --install-dir $RPM_BUILD_ROOT%{gemdir} \ --force --rdoc %{SOURCE0} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %dir %{geminstdir} %{geminstdir}/lib %{geminstdir}/sinatra.gemspec %{geminstdir}/test %{geminstdir}/Rakefile %doc %{gemdir}/doc/%{gemname}-%{version} %doc %{geminstdir}/README.rdoc %doc %{geminstdir}/README.jp.rdoc %doc %{geminstdir}/LICENSE %doc %{geminstdir}/AUTHORS %doc %{geminstdir}/CHANGES %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %changelog * Thu Mar 25 2010 Michal Fojtik <mfojtik@redhat.com> - 1.0-1 - Sinatra now uses Tilt for rendering templates - New helper methods - New argument to specify the address to bind to - Speed improvement in rendering templates * Thu Feb 15 2010 Michal Fojtik <mfojtik@redhat.com> - 0.9.4-2 - Downgrade-Release * Thu Jan 07 2010 Michal Fojtik <mfojtik@redhat.com> - 0.10.1-1 - Version-Release - Added jp README * Fri Jun 26 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.2-3 - Get rid of duplicate files (thanks to Mamoru Tasaka) * Mon Jun 08 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.2-2 - Fix up documentation list - Bring tests back - Depend on ruby(abi) - Replace defines with globals * Fri Jun 05 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.2-1 - Package generated by gem2rpm - Don't ship tests - Fix up License