From 084949d10c26e9e5301f4da17c9817aa927647d6 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: May 17 2019 12:42:45 +0000 Subject: Disable tests to fix FTBFS by dropped MongoDB. --- diff --git a/rubygem-mongo.spec b/rubygem-mongo.spec index 8d9a6f1..43e5e52 100644 --- a/rubygem-mongo.spec +++ b/rubygem-mongo.spec @@ -1,7 +1,7 @@ %global gem_name mongo -# mongodb is not stable on rawhide and crashes during test -# renable test once mongodb is stable again -%bcond_without tests +# Disable tests as MongoDB was dropped from Fedora because of a licensing issue. +# https://src.fedoraproject.org/rpms/mongodb/blob/master/f/dead.package +%bcond_with tests Name: rubygem-%{gem_name} Version: 2.6.2 @@ -13,10 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby +%if %{with tests} # For running the tests BuildRequires: %{_bindir}/mongod BuildRequires: rubygem(bson) >= 4.3.0 BuildRequires: rubygem(rspec) +%endif BuildArch: noarch %description