# Generated from serially-0.4.3.gem by gem2rpm -*- rpm-spec -*- %global gem_name serially Name: rubygem-%{gem_name} Version: 0.4.3 Release: 1%{?dist} Summary: Allows any plain ruby class or ActiveRecord model to define a series of background tasks that will be run serially, strictly one after another, as a single, long-running resque job License: MIT URL: http://github.com/mikemarsian/serially Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 # BuildRequires: rubygem(rspec) >= 3.0 # BuildRequires: rubygem(rspec) < 4 # BuildRequires: rubygem(rspec_junit_formatter) = 0.2.2 # BuildRequires: rubygem(pry) # BuildRequires: rubygem(pry-debugger) # BuildRequires: rubygem(database_cleaner) # BuildRequires: rubygem(sqlite3) BuildArch: noarch %description Have you ever had a class whose instances required a series of background tasks to run serially, strictly one after another? Than Serially is for you. Declare the tasks using a simple DSL in the order you want them to to run. The tasks for each instance will run inside a separate Resque job, in a queue you specify. The next task will run only if the previous one has finished successfully. All task runs are written to DB and can be inspected. %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}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/console %{_bindir}/setup %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.pryrc %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/bin %{gem_instdir}/circle.yml %{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}/serially.gemspec %changelog * Wed Apr 20 2022 mockbuilder - 0.4.3-1 - Initial package