]> git.pld-linux.org Git - packages/ruby-ffi.git/commitdiff
fix testing with newly built library
authorElan Ruusamäe <glen@delfi.ee>
Mon, 11 Aug 2014 20:35:18 +0000 (23:35 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 11 Aug 2014 20:35:18 +0000 (23:35 +0300)
ruby-ffi.spec

index 61dd8b520f743a41bcd0d9b7e019956d06fed711..80d9df214010355b8012acc83d990684ef441d8c 100644 (file)
@@ -6,7 +6,7 @@
 Summary:       FFI Extensions for Ruby
 Name:          ruby-%{pkgname}
 Version:       1.8.1
-Release:       1
+Release:       2
 License:       LGPL v3
 Group:         Development/Languages
 Source0:       http://rubygems.org/gems/%{pkgname}-%{version}.gem
@@ -18,6 +18,7 @@ BuildRequires:        rpmbuild(macros) >= 1.665
 BuildRequires: setup.rb
 %if %{with tests}
 BuildRequires: ruby-rspec
+BuildRequires: ruby-rspec-mocks
 %endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -45,7 +46,8 @@ cp -p %{_datadir}/setup.rb .
 
 %if %{with tests}
 %{__make} -f libtest/GNUmakefile
-rspec spec
+ruby -Ilib:ext/ffi_c -S \
+       rspec spec
 %endif
 
 %install
This page took 0.066813 seconds and 4 git commands to generate.