# Generated from puma-daemon-0.1.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name puma-daemon Name: rubygem-%{gem_name} Version: 0.1.2 Release: 1%{?dist} Summary: Restore somewhat Puma's ability to self-daemonize, since Puma 5.0 dropped it License: MIT URL: https://github.com/kig/puma-daemon Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.4.0 # BuildRequires: rubygem(asciidoctor) # BuildRequires: rubygem(codecov) # BuildRequires: rubygem(relaxed-rubocop) # BuildRequires: rubygem(rspec-its) # BuildRequires: rubygem(rubocop) # BuildRequires: rubygem(simplecov) # BuildRequires: rubygem(yard) BuildArch: noarch %description In version 5.0 the authors of the popular Ruby web server Puma chose to remove the daemonization support from Puma, because the code wasn't wall maintained, and because other and perhaps better options exist (such as systemd, etc), not to mention many people have switched to Kubernetes and Docker, where you want to start all servers on the foreground. And yet, something useful and simple got lost — in our humble opinion. Some folks were indeed happily using the `--daemonize` feature until in 5.0 they got an error that this flag is not supported. So, if you want to use the latest and greatest Puma 5+, but have it self-daemonize, this gem is for you. Just use *pumad* binary instead of *puma*, or require 'puma/daemon' inside your config file. %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}/exe -type f | xargs chmod a+x %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{_bindir}/pumad %exclude %{gem_instdir}/.envrc %{gem_instdir}/.github %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.rubocop.yml %exclude %{gem_instdir}/.rubocop_todo.yml %{gem_instdir}/Dockerfile.build %{gem_instdir}/Dockerfile.download %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/Makefile %{gem_instdir}/bin %{gem_instdir}/config %{gem_instdir}/exe %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.adoc %{gem_instdir}/Rakefile %{gem_instdir}/puma-daemon.gemspec %changelog * Tue Sep 14 2021 mockbuilder - 0.1.2-1 - Initial package