|
|
|
@ -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 <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
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|