# Generated from shoulda-2.10.3.gem by gem2rpm -*- rpm-spec -*- %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %define gemname shoulda %define geminstdir %{gemdir}/gems/%{gemname}-%{version} Summary: Making tests easy on the fingers and eyes Name: rubygem-%{gemname} Version: 2.11.3 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://thoughtbot.com/projects/shoulda Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: rubygems BuildRequires: rubygems BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description The Shoulda gem makes it easy to write elegant, understandable, and maintainable Ruby tests. Shoulda consists of test macros, assertions, and helpers added on to the Test::Unit framework. It’s fully compatible with your existing tests, and requires no retooling to use. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} %description doc This package contains documentation for %{name}. %prep %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} gem install --local --install-dir %{buildroot}%{gemdir} \ --force --rdoc %{SOURCE0} mkdir -p %{buildroot}/%{_bindir} mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} rmdir %{buildroot}%{gemdir}/bin find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x %clean rm -rf %{buildroot} %files %defattr(-, root, root, -) %{_bindir}/convert_to_should_syntax %{gemdir}/gems/%{gemname}-%{version}/ %doc %{geminstdir}/README.rdoc %doc %{geminstdir}/CONTRIBUTION_GUIDELINES.rdoc %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %files doc %defattr(-,root,root,-) %doc %{gemdir}/doc/%{gemname}-%{version} %changelog * Sat Sep 11 2010 Michal Ambroz - 2.11.3-1 - Initial package