[rubygem-mocha] Adding %check.

Michael Stahnke stahnma at fedoraproject.org
Sun Aug 29 16:05:10 UTC 2010


commit cdcacbb75517d506eed7c461e1122142aa6eb925
Author: stahnma <stahnma at websages.com>
Date:   Sun Aug 29 12:05:08 2010 -0400

    Adding %check.

 rubygem-mocha.spec |   27 +++++++++++++++++++++++----
 1 files 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 <stahnma at fedoraproject.org> - 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 <kanarip at fedoraproject.org> - 0.9.7-1
 - New upstream version


More information about the scm-commits mailing list