Disable tests

Signed-off-by: Igor Raits <igor.raits@gmail.com>
epel9 imports/e9/rubygem-thor-1.1.0-3.el9
Igor Raits 3 years ago
parent 95ccfb1096
commit d230d47f16
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

@ -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}

Loading…
Cancel
Save