File rubygem-rails-42.spec of Package rubygem-rails-42
# Generated from rails-1.2.5.gem by gem2rpm -*- rpm-spec -*-
%global gem_name rails
Summary: Web-application framework
Name: rubygem-%{gem_name}-42
Epoch: 1
Version: 4.2.6
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://www.rubyonrails.org
Source0: http://rubygems.org/downloads/rails-%{version}.gem
BuildRequires: rubygems-devel
BuildArch: noarch
%description
Rails is a framework for building web-application using CGI, FCGI, mod_ruby,
or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or
Oracle with eRuby- or Builder-based templates.
%package doc
Summary: Documentation for %{name}
Group: Documentation
# SyntaxHighlighter is dual licensed under the MIT and GPL licenses
License: MIT and (MIT or GPL+)
Requires: %{name} = %{epoch}:%{version}-%{release}
BuildArch: noarch
%description doc
This package contains documentation for %{name}.
%prep
%build
%install
%gem_install -n %{SOURCE0}
mkdir -p %{buildroot}%{gem_dir}
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}
%exclude %{gem_docdir}
%files doc
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/guides