init
This commit is contained in:
parent
dde3ecc305
commit
0040327571
BIN
rack-test-0.8.3.gem
Normal file
BIN
rack-test-0.8.3.gem
Normal file
Binary file not shown.
59
rubygem-rack-test.spec
Normal file
59
rubygem-rack-test.spec
Normal file
@ -0,0 +1,59 @@
|
||||
%global gem_name rack-test
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 0.8.3
|
||||
Release: 1
|
||||
Summary: Simple testing API built on Rack
|
||||
License: MIT
|
||||
URL: http://github.com/rack-test/rack-test
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Source1: https://github.com/rack/%{gem_name}/archive/v%{version}.tar.gz
|
||||
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 rubygem(rspec) rubygem(sinatra)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
Rack::Test is a small, simple testing API for Rack apps. It can be used on its
|
||||
own or as a reusable starting point for Web frameworks and testing libraries
|
||||
to build on. Most of its initial functionality is an extraction of Merb 1.0's
|
||||
request helpers feature.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version} -b 1
|
||||
|
||||
%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}
|
||||
ln -s %{_builddir}/%{gem_name}-%{version}/spec spec
|
||||
sed -i '/[cC]ode[cC]/ s/^/#/' spec/spec_helper.rb
|
||||
sed -i "/require 'bundler\/setup'/ s/^/#/" spec/spec_helper.rb
|
||||
rspec spec
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%license %{gem_instdir}/MIT-LICENSE.txt
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/History.md
|
||||
%doc %{gem_instdir}/README.md
|
||||
|
||||
%changelog
|
||||
* Fri Aug 21 2020 luoshengwei <luoshengwei@huawei.com> - 0.8.3-1
|
||||
- package init
|
||||
4
rubygem-rack-test.yaml
Normal file
4
rubygem-rack-test.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: rack/rack-test
|
||||
tag_prefix: "rack-test-"
|
||||
separator: "."
|
||||
BIN
v0.8.3.tar.gz
Normal file
BIN
v0.8.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user