# Generated from rails-3.1.0.gem by gem2rpm -*- rpm-spec -*- %global gemname rails %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Summary: Full-stack web application framework Name: rubygem-%{gemname} Version: 3.1.0 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://www.rubyonrails.org Source0: %{gemname}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) >= 1.3.6 Requires: ruby >= 1.8.7 Requires: rubygem(activesupport) = 3.1.0 Requires: rubygem(actionpack) = 3.1.0 Requires: rubygem(activerecord) = 3.1.0 Requires: rubygem(activeresource) = 3.1.0 Requires: rubygem(actionmailer) = 3.1.0 Requires: rubygem(railties) = 3.1.0 Requires: rubygem(bundler) => 1.0 Requires: rubygem(bundler) < 2 BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(rubygems) >= 1.3.6 BuildRequires: ruby >= 1.8.7 BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration. %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}/rails %{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.0-1 - Initial package