package init
This commit is contained in:
parent
ccbcea588a
commit
05063012d2
69
rubygem-webmock.spec
Normal file
69
rubygem-webmock.spec
Normal file
@ -0,0 +1,69 @@
|
||||
%global gem_name webmock
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 3.5.1
|
||||
Release: 1
|
||||
Summary: Library for stubbing HTTP requests in Ruby
|
||||
License: MIT
|
||||
URL: http://github.com/bblimke/webmock
|
||||
Source0: https://rubygems.org/gems/webmock-%{version}.gem
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(addressable) rubygem(crack)
|
||||
BuildRequires: rubygem(curb) rubygem(excon) rubygem(hashdiff) rubygem(httpclient)
|
||||
BuildRequires: rubygem(minitest) rubygem(rack) rubygem(rspec) rubygem(test-unit)
|
||||
BuildRequires: rubygem(typhoeus)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
WebMock allows stubbing HTTP requests and setting expectations on HTTP
|
||||
requests.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
sed -i '/^#!\/usr\/bin\/env\ rake/ d' Rakefile
|
||||
chmod -x Rakefile
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
ruby -e 'Dir.glob "./minitest/**/*.rb", &method(:require)'
|
||||
ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
|
||||
sed -i '/patron/ s/^/#/' spec/spec_helper.rb
|
||||
sed -i '/em-http/ s/^/#/' spec/spec_helper.rb
|
||||
rspec spec --exclude-pattern 'spec/{quality_spec.rb,acceptance/{patron,http_rb,em_http_request}/*}'
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%exclude %{gem_instdir}/.*
|
||||
%license %{gem_instdir}/LICENSE
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/CHANGELOG.md
|
||||
%{gem_instdir}/Gemfile
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/minitest
|
||||
%{gem_instdir}/spec
|
||||
%{gem_instdir}/test
|
||||
%{gem_instdir}/webmock.gemspec
|
||||
|
||||
%changelog
|
||||
* Sat Aug 8 2020 yanan li <liyanan032@huawei.com> - 3.5.1-1
|
||||
- Package init
|
||||
5
rubygem-webmock.yaml
Normal file
5
rubygem-webmock.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: http://github.com/bblimke/webmock.git
|
||||
version_control: github
|
||||
src_repo: bblimke/webmock
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
webmock-3.5.1.gem
Normal file
BIN
webmock-3.5.1.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user