From d230d47f166f36cea999fe165250dd8c0f573612 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Wed, 5 Jan 2022 10:49:22 +0100 Subject: [PATCH] Disable tests Signed-off-by: Igor Raits --- rubygem-thor.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rubygem-thor.spec b/rubygem-thor.spec index e7b2532..4a191e4 100644 --- a/rubygem-thor.spec +++ b/rubygem-thor.spec @@ -1,6 +1,8 @@ # Generated from thor-0.12.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name thor +%bcond_with check + Name: rubygem-%{gem_name} Version: 1.1.0 Release: 3%{?dist} @@ -18,10 +20,12 @@ Requires: rubygem(io-console) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby +%if %{with check} BuildRequires: rubygem(io-console) BuildRequires: rubygem(rspec) BuildRequires: rubygem(webmock) BuildRequires: %{_bindir}/git +%endif BuildArch: noarch %description @@ -62,6 +66,7 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x find %{buildroot}%{gem_instdir}/bin -type f | \ xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"' +%if %{with check} %check pushd .%{gem_instdir} cp -r %{_builddir}/spec . @@ -73,6 +78,7 @@ sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb # https://github.com/erikhuda/thor/issues/645 LC_ALL=C.UTF-8 rspec -rreadline spec popd +%endif %files %dir %{gem_instdir}