File rubygem-blankslate.spec of Package rubygem-blankslate

Name:           rubygem-blankslate
Version:        2.1.2.4
Release:        0
%define mod_name blankslate
%define mod_full_name %{mod_name}-%{version}
#
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  rubygems_with_buildroot_patch
%rubygems_requires

Requires:       ruby >= 1.9
BuildRequires:  ruby-devel >= 1.9
#
Url:            http://onestepback.org/
Source:         %{mod_full_name}.gem

License:        Ruby
Group:          Development/Languages/Ruby
Summary:        BlankSlate provides a blank base class

%description
BlankSlate provides a base class where almost all of the methods from
Object and Kernel have been removed. This is useful when providing proxy
object and other classes that make heavy use of method_missing.

%package doc
Summary:        RDoc documentation for %{mod_name}
Group:          Development/Languages/Ruby
Requires:       %{name} = %{version}

%description doc
Documentation generated at gem installation time.
Usually in RDoc and RI formats.

%prep
%build
%install
%gem_install %{S:0}

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec

%files doc
%defattr(-,root,root,-)
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/

%changelog