|
|
@ -2,15 +2,16 @@
|
|
|
|
%global gem_name thor
|
|
|
|
%global gem_name thor
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 0.20.3
|
|
|
|
Version: 1.0.1
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Thor is a toolkit for building powerful command-line interfaces
|
|
|
|
Summary: Thor is a toolkit for building powerful command-line interfaces
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://whatisthor.com/
|
|
|
|
URL: http://whatisthor.com/
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
# git clone https://github.com/erikhuda/thor.git
|
|
|
|
# The test suite is not shipped with the gem, you may check it out like so:
|
|
|
|
# git checkout v0.20.3 && tar czvf thor-0.20.3-spec.tar.gz spec/
|
|
|
|
# git clone https://github.com/erikhuda/thor.git --no-checkout
|
|
|
|
Source1: %{gem_name}-%{version}-spec.tar.gz
|
|
|
|
# cd thor && git archive -v -o thor-1.0.1-spec.txz v1.0.1 spec/
|
|
|
|
|
|
|
|
Source1: %{gem_name}-%{version}-spec.txz
|
|
|
|
# ruby package has just soft dependency on rubygem(io-console), while
|
|
|
|
# ruby package has just soft dependency on rubygem(io-console), while
|
|
|
|
# Thor always requires it.
|
|
|
|
# Thor always requires it.
|
|
|
|
Requires: rubygem(io-console)
|
|
|
|
Requires: rubygem(io-console)
|
|
|
@ -36,7 +37,7 @@ BuildArch: noarch
|
|
|
|
Documentation for %{name}.
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
%setup -q -n %{gem_name}-%{version} -b1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
@ -63,14 +64,14 @@ find %{buildroot}%{gem_instdir}/bin -type f | \
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
tar xzvf %{SOURCE1}
|
|
|
|
cp -r %{_builddir}/spec .
|
|
|
|
|
|
|
|
|
|
|
|
# kill simplecov dependency
|
|
|
|
# kill simplecov dependency
|
|
|
|
sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb
|
|
|
|
sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb
|
|
|
|
|
|
|
|
|
|
|
|
# Thor does not specify encoding of its imputs, what might cause issues.
|
|
|
|
# Thor does not specify encoding of its imputs, what might cause issues.
|
|
|
|
# https://github.com/erikhuda/thor/issues/645
|
|
|
|
# https://github.com/erikhuda/thor/issues/645
|
|
|
|
LC_ALL=C.UTF-8 rspec spec
|
|
|
|
LC_ALL=C.UTF-8 rspec -rreadline spec
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -91,6 +92,10 @@ popd
|
|
|
|
%{gem_instdir}/thor.gemspec
|
|
|
|
%{gem_instdir}/thor.gemspec
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Aug 05 23:45:19 GMT 2020 Pavel Valena <pvalena@redhat.com> - 1.0.1-1
|
|
|
|
|
|
|
|
- Update to Thor 1.0.1.
|
|
|
|
|
|
|
|
Resolves: rhbz#1783465
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.3-4
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|