diff --git a/3.8.1.tar.gz b/3.8.1.tar.gz new file mode 100644 index 0000000..6687dcb Binary files /dev/null and b/3.8.1.tar.gz differ diff --git a/capybara-3.8.1.gem b/capybara-3.8.1.gem new file mode 100644 index 0000000..07d32e9 Binary files /dev/null and b/capybara-3.8.1.gem differ diff --git a/rubygem-capybara.spec b/rubygem-capybara.spec new file mode 100644 index 0000000..cadc717 --- /dev/null +++ b/rubygem-capybara.spec @@ -0,0 +1,64 @@ +%global gem_name capybara +Name: rubygem-%{gem_name} +Version: 3.8.1 +Release: 1 +Summary: Capybara aims to simplify the process of integration testing Rack applications +License: MIT +URL: https://github.com/teamcapybara/capybara +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: https://github.com/team%{gem_name}/%{gem_name}/archive/%{version}.tar.gz +BuildRequires: ruby(release) rubygems-devel ruby rubygem(selenium-webdriver) rubygem(sinatra) +BuildRequires: rubygem(rspec) rubygem(launchy) rubygem(minitest) rubygem(puma) +BuildRequires: rubygem(nokogiri) rubygem(xpath) rubygem(rack-test) rubygem(mini_mime) +BuildRequires: rubygem(cucumber) +BuildArch: noarch +%description +Capybara is an integration testing tool for rack based web applications. It +simulates how a user would interact with a website. + +%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}/features features +sed -i '/end.to raise_error(EOFError)/ s/EOFError/Net::ReadTimeout/' \ + spec/server_spec.rb +rspec spec +sed -i "/^require 'bundler/ s/^/#/g" \ + features/support/env.rb +cucumber +popd + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/License.txt +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/History.md +%doc %{gem_instdir}/README.md +%{gem_instdir}/spec + +%changelog +* Wed Aug 19 2020 fanjiachen - 3.8.1-1 +- package init diff --git a/rubygem-capybara.yaml b/rubygem-capybara.yaml new file mode 100644 index 0000000..87377c5 --- /dev/null +++ b/rubygem-capybara.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: teamcapybara/capybara +tag_prefix: "" +seperator: "."