From cdcacbb75517d506eed7c461e1122142aa6eb925 Mon Sep 17 00:00:00 2001 From: stahnma Date: Sun, 29 Aug 2010 12:05:08 -0400 Subject: [PATCH] Adding %check. --- rubygem-mocha.spec | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/rubygem-mocha.spec b/rubygem-mocha.spec index aea163c..bc888a0 100644 --- a/rubygem-mocha.spec +++ b/rubygem-mocha.spec @@ -25,6 +25,16 @@ Provides: rubygem(%{gemname}) = %{version} Mocking and stubbing library with JMock/SchMock syntax, which allows mocking and stubbing of methods on real (non-mock) classes. +%package doc +Summary: Documentation for %{name} +Group: Documentation + +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains documentation for %{name}. + + %prep %build @@ -38,26 +48,35 @@ gem install --local --install-dir %{buildroot}%{gemdir} \ %clean rm -rf %{buildroot} +%check +cd %{buildroot}%{geminstdir} +rake test + %files %defattr(-, root, root, -) -%doc %{gemdir}/doc/%{gemname}-%{version} %doc %{geminstdir}/COPYING -%doc %{geminstdir}/Rakefile %doc %{geminstdir}/README %doc %{geminstdir}/MIT-LICENSE %doc %{geminstdir}/RELEASE -%doc %{geminstdir}/examples -%doc %{geminstdir}/test %dir %{geminstdir}/ %{geminstdir}/lib %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec +%files doc +%defattr(-, root, root, -) +%{gemdir}/doc/%{gemname}-%{version} +%{geminstdir}/Rakefile +%{geminstdir}/examples +%{geminstdir}/test + %changelog * Sun Aug 29 2010 Michael Stahnke - 0.9.8-1 - Fixed odd naming in BR - Updating to 0.9.8 +- Breaking into -doc package as well +- Adding tests * Thu Jul 23 2009 Jeroen van Meeuwen - 0.9.7-1 - New upstream version