From 1b9d96dd60927d7ac21019c6adc89e3923bf4010 Mon Sep 17 00:00:00 2001 From: Jaroslav Prokop Date: Thu, 23 Aug 2018 16:44:24 +0200 Subject: [PATCH] Update to Cucumber-core 3.2.0. --- .gitignore | 2 ++ rubygem-cucumber-core.spec | 38 ++++++++++++++++++++------------------ sources | 3 ++- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 8114deb..fc20855 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /cucumber-core-1.4.0.gem /cucumber-core-1.5.0.gem +/cucumber-core-3.2.0.gem +/rubygem-cucumber-core-3.2.0-spec.tar.gz diff --git a/rubygem-cucumber-core.spec b/rubygem-cucumber-core.spec index 2f82fb6..d30c545 100644 --- a/rubygem-cucumber-core.spec +++ b/rubygem-cucumber-core.spec @@ -2,20 +2,24 @@ %global gem_name cucumber-core Name: rubygem-%{gem_name} -Version: 1.5.0 -Release: 6%{?dist} +Version: 3.2.0 +Release: 1%{?dist} Summary: Core library for the Cucumber BDD app -Group: Development/Languages License: MIT -URL: http://cukes.info +URL: https://cucumber.io Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/cucumber/cucumber-ruby-core.git && cd cucumber-ruby-core +# git checkout v3.2.0 && tar czvf rubygem-cucumber-core-3.2.0-spec.tar.gz spec/ +Source1: %{name}-%{version}-spec.tar.gz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(gherkin) BuildRequires: rubygem(rspec) -# BuildRequires: rubygem(unindent) BuildRequires: rubygem(kramdown) +BuildRequires: rubygem(cucumber-tag_expressions) +BuildRequires: rubygem(backports) +# BuildRequires: rubygem(unindent) BuildArch: noarch %description @@ -24,7 +28,6 @@ Core library for the Cucumber BDD app. %package doc Summary: Documentation for %{name} -Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch @@ -32,14 +35,15 @@ BuildArch: noarch Documentation for %{name}. %prep -gem unpack %{SOURCE0} +%setup -q -n %{gem_name}-%{version} -b 1 -%setup -q -D -T -n %{gem_name}-%{version} +# We do not have gherkin 5 in Fedora yet. +%gemspec_remove_dep -s ../%{gem_name}-%{version}.gemspec -g gherkin '>= 5.0.0' +%gemspec_add_dep -s ../%{gem_name}-%{version}.gemspec -g gherkin '>= 4.1.0' -gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build -gem build %{gem_name}.gemspec +gem build ../%{gem_name}-%{version}.gemspec %gem_install @@ -51,13 +55,13 @@ cp -a .%{gem_dir}/* \ %check pushd .%{gem_instdir} +ln -s %{_builddir}/spec spec + # unindent is not available in Fedora => avoid the requires. for file in $(grep -Rl unindent spec); do sed -i "/require 'unindent'/ s/^/#/" "${file}" sed -i '/^ *expect.*unindent$/ i \pending' "${file}" done -sed -i '/^ *expect_tag_excess/ i \pending' \ - spec/cucumber/core_spec.rb LANG=C.UTF-8 rspec spec popd @@ -67,21 +71,19 @@ popd %exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE %{gem_libdir} -# This is not the original file => makes no sense to ship it. -%exclude %{gem_instdir}/cucumber-core.gemspec %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}/spec +%doc %{gem_instdir}/CHANGELOG.md %changelog +* Thu Aug 23 2018 Jaroslav Prokop - 3.2.0-1 +- Update to Cucumber-core 3.2.0. + * Sat Jul 14 2018 Fedora Release Engineering - 1.5.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index d247ffd..d497a38 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (cucumber-core-1.5.0.gem) = 544d2c5707bde46d0c12dc975b3858e663776d9bc87ef044681525a547ef2de171a74ba0c53fb28dafcbdf90a153bea5357ec1a129f11b2c0dfedd288c5def74 +SHA512 (cucumber-core-3.2.0.gem) = 98420a6ecde649609c985efb7c4fd5d11646eec587bf98de789174e3918718c3725bfe2dfd16bd62fe515db0b70dec5629ec5efa6f7a9fbbebf657b85a8af6cc +SHA512 (rubygem-cucumber-core-3.2.0-spec.tar.gz) = 81df5aa8824e9f4b7fc958a7ff473c9b80a1bcbcc77868f0e2a937fced2e6386cfeef2eababa369f5b78cf89315e4fadc47f42b06176da2b7ac2932ca872e361