Upgrade to 1.1.0
(cherry picked from commit 25f8c7731c7c4e964f16ab816044957f203669ff)
This commit is contained in:
parent
9c22d5decf
commit
00486a957e
@ -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
|
||||||
|
|
||||||
|
|||||||
BIN
thor-0.20.3.gem
BIN
thor-0.20.3.gem
Binary file not shown.
BIN
thor-1.1.0-spec.txz
Normal file
BIN
thor-1.1.0-spec.txz
Normal file
Binary file not shown.
BIN
thor-1.1.0.gem
Normal file
BIN
thor-1.1.0.gem
Normal file
Binary file not shown.
BIN
v0.20.3.tar.gz
BIN
v0.20.3.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user