!2 Fix build fail

Merge pull request !2 from lyn/master
This commit is contained in:
openeuler-ci-bot 2020-09-07 12:13:39 +08:00 committed by Gitee
commit 9cf35502a5

View File

@ -1,19 +1,17 @@
%bcond_with bootstrap
%global gem_name httpclient %global gem_name httpclient
%global rubyabi 1.8 %global rubyabi 1.8
Summary: HTTP Client interface for ruby Summary: HTTP Client interface for ruby
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.8.0 Version: 2.8.0
Release: 1 Release: 2
License: (Ruby or BSD) and Public Domain License: (Ruby or BSD) and Public Domain
URL: https://github.com/nahi/httpclient URL: https://github.com/nahi/httpclient
Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
Requires: ruby(release) Requires: ruby(release)
BuildRequires: rubygem(minitest) BuildRequires: rubygem(minitest) rubygems-devel rubygem(http-cookie)
BuildRequires: rubygems-devel rubygem(http-cookie)
BuildArch: noarch BuildArch: noarch
%if 0%{?el7} || 0%{?el6}
Provides: rubygem(%{gem_name}) = %{version} Provides: rubygem(%{gem_name}) = %{version}
%endif
%description %description
an interface to HTTP Client for the ruby language an interface to HTTP Client for the ruby language
@ -21,7 +19,6 @@ an interface to HTTP Client for the ruby language
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}
@ -48,11 +45,13 @@ done
find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \; find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \; find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
%if %{with bootstrap}
%check %check
pushd %{buildroot}%{gem_instdir} pushd %{buildroot}%{gem_instdir}
rm -f test/test_auth.rb rm -f test/test_auth.rb
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)' ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)'
popd popd
%endif
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
@ -68,5 +67,8 @@ popd
%doc %{gem_instdir}/test %doc %{gem_instdir}/test
%changelog %changelog
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 2.8.0-2
- fix build fail
* Thu Aug 20 2020 tuShenmei <tushenmei@huawei.com> - 2.8.0-1 * Thu Aug 20 2020 tuShenmei <tushenmei@huawei.com> - 2.8.0-1
- package init - package init