commit
9cf35502a5
@ -1,19 +1,17 @@
|
||||
%bcond_with bootstrap
|
||||
%global gem_name httpclient
|
||||
%global rubyabi 1.8
|
||||
Summary: HTTP Client interface for ruby
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.8.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: (Ruby or BSD) and Public Domain
|
||||
URL: https://github.com/nahi/httpclient
|
||||
Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
||||
Requires: ruby(release)
|
||||
BuildRequires: rubygem(minitest)
|
||||
BuildRequires: rubygems-devel rubygem(http-cookie)
|
||||
BuildRequires: rubygem(minitest) rubygems-devel rubygem(http-cookie)
|
||||
BuildArch: noarch
|
||||
%if 0%{?el7} || 0%{?el6}
|
||||
Provides: rubygem(%{gem_name}) = %{version}
|
||||
%endif
|
||||
%description
|
||||
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}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
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 /go+r -exec chmod -v go+r {} \;
|
||||
|
||||
%if %{with bootstrap}
|
||||
%check
|
||||
pushd %{buildroot}%{gem_instdir}
|
||||
rm -f test/test_auth.rb
|
||||
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
@ -68,5 +67,8 @@ popd
|
||||
%doc %{gem_instdir}/test
|
||||
|
||||
%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
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user