%define oname shoulda-matchers Name: ruby-%{oname} Version: 2.3.0 Release: %mkrel 1 Summary: Making tests easy on the fingers and eyes Group: Development/Ruby License: GPLv2 URL: http://thoughtbot.com/community/ Source0: http://rubygems.org/downloads/%{oname}-%{version}.gem BuildRequires: rubygems BuildArch: noarch %description Making tests easy on the fingers and eyes. #------------------------------------------------------------------------------- %package doc Summary: Documentation for %{name} Group: Development/Ruby Requires: %{name} = %{version}-%{release} %description doc Documents, Rdoc & RI documentation for %{name}. #------------------------------------------------------------------------------- %prep %gem_setup %build %gem_build %install %gem_install %files %{ruby_gemdir}/gems/%{oname}-%{version}/ %{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec %files doc %doc %{ruby_gemdir}/doc/%{oname}-%{version}