[packages/ruby-rspec-mocks] - disable tests (not present in .gem), updated some dependencies

qboosh qboosh at pld-linux.org
Sat Jun 16 21:48:12 CEST 2018


commit 3d340afc5ebc24c4948863e1d5523c8531d1a9c5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 16 21:49:31 2018 +0200

    - disable tests (not present in .gem), updated some dependencies

 ruby-rspec-mocks.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ruby-rspec-mocks.spec b/ruby-rspec-mocks.spec
index ecb1a68..a3ffeeb 100644
--- a/ruby-rspec-mocks.spec
+++ b/ruby-rspec-mocks.spec
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without	tests		# build without tests
+%bcond_with	tests		# unit tests [not present when repackaging .gem file]
 # test needs rspec-core, however rspec-core depends on rspec-mocks
 # runtime part of rspec-mocks does not depend on rspec-core
 
@@ -17,9 +17,15 @@ Source0:	http://rubygems.org/gems/%{pkgname}-%{version}.gem
 URL:		http://github.com/rspec/rspec-mocks
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	ruby >= 1:1.8.7
 %if %{with tests}
-BuildRequires:	ruby-rspec
+BuildRequires:	ruby-minitest >= 5.2
+BuildRequires:	ruby-rspec-support >= 3.7.0
 %endif
+# .gemspec contains: s.add_dependency(%q<diff-lcs>.freeze, ["< 2.0", ">= 1.2.0"])
+# but only "rubygems(diff-lcs) < 2.0" is detected, "rubygems(diff-lcs) >= 1.2.0" not...
+Requires:	ruby-diff-lcs >= 1.2.0
+Requires:	ruby-diff-lcs < 2.0
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-rspec-mocks.git/commitdiff/3d340afc5ebc24c4948863e1d5523c8531d1a9c5



More information about the pld-cvs-commit mailing list