Upgrade to 1.1.0

(cherry picked from commit 25f8c7731c7c4e964f16ab816044957f203669ff)
This commit is contained in:
wangkerong 2022-03-04 14:29:52 +08:00 committed by openeuler-sync-bot
parent 9c22d5decf
commit 00486a957e
5 changed files with 38 additions and 24 deletions

View File

@ -1,29 +1,39 @@
%bcond_with bootstrap
%global gem_name thor %global gem_name thor
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.20.3 Version: 1.1.0
Release: 2 Release: 1
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/thor-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/erikhuda/thor/archive/v%{version}.tar.gz Source1: %{gem_name}-%{version}-spec.txz
Requires: rubygem(io-console) Requires: rubygem(io-console)
BuildRequires: ruby(release) rubygems-devel ruby rubygem(io-console) rubygem(rspec) BuildRequires: ruby(release)
BuildRequires: rubygem(webmock) git BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: rubygem(io-console)
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(webmock) rubygem(rexml)
BuildRequires: rubygem(did_you_mean)
BuildRequires: git
BuildArch: noarch BuildArch: noarch
%description %description
Thor is a toolkit for building powerful command-line interfaces. Thor is a toolkit for building powerful command-line interfaces.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildArch: noarch BuildArch: noarch
%description doc %description doc
Documentation for %{name}. Documentation for %{name}.
%prep %prep
%setup -q -n %{gem_name}-%{version} %setup -q -n %{gem_name}-%{version} -b1
%build %build
gem build ../%{gem_name}-%{version}.gemspec gem build ../%{gem_name}-%{version}.gemspec
@ -33,22 +43,23 @@ gem build ../%{gem_name}-%{version}.gemspec
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \ cp -a .%{_bindir}/* \
%{buildroot}%{_bindir}/ %{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
find %{buildroot}%{gem_instdir}/bin -type f | \ find %{buildroot}%{gem_instdir}/bin -type f | \
xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"' xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"'
%if %{with bootstrap}
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
tar xzvf %{SOURCE1} cp -r %{_builddir}/spec .
cd %{gem_name}-%{version}
sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb
LC_ALL=C.UTF-8 rspec spec LC_ALL=C.UTF-8 rspec -rreadline spec
popd popd
%endif
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
@ -68,6 +79,9 @@ popd
%{gem_instdir}/thor.gemspec %{gem_instdir}/thor.gemspec
%changelog %changelog
* Fri May 04 2022 wangkerong <wangkerong@h-partners.com> - 1.1.0-1
- Upgrade to 1.1.0
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 0.20.3-2 * Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 0.20.3-2
- fix build fail - fix build fail

Binary file not shown.

BIN
thor-1.1.0-spec.txz Normal file

Binary file not shown.

BIN
thor-1.1.0.gem Normal file

Binary file not shown.

Binary file not shown.