You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
265 lines
9.1 KiB
265 lines
9.1 KiB
%global gem_name cucumber
|
|
|
|
%{?_with_bootstrap: %global bootstrap 1}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
Version: 3.1.2
|
|
Release: 4%{?dist}
|
|
Summary: Tool to execute plain-text documents as functional tests
|
|
License: MIT
|
|
URL: https://cucumber.io/
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
# git clone https://github.com/cucumber/cucumber-ruby.git && cd cucumber-ruby
|
|
# git checkout v3.1.2 && tar czvf rubygem-cucumber-3.1.2-spec.tar.gz spec/ cucumber.yml
|
|
Source1: %{name}-%{version}-spec.tar.gz
|
|
# git clone https://github.com/cucumber/cucumber-ruby.git && cd cucumber-ruby
|
|
# git checkout v3.1.2 && tar czvf rubygem-cucumber-3.1.2-features.tar.gz features/
|
|
Source2: %{name}-%{version}-features.tar.gz
|
|
# Fix wire protocol.
|
|
# https://github.com/cucumber/cucumber-ruby/commit/486e4fe98b93580b63b504579d99c37790f4557d
|
|
Patch0: rubygem-cucumber-3.1.2-Pass-the-registry-to-the-Wire-plugin.patch
|
|
Requires: js-jquery < 4
|
|
BuildRequires: ruby(release)
|
|
BuildRequires: rubygems-devel
|
|
BuildRequires: ruby
|
|
BuildRequires: js-jquery < 4
|
|
BuildRequires: web-assets-devel
|
|
# Aruba has circular dependency with Cucumber.
|
|
%if ! 0%{?bootstrap}
|
|
BuildRequires: rubygem(aruba)
|
|
%endif
|
|
BuildRequires: rubygem(builder)
|
|
BuildRequires: rubygem(bundler)
|
|
BuildRequires: rubygem(cucumber-core)
|
|
BuildRequires: rubygem(cucumber-expressions)
|
|
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}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{gem_name}-%{version} -b 1 -b 2
|
|
|
|
%patch0 -p1
|
|
%gemspec_remove_file "lib/cucumber/step_argument.rb"
|
|
rm %{_builddir}/spec/cucumber/step_argument_spec.rb
|
|
|
|
# We don't have gherkin 5.1.0 in Fedora yet
|
|
%gemspec_remove_dep -s ../%{gem_name}-%{version}.gemspec -g gherkin '~> 5.1.0'
|
|
%gemspec_add_dep -s ../%{gem_name}-%{version}.gemspec -g gherkin '>= 4.1.0'
|
|
|
|
%build
|
|
# Create the gem as gem install only works on a gem file
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
# by default, so that we can move it into the buildroot in %%install
|
|
%gem_install
|
|
|
|
%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
|
|
|
|
# Replace the bundled jQuery with system version.
|
|
ln -sf %{_jsdir}/jquery/latest/jquery.min.js %{buildroot}%{gem_libdir}/cucumber/formatter/jquery-min.js
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
# Cucumber.yml is needed for both test suites.
|
|
# Used as fixture for rspec and options for cucumber.
|
|
ln -s %{_builddir}/cucumber.yml cucumber.yml
|
|
|
|
ln -s %{_builddir}/spec spec
|
|
# We don't need Pry.
|
|
sed -i '/require.*pry/ s/^/#/' spec/spec_helper.rb
|
|
|
|
rspec spec
|
|
|
|
%if ! 0%{?bootstrap}
|
|
ln -s %{_builddir}/features features
|
|
# This expects that test suite is executed from git repository.
|
|
sed -i '/Scenario: Passing feature/i\ @skip' features/docs/raketask.feature
|
|
|
|
# TODO: Fails with "/usr/share/ruby/delegate.rb:83:in `method_missing'", not entirely sure why
|
|
# Issue at github: https://github.com/cucumber/cucumber-ruby/issues/1317
|
|
sed -i '/Scenario: Ambiguous steps$/i\ @skip' features/docs/defining_steps/ambiguous_steps.feature
|
|
|
|
# A feature requires Gemfile to work.
|
|
touch Gemfile
|
|
|
|
# Use RUBYOPT to make sure that the Cucumber from current directory has
|
|
# precedence over system Cucumber, which is pulled in as Aruba dependency.
|
|
RUBYOPT=-Ilib cucumber --tags 'not @skip'
|
|
%endif
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{_bindir}/cucumber
|
|
%license %{gem_instdir}/LICENSE
|
|
%{gem_instdir}/bin
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
%doc %{gem_instdir}/README.md
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
|
%changelog
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Fri Sep 14 2018 Vít Ondruch <vondruch@redhat.com> - 3.1.2-3
|
|
- Remove step argument test case to tix FTBFS.
|
|
|
|
* Fri Sep 07 2018 Vít Ondruch <vondruch@redhat.com> - 3.1.2-2
|
|
- Fix wire protocol.
|
|
|
|
* Thu Aug 23 2018 Jaroslav Prokop <jar.prokop@volny.cz> - 3.1.2-1
|
|
- Update to Cucumber 3.1.2.
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Fri Jan 20 2017 Vít Ondruch <vondruch@redhat.com> - 2.4.0-1
|
|
- Update to Cucumber 2.4.0.
|
|
|
|
* 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
|