From 5ea10afd72c0b0de056fd3053063b0477fbfb1b3 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Feb 05 2019 14:59:21 +0000 Subject: Remove tests because they depended on mongodb https://pagure.io/fesco/issue/2078 --- diff --git a/rubygem-mongo.spec b/rubygem-mongo.spec index 92ee863..ef5d0ec 100644 --- a/rubygem-mongo.spec +++ b/rubygem-mongo.spec @@ -1,11 +1,12 @@ %global gem_name mongo -# mongodb is not stable on rawhide and crashes during test -# renable test once mongodb is stable again -%bcond_without tests +# mongodb is no longer in Fedora. +# This package is remaining in Fedora incase someone has +# mongodb installed from non-Fedora sources. +# The tests required mongodb, and thus have been removed. Name: rubygem-%{gem_name} Version: 2.6.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Ruby driver for MongoDB License: ASL 2.0 URL: http://www.mongodb.org @@ -13,10 +14,7 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby -# For running the tests -BuildRequires: %{_bindir}/mongod -BuildRequires: rubygem(bson) >= 4.3.0 -BuildRequires: rubygem(rspec) + BuildArch: noarch %description @@ -55,42 +53,6 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x # Drop the shebang, file is not executable anyway. sed -i '/#!\// d' %{buildroot}%{gem_instdir}/Rakefile -%if %{with tests} -%check -pushd .%{gem_instdir} - -# Create data directory and start testing mongo instance. -# See https://github.com/mongodb/mongo-ruby-driver/blob/master/.travis.yml -mkdir data -mongod \ - --dbpath data \ - --logpath data/log \ - --fork \ - --auth - -# timeout-interrupt is not available in Fedora yet. -sed -i "/^if SpecConfig\.instance\.mri?$/i\\ -require 'timeout'\\ -TimeoutInterrupt = Timeout\\ -" spec/spec_helper.rb -sed -i "/^if SpecConfig\.instance\.mri?$/,/^end$/ s/^/#/" spec/spec_helper.rb - -# rspec-retry is not available in Fedora yet. -sed -i "/require 'rspec\/retry'/ s/^/#/" spec/spec_helper.rb - -# I can't figure why this fails. It might be upstream issue, because it seems -# it was not tested against MonogoDB 4.x. -sed -i "/collection.client.use(:admin).command(FAIL_POINT_BASE_COMMAND.merge(/i\ pending" \ - spec/integration/bulk_insert_spec.rb - -CI=1 EXTERNAL_DISABLED=1 rspec spec - -# Shutdown mongo and cleanup the data. -mongod --shutdown --dbpath data -rm -rf data -popd -%endif - %files %dir %{gem_instdir} %{_bindir}/mongo_console @@ -109,6 +71,10 @@ popd %{gem_instdir}/spec %changelog +* Tue Feb 05 2019 Troy Dawson - 2.6.2-3 +- Remove tests because they depended on mongodb +-- https://pagure.io/fesco/issue/2078 + * Sat Feb 02 2019 Fedora Release Engineering - 2.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild