# Generated from composable_state_machine-1.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name composable_state_machine Name: rubygem-%{gem_name} Version: 1.0.2 Release: 1%{?dist} Summary: The composition patterns in this implementation make it easy to circumvent the limitations of other state machine gems. A single state machine model can be shared across thousands of machine instances without the usual overhead. An object can have more than one state machine. States and events can be any objects, not just strings or symbols. Events can take optional parameters. Different state machine models can fire different types of callbacks. Adding new types of callbacks takes a couple of lines of code. Explicit callback runners enable easy decoration for logging, caching or other purposes. No external dependencies and 100% code coverage License: MIT URL: https://github.com/swoop-inc/composable_state_machine Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(rspec) # BuildRequires: rubygem(simplecov) # BuildRequires: rubygem(coveralls) # BuildRequires: rubygem(awesome_print) # BuildRequires: rubygem(yard) # BuildRequires: rubygem(redcarpet) BuildArch: noarch %description Small, fast and flexible state machines using composition. %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} # rspec spec popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %{gem_instdir}/.simplecov %exclude %{gem_instdir}/.travis.yml %exclude %{gem_instdir}/.yardopts %{gem_instdir}/Guardfile %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/assets %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/composable_state_machine.gemspec %{gem_instdir}/spec %changelog * Mon Feb 07 2022 mockbuilder - 1.0.2-1 - Initial package