fix build fail

This commit is contained in:
lyn1001 2020-09-05 18:01:31 +08:00
parent c18f4ea4c7
commit b8830db139

View File

@ -1,7 +1,8 @@
%bcond_with bootstrap
%global gem_name thor %global gem_name thor
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.20.3 Version: 0.20.3
Release: 1 Release: 2
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/
@ -39,6 +40,7 @@ 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} tar xzvf %{SOURCE1}
@ -46,6 +48,7 @@ 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 spec
popd popd
%endif
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
@ -65,5 +68,8 @@ popd
%{gem_instdir}/thor.gemspec %{gem_instdir}/thor.gemspec
%changelog %changelog
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 0.20.3-2
- fix build fail
* Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 0.20.3-1 * Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 0.20.3-1
- Package init - Package init