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