Update to Thor 1.0.1

also enhance .spec and .gitignore files.
Resolves: rhbz#1783465
epel9
Pavel Valena 4 years ago
parent 1697c57c7c
commit 41d781a430

10
.gitignore vendored

@ -1,8 +1,2 @@
thor-0.13.6.gem
/thor-0.14.6.gem
/thor-0.16.0.gem
/thor-0.17.0.gem
/thor-0.18.1.gem
/thor-0.19.1.gem
/thor-0.20.3-spec.tar.gz
/thor-0.20.3.gem
/thor-*-spec.txz
/thor-*.gem

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

@ -1,2 +1,2 @@
SHA512 (thor-0.20.3-spec.tar.gz) = e180f8644376eca2a6e13265a5e6cc43e1813a43d3c00d7e46382193ce8f967e9e44b0d6245d278963ea61ca3e97c289054ea411b8ff916a9f82a9e28bab5b51
SHA512 (thor-0.20.3.gem) = 4c834408321f4f13b4878ee0e57a1fcd9a2294faf6d4c8c52ed909c2f14634b7810e3a0bffa1920f37ccd7baced2ff103a06f679f653a133bd647ac1e9add522
SHA512 (thor-1.0.1.gem) = 51560fabff2df52ff1d6745d419dfd3e26d58d79d36e2baa5a6aa9304a5ac0dc539abf956cfa9d8c1ad882586aa7e9edc886ea4cdc9a9574315befaf5dfb91b0
SHA512 (thor-1.0.1-spec.txz) = 5c542a3fa280c0e5de68e0e490ececd3bdfb72822fec571494c0b0c89221fe9410e70829b5175548a5767df7dc4b241d4f508328b00bca014c1d7eb67b794a9d

Loading…
Cancel
Save