# Generated from backgroundrb-rails3-1.1.6.gem by gem2rpm -*- rpm-spec -*- %global gem_name backgroundrb-rails3 Name: rubygem-%{gem_name} Version: 1.1.6 Release: 1%{?dist} Summary: BackgrounDRb is a Ruby job server and scheduler License: MIT URL: http://github.com/mtylty/backgroundrb-rails3 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(jeweler) >= 1.5.1 # BuildRequires: rubygem(jeweler) < 1.6 # BuildRequires: rubygem(rspec) BuildArch: noarch %description BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be used with Ruby on Rails applications for offloading long-running tasks. Since a Rails application blocks while serving a request it is best to move long-running tasks off into a background process that is divorced from http request/response cycle. This is the RoR 3 version (Railtie based) of the gem. Please read the GitHub homepage for installation instructions. . %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} %{gem_instdir}/.autotest %license %{gem_instdir}/LICENSE %license %{gem_instdir}/MIT-LICENSE %{gem_instdir}/TODO.org %{gem_instdir}/app %{gem_instdir}/config %{gem_instdir}/init.rb %{gem_instdir}/install.rb %{gem_instdir}/know_issues.org %{gem_libdir} %{gem_instdir}/script %{gem_instdir}/server %{gem_instdir}/uninstall.rb %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/ChangeLog %{gem_instdir}/Gemfile %doc %{gem_instdir}/README %{gem_instdir}/Rakefile %{gem_instdir}/backgroundrb-rails3.gemspec %doc %{gem_instdir}/doc %{gem_instdir}/examples %doc %{gem_instdir}/release_notes.org %doc %{gem_instdir}/release_points.org %{gem_instdir}/test %changelog * Sun Sep 12 2021 mockbuilder - 1.1.6-1 - Initial package