# Generated from cuke_modeler-3.13.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name cuke_modeler Name: rubygem-%{gem_name} Version: 3.13.0 Release: 1%{?dist} Summary: A gem providing functionality to model Gherkin based test suites License: MIT URL: https://github.com/enkessler/cuke_modeler Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.3 BuildRequires: ruby < 4.0 # BuildRequires: rubygem(childprocess) < 5.0 # BuildRequires: rubygem(ffi) < 2.0 # BuildRequires: rubygem(cucumber) >= 4.0.0 # BuildRequires: rubygem(cucumber) < 7.0.0 # BuildRequires: rubygem(rainbow) < 4.0.0 # BuildRequires: rubygem(rspec) >= 3.0 # BuildRequires: rubygem(rspec) < 4 # BuildRequires: rubygem(rubocop) < 0.82.0 # BuildRequires: rubygem(simplecov) < 1.0 # BuildRequires: rubygem(simplecov-lcov) < 1.0 # BuildRequires: rubygem(test-unit) < 4.0.0 # BuildRequires: rubygem(yard) < 1.0 BuildArch: noarch %description This gem facilitates modeling a test suite that is written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by providing an abstraction layer on top of the Abstract Syntax Tree that the 'cucumber-gherkin' gem generates when parsing features, as well as providing models for feature files and directories in order to be able to have a fully traversable model tree of a test suite's structure. These models can then be analyzed or manipulated more easily than the underlying AST layer. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %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}/ %check pushd .%{gem_instdir} # cucumber # rspec spec # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.md %{gem_instdir}/cuke_modeler.gemspec %{gem_instdir}/testing %changelog * Sun Sep 26 2021 mockbuilder - 3.13.0-1 - Initial package