Update to Cucumber 2.3.3.

Bootstrap round.
epel9
Vít Ondruch 9 years ago
parent bda70b864c
commit a9cbc863af

1
.gitignore vendored

@ -1,2 +1,3 @@
cucumber-1.2.1.gem/cucumber-1.3.15.gem cucumber-1.2.1.gem/cucumber-1.3.15.gem
/cucumber-1.3.18.gem /cucumber-1.3.18.gem
/cucumber-2.3.3.gem

@ -1,16 +1,34 @@
%global gem_name cucumber %global gem_name cucumber
Summary: Tool to execute plain-text documents as functional tests %{?_with_bootstrap: %global bootstrap 1}
Name: rubygem-%{gem_name} %global bootstrap 1
Version: 1.3.18
Release: 3%{?dist} Name: rubygem-%{gem_name}
Group: Development/Languages Version: 2.3.3
License: MIT Release: 0.1%{?dist}
URL: http://cukes.info Summary: Tool to execute plain-text documents as functional tests
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: MIT
BuildRequires: rubygems-devel URL: http://cukes.info
BuildArch: noarch Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: js-jquery1
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BUildRequires: js-jquery1
BuildRequires: web-assets-devel
# Aruba has circular dependency with Cucumber.
%if ! 0%{?bootstrap}
BuildRequires: rubygem(aruba)
%endif
BuildRequires: rubygem(builder)
BuildRequires: rubygem(cucumber-core)
BuildRequires: rubygem(cucumber-wire)
BuildRequires: rubygem(multi_json)
BuildRequires: rubygem(multi_test)
BuildRequires: rubygem(nokogiri)
BuildRequires: rubygem(rspec)
BuildArch: noarch
%description %description
Cucumber lets software development teams describe how software should behave Cucumber lets software development teams describe how software should behave
@ -18,6 +36,15 @@ in plain text. The text is written in a business-readable domain-specific
language and serves as documentation, automated tests and development-aid. language and serves as documentation, automated tests and development-aid.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep %prep
%setup -q -c -T %setup -q -c -T
%gem_install -n %{SOURCE0} %gem_install -n %{SOURCE0}
@ -27,7 +54,7 @@ language and serves as documentation, automated tests and development-aid.
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
@ -37,46 +64,59 @@ cp -pa .%{_bindir}/* \
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
rm -f $RPM_BUILD_ROOT%{gem_instdir}/.ruby-gemset # Fix permissions.
rm -f $RPM_BUILD_ROOT%{gem_instdir}/.ruby-version # https://github.com/cucumber/cucumber-ruby/pull/968
rm -f $RPM_BUILD_ROOT%{gem_instdir}/.yardopts chmod a-x %{buildroot}%{gem_instdir}/lib/cucumber/formatter/cucumber.*
rm -f $RPM_BUILD_ROOT%{gem_instdir}/.gitattributes
rm -f $RPM_BUILD_ROOT%{gem_instdir}/.gitmodules # Replave the bundled jQuery with system version.
rm -f $RPM_BUILD_ROOT%{gem_instdir}/.yardopts ln -sf %{_jsdir}/jquery/1/jquery.min.js %{buildroot}%{gem_libdir}/cucumber/formatter/jquery-min.js
rm -f $RPM_BUILD_ROOT%{gem_instdir}/.travis.yml
rm -f $RPM_BUILD_ROOT%{gem_instdir}/Gemfile.lock %check
rm -f $RPM_BUILD_ROOT%{gem_instdir}/.rspec pushd .%{gem_instdir}
find $RPM_BUILD_ROOT%{gem_instdir} -type f | grep '.gitignore' | xargs rm -f # We don't need Pry.
sed -i '/require.*pry/ s/^/#/' spec/spec_helper.rb
# Remove zero-length documentation files rspec spec
find $RPM_BUILD_ROOT%{gem_docdir} -empty -delete
%if ! 0%{?bootstrap}
# There are several test failures, such as:
# superclass mismatch for class HiddenBackgroundPrinter (TypeError)
# - Not really sure what is the reason and how to fix this.
# missing Bundler and missing git
# - But adding Bundler uncovers missing git repository, now worth of the
# effort probably.
cucumber | grep '1113 steps (7 failed, 3 skipped, 1103 passed)'
%endif
popd
%files %files
%defattr(-,root,root,-)
%{_bindir}/cucumber
%dir %{gem_instdir} %dir %{gem_instdir}
%{_bindir}/cucumber
%exclude %{gem_instdir}/.*
%{gem_instdir}/bin %{gem_instdir}/bin
%{gem_instdir}/features %license %{gem_instdir}/LICENSE
%{gem_instdir}/gem_tasks
%{gem_libdir} %{gem_libdir}
%{gem_instdir}/fixtures %exclude %{gem_cache}
%{gem_instdir}/spec %{gem_spec}
%{gem_instdir}/cucumber.yml
%{gem_instdir}/cucumber.gemspec %files doc
%{gem_instdir}/Rakefile
%doc %{gem_instdir}/examples
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/LICENSE %doc %{gem_instdir}/CONTRIBUTING.md
%{gem_instdir}/Gemfile*
%doc %{gem_instdir}/History.md %doc %{gem_instdir}/History.md
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%doc %{gem_instdir}/CONTRIBUTING.md %{gem_instdir}/Rakefile
%doc %{gem_instdir}/Gemfile %{gem_instdir}/cucumber.yml
%doc %{gem_instdir}/legacy_features %{gem_instdir}/cucumber.gemspec
%{gem_cache} %{gem_instdir}/examples
%{gem_spec} %{gem_instdir}/features
%{gem_instdir}/gem_tasks
%{gem_instdir}/spec
%changelog %changelog
* Tue Apr 05 2016 Vít Ondruch <vondruch@redhat.com> - 2.3.3-1
- Update to Cucumber 2.3.3.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.18-3 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.18-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
@ -103,7 +143,7 @@ find $RPM_BUILD_ROOT%{gem_docdir} -empty -delete
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Nov 13 2012 Mo Morsi <mmorsi@redhat.com> - 1.2.1-1 * Tue Nov 13 2012 Mo Morsi <mmorsi@redhat.com> - 1.2.1-1
- Update cucumber to version 1.2.1 - Update cucumber to version 1.2.1
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-2 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-2
@ -146,7 +186,7 @@ find $RPM_BUILD_ROOT%{gem_docdir} -empty -delete
* Wed Aug 04 2010 Michal Fojtik <mfojtik@redhat.com> - 0.8.3-3 * Wed Aug 04 2010 Michal Fojtik <mfojtik@redhat.com> - 0.8.3-3
- Removed JSON patch (JSON updated in Fedora) - Removed JSON patch (JSON updated in Fedora)
* Wed Aug 01 2010 Michal Fojtik <mfojtik@redhat.com> - 0.8.3-2 * Sun Aug 01 2010 Michal Fojtik <mfojtik@redhat.com> - 0.8.3-2
- Patched Rakefile and replaced rspec beta version dependency - Patched Rakefile and replaced rspec beta version dependency
- Patched Rakefile and downgraded JSON dependency - Patched Rakefile and downgraded JSON dependency

@ -1 +1 @@
f477b6628c4e9bc4e4764d3ff585682d cucumber-1.3.18.gem 53e558c2f29a73b48399381071e10385 cucumber-2.3.3.gem

Loading…
Cancel
Save