|
|
|
%global gem_name cucumber
|
|
|
|
|
|
|
|
%{?_with_bootstrap: %global bootstrap 1}
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 2.3.3
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Tool to execute plain-text documents as functional tests
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://cukes.info
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
# Fix test failures.
|
|
|
|
# https://github.com/cucumber/cucumber-ruby/commit/25d2ca520129e25cf6c033f9e7a84a7e3f582de0
|
|
|
|
Patch0: cucumber-3.0.0.pre.1-Fix-brittle-spec.patch
|
|
|
|
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
|
|
|
|
Cucumber lets software development teams describe how software should behave
|
|
|
|
in plain text. The text is written in a business-readable domain-specific
|
|
|
|
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
|
|
|
|
%setup -q -c -T
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
%patch0 -p1
|
|
|
|
popd
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
cp -pa .%{_bindir}/* \
|
|
|
|
%{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
|
|
|
# Fix permissions.
|
|
|
|
# https://github.com/cucumber/cucumber-ruby/pull/968
|
|
|
|
chmod a-x %{buildroot}%{gem_instdir}/lib/cucumber/formatter/cucumber.*
|
|
|
|
|
|
|
|
# Replave the bundled jQuery with system version.
|
|
|
|
ln -sf %{_jsdir}/jquery/1/jquery.min.js %{buildroot}%{gem_libdir}/cucumber/formatter/jquery-min.js
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
# We don't need Pry.
|
|
|
|
sed -i '/require.*pry/ s/^/#/' spec/spec_helper.rb
|
|
|
|
|
|
|
|
rspec spec
|
|
|
|
|
|
|
|
%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
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{_bindir}/cucumber
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
%license %{gem_instdir}/LICENSE
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
|
%{gem_instdir}/Gemfile*
|
|
|
|
%doc %{gem_instdir}/History.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/cucumber.yml
|
|
|
|
%{gem_instdir}/cucumber.gemspec
|
|
|
|
%{gem_instdir}/examples
|
|
|
|
%{gem_instdir}/features
|
|
|
|
%{gem_instdir}/gem_tasks
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Nov 24 2016 Vít Ondruch <vondruch@redhat.com> - 2.3.3-2
|
|
|
|
- Fix FTBFS.
|
|
|
|
|
|
|
|
* 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
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.18-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jan 16 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.18-1
|
|
|
|
- 1.3.18
|
|
|
|
ref: https://github.com/cucumber/cucumber/issues/781
|
|
|
|
|
|
|
|
* Wed Jun 18 2014 Josef Stribny <jstribny@redhat.com> - 1.3.15-1
|
|
|
|
- Update to cucumber 1.3.15
|
|
|
|
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Feb 23 2013 Vít Ondruch <vondruch@redhat.com> - 1.2.1-3
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
- Drop useless build requires.
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
* Tue Nov 13 2012 Mo Morsi <mmorsi@redhat.com> - 1.2.1-1
|
|
|
|
- Update cucumber to version 1.2.1
|
|
|
|
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Mar 27 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.1.9-1
|
|
|
|
- Update cucumber to version 1.1.9
|
|
|
|
|
|
|
|
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.1-3
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jul 12 2011 Mo Morsi <mmorsi@redhat.com> - 1.0.1-1
|
|
|
|
- update to latest upstream release
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Feb 04 2011 Michal Fojtik <mfojtik@redhat.com> - 0.10.0-1
|
|
|
|
- Version bump
|
|
|
|
|
|
|
|
* Mon Sep 27 2010 Michal Fojtik <mfojtik@redhat.com> - 0.9.0-4
|
|
|
|
- Fixed JSON version again
|
|
|
|
|
|
|
|
* Fri Sep 24 2010 Michal Fojtik <mfojtik@redhat.com> - 0.9.0-3
|
|
|
|
- Fixed JSON version
|
|
|
|
|
|
|
|
* Fri Sep 24 2010 Michal Fojtik <mfojtik@redhat.com> - 0.9.0-2
|
|
|
|
- Fixed gherkin version in dependency list
|
|
|
|
|
|
|
|
* Fri Sep 24 2010 Michal Fojtik <mfojtik@redhat.com> - 0.9.0-1
|
|
|
|
- Version bump to match upstream
|
|
|
|
- Fixed dependency issue with new gherkin package
|
|
|
|
|
|
|
|
* Wed Aug 04 2010 Michal Fojtik <mfojtik@redhat.com> - 0.8.3-4
|
|
|
|
- Fixed JSON version
|
|
|
|
|
|
|
|
* Wed Aug 04 2010 Michal Fojtik <mfojtik@redhat.com> - 0.8.3-3
|
|
|
|
- Removed JSON patch (JSON updated in Fedora)
|
|
|
|
|
|
|
|
* Sun Aug 01 2010 Michal Fojtik <mfojtik@redhat.com> - 0.8.3-2
|
|
|
|
- Patched Rakefile and replaced rspec beta version dependency
|
|
|
|
- Patched Rakefile and downgraded JSON dependency
|
|
|
|
|
|
|
|
* Wed Jun 30 2010 Michal Fojtik <mfojtik@redhat.com> - 0.8.3-1
|
|
|
|
- Newer release
|
|
|
|
|
|
|
|
* Sun Oct 18 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.4.2-1
|
|
|
|
- Newer release
|
|
|
|
|
|
|
|
* Mon Oct 12 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.4.0-1
|
|
|
|
- Newer release
|
|
|
|
|
|
|
|
* Fri Jun 26 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.3.10-3
|
|
|
|
- Get rid of duplicate files (thanks to Mamoru Tasaka)
|
|
|
|
|
|
|
|
* Mon Jun 08 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.3.10-2
|
|
|
|
- Use geminstdir macro where appropriate
|
|
|
|
- Do not move examples around
|
|
|
|
- Depend on ruby(abi)
|
|
|
|
- Replace defines with globals
|
|
|
|
|
|
|
|
* Fri Jun 05 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.3.10-1
|
|
|
|
- Package generated by gem2rpm
|
|
|
|
- Move examples into documentation
|
|
|
|
- Remove empty files
|
|
|
|
- Fix up License
|