Update to Cucumber-core 3.2.0.

epel9
Jaroslav Prokop 6 years ago
parent 807ba99d25
commit 1b9d96dd60

2
.gitignore vendored

@ -1,2 +1,4 @@
/cucumber-core-1.4.0.gem /cucumber-core-1.4.0.gem
/cucumber-core-1.5.0.gem /cucumber-core-1.5.0.gem
/cucumber-core-3.2.0.gem
/rubygem-cucumber-core-3.2.0-spec.tar.gz

@ -2,20 +2,24 @@
%global gem_name cucumber-core %global gem_name cucumber-core
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 1.5.0 Version: 3.2.0
Release: 6%{?dist} Release: 1%{?dist}
Summary: Core library for the Cucumber BDD app Summary: Core library for the Cucumber BDD app
Group: Development/Languages
License: MIT License: MIT
URL: http://cukes.info URL: https://cucumber.io
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem 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: ruby(release)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
BuildRequires: ruby BuildRequires: ruby
BuildRequires: rubygem(gherkin) BuildRequires: rubygem(gherkin)
BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec)
# BuildRequires: rubygem(unindent)
BuildRequires: rubygem(kramdown) BuildRequires: rubygem(kramdown)
BuildRequires: rubygem(cucumber-tag_expressions)
BuildRequires: rubygem(backports)
# BuildRequires: rubygem(unindent)
BuildArch: noarch BuildArch: noarch
%description %description
@ -24,7 +28,6 @@ Core library for the Cucumber BDD app.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildArch: noarch BuildArch: noarch
@ -32,14 +35,15 @@ BuildArch: noarch
Documentation for %{name}. Documentation for %{name}.
%prep %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 %build
gem build %{gem_name}.gemspec gem build ../%{gem_name}-%{version}.gemspec
%gem_install %gem_install
@ -51,13 +55,13 @@ cp -a .%{gem_dir}/* \
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
ln -s %{_builddir}/spec spec
# unindent is not available in Fedora => avoid the requires. # unindent is not available in Fedora => avoid the requires.
for file in $(grep -Rl unindent spec); do for file in $(grep -Rl unindent spec); do
sed -i "/require 'unindent'/ s/^/#/" "${file}" sed -i "/require 'unindent'/ s/^/#/" "${file}"
sed -i '/^ *expect.*unindent$/ i \pending' "${file}" sed -i '/^ *expect.*unindent$/ i \pending' "${file}"
done done
sed -i '/^ *expect_tag_excess/ i \pending' \
spec/cucumber/core_spec.rb
LANG=C.UTF-8 rspec spec LANG=C.UTF-8 rspec spec
popd popd
@ -67,21 +71,19 @@ popd
%exclude %{gem_instdir}/.* %exclude %{gem_instdir}/.*
%license %{gem_instdir}/LICENSE %license %{gem_instdir}/LICENSE
%{gem_libdir} %{gem_libdir}
# This is not the original file => makes no sense to ship it.
%exclude %{gem_instdir}/cucumber-core.gemspec
%exclude %{gem_cache} %exclude %{gem_cache}
%{gem_spec} %{gem_spec}
%files doc %files doc
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/CONTRIBUTING.md %doc %{gem_instdir}/CONTRIBUTING.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/HISTORY.md
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile %doc %{gem_instdir}/CHANGELOG.md
%{gem_instdir}/spec
%changelog %changelog
* Thu Aug 23 2018 Jaroslav Prokop <jar.prokop@volny.cz> - 3.2.0-1
- Update to Cucumber-core 3.2.0.
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-6 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

@ -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

Loading…
Cancel
Save