[packages/ruby-ffi] fix testing with newly built library
glen
glen at pld-linux.org
Mon Aug 11 22:35:20 CEST 2014
commit ed0d1fdb31e9dbe8b6147f63e3cb34341edb8c6f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Aug 11 23:35:18 2014 +0300
fix testing with newly built library
ruby-ffi.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ruby-ffi.spec b/ruby-ffi.spec
index 61dd8b5..80d9df2 100644
--- a/ruby-ffi.spec
+++ b/ruby-ffi.spec
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-ffi.git/commitdiff/ed0d1fdb31e9dbe8b6147f63e3cb34341edb8c6f
More information about the pld-cvs-commit
mailing list