So it seems extlib can be migrated to the RSpec 2.x quite easily. See the attached patch.

Btw the package build fails later due to YARD documentation build using Rake. I consider using of Rake as bad practice since Rakefiles are usually too tightly integrated with developer setup, therefore causing more problems than benefits during the build process.

Vit




Dne 27.7.2011 02:17, Michael Stahnke napsal(a):
On Tue, Jul 26, 2011 at 9:03 AM, Shawn Starr<shawn.st...@rogers.com>  wrote:
Thanks, all my current SRPMs are here at http://www.sh0n.net/spstarr/fedora-work

Note rubygem-datamapper is now rubygem-data_mapper so ignore the latter SRPM.

I believe someone owns rubygem-extlib in EPEL but not for Fedora since it was 
dropped. I bumped it to .15 and enabled Yard documentation in it.

I own extlib in EPEL, but welcome any co-maintainers.  I haven't had a
chance to dig into it's rspec requirements.
_______________________________________________
ruby-sig mailing list
ruby-sig@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/ruby-sig

--- rubygem-extlib.spec.orig    2011-07-22 05:47:49.000000000 +0200
+++ rubygem-extlib.spec 2011-07-27 10:39:12.724799206 +0200
@@ -22,7 +22,8 @@
 Requires: ruby(abi) = %{rubyabi}
 BuildRequires: ruby(rubygems)
 BuildRequires: ruby(abi) = %{rubyabi}
-BuildRequires: rubygem(rake), rubygem(rspec), rubygem(yard), ruby(json)
+# Use rspec-core until rspec are not migrated to RSpec 2.x
+BuildRequires: rubygem(rake), rubygem(rspec-core), rubygem(yard), ruby(json)
 BuildArch: noarch
 Provides: rubygem(%{gemname}) = %{version}
 
@@ -136,7 +137,9 @@
 %check
 pushd .%{geminstdir}
 
-rake spec || true   
+sed -i -e 's|require "spec"|require "rspec"|' spec/spec_helper.rb
+
+rspec spec/
 rake yard -v --trace
 
 # Additional HTML documentation generated by yard
_______________________________________________
ruby-sig mailing list
ruby-sig@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/ruby-sig

Reply via email to