commit rubygem-puma_worker_killer for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-puma_worker_killer for openSUSE:Factory checked in at 2020-10-05 19:32:46 Comparing /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer (Old) and /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new.4249 (New) Package is "rubygem-puma_worker_killer" Mon Oct 5 19:32:46 2020 rev:5 rq:838067 version:0.3.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer/rubygem-puma_worker_killer.changes 2019-08-06 15:10:29.903771197 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new.4249/rubygem-puma_worker_killer.changes 2020-10-05 19:32:55.509151026 +0200 @@ -1,0 +2,25 @@ +Fri Sep 25 14:41:04 UTC 2020 - Stephan Kulow + +updated to version 0.3.1 + see installed CHANGELOG.md + + ## Main + + ## 0.3.1 + + - Relax puma dependency (#94) + + ## 0.3.0 + + - Test on recent ruby versions #84 + - Add option to adjust restart randomizer (#78) + + ## 0.2.0 + + - Simplify workers memory calculation in PumaMemory‘s `get_total` method #81 + - Add rubocop in gemspec and CI, with offenses corrected and unnecessary cops disabled. + - Add `pre_term`-like `rolling_pre_term` config for terminations caused by rolling restart (#86) + - Fix compatibility with ruby version 2.3.X (#87) + + +--- Old: puma_worker_killer-0.1.1.gem New: puma_worker_killer-0.3.1.gem Other differences: -- ++ rubygem-puma_worker_killer.spec ++ --- /var/tmp/diff_new_pack.5bDVg3/_old 2020-10-05 19:32:56.373154670 +0200 +++ /var/tmp/diff_new_pack.5bDVg3/_new 2020-10-05 19:32:56.373154670 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-puma_worker_killer # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-puma_worker_killer -Version:0.1.1 +Version:0.3.1 Release:0 %define mod_name puma_worker_killer %define mod_full_name %{mod_name}-%{version} @@ -32,7 +32,7 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 -Url:https://github.com/schneems/puma_worker_killer +URL:https://github.com/schneems/puma_worker_killer Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:If you have a memory leak in your web code puma_worker_killer can ++ puma_worker_killer-0.1.1.gem -> puma_worker_killer-0.3.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/check_changelog.yml new/.github/workflows/check_changelog.yml --- old/.github/workflows/check_changelog.yml 1970-01-01 01:00:00.0 +0100 +++ new/.github/workflows/check_changelog.yml 2020-09-22 20:38:14.0 +0200 @@ -0,0 +1,12 @@ +name: Check Changelog + +on: [pull_request] + +jobs: + build: +runs-on: ubuntu-latest +steps: +- uses: actions/checkout@v1 +- name: Check that CHANGELOG is touched + run: | +cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(ci skip\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.rubocop.yml new/.rubocop.yml --- old/.rubocop.yml1970-01-01 01:00:00.0 +0100 +++ new/.rubocop.yml2020-09-22 20:38:14.0 +0200 @@ -0,0 +1,22 @@ +inherit_from: .rubocop_todo.yml + +Naming/AccessorMethodName: + Enabled: false + +Style/Documentation: + Enabled: false + +Style/HashSyntax: + Enabled: false + +Style/ModuleFunction: + Enabled: false + +Style/StringLiterals: + EnforcedStyle: single_quotes + +Style/StringLiteralsInInterpolation: + EnforcedStyle: double_quotes + +Gemspec/RequiredRubyVersion: + Enabled: false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.rubocop_todo.yml new/.rubocop_todo.yml --- old/.rubocop_todo.yml 1970-01-01 01:00:00.0 +0100 +++ new/.rubocop_todo.yml 2020-09-22 20:38:14.0 +0200 @@ -0,0 +1,24 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2020-04-03 13:12:53 +0200 using RuboCop version 0.81.0. +# The point is for the user to remove these configuration records +# one by one as the offenses are removed from the code base. +# Note that changes in the inspected code, or installation of new +# versions of R
commit rubygem-puma_worker_killer for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-puma_worker_killer for openSUSE:Factory checked in at 2019-08-06 15:10:22 Comparing /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer (Old) and /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new.4126 (New) Package is "rubygem-puma_worker_killer" Tue Aug 6 15:10:22 2019 rev:4 rq:717317 version:0.1.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer/rubygem-puma_worker_killer.changes 2017-06-08 15:01:33.419268918 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new.4126/rubygem-puma_worker_killer.changes 2019-08-06 15:10:29.903771197 +0200 @@ -1,0 +2,10 @@ +Fri Jul 19 09:29:56 UTC 2019 - Stephan Kulow + +- updated to version 0.1.1 + see installed CHANGELOG.md + + ## 0.1.1 + + - Allow PWK to be used with Puma 4 (#72) + +--- Old: puma_worker_killer-0.1.0.gem New: puma_worker_killer-0.1.1.gem Other differences: -- ++ rubygem-puma_worker_killer.spec ++ --- /var/tmp/diff_new_pack.dk7HkL/_old 2019-08-06 15:10:30.523770910 +0200 +++ /var/tmp/diff_new_pack.dk7HkL/_new 2019-08-06 15:10:30.527770908 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-puma_worker_killer # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-puma_worker_killer -Version:0.1.0 +Version:0.1.1 Release:0 %define mod_name puma_worker_killer %define mod_full_name %{mod_name}-%{version} @@ -33,7 +33,7 @@ BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url:https://github.com/schneems/puma_worker_killer -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:If you have a memory leak in your web code puma_worker_killer can License:MIT ++ puma_worker_killer-0.1.0.gem -> puma_worker_killer-0.1.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2017-05-12 17:28:39.0 +0200 +++ new/.travis.yml 2019-06-26 21:06:55.0 +0200 @@ -2,9 +2,11 @@ rvm: - 1.9.3 - 2.0.0 - - 2.1.0 - - 2.2.4 - - 2.3.0 + - 2.1.10 + - 2.2.9 + - 2.3.6 + - 2.4.3 + - 2.5.0 - ruby-head - rbx before_install: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2017-05-12 17:28:39.0 +0200 +++ new/CHANGELOG.md2019-06-26 21:06:55.0 +0200 @@ -1,3 +1,7 @@ +## 0.1.1 + +- Allow PWK to be used with Puma 4 (#72) + ## 0.1.0 - Emit extra data via `pre_term` callback before puma worker killer terminates a worker #49. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-05-12 17:28:39.0 +0200 +++ new/README.md 2019-06-26 21:06:55.0 +0200 @@ -1,6 +1,7 @@ # Puma Worker Killer [![Build Status](https://travis-ci.org/schneems/puma_worker_killer.png?branch=master)](https://travis-ci.org/schneems/puma_worker_killer) +[![Help Contribute to Open Source](https://www.codetriage.com/schneems/puma_worker_killer/badges/users.svg)](https://www.codetriage.com/schneems/puma_worker_killer) ## What @@ -66,7 +67,7 @@ end ``` -That's it. Now on a regular basis the size of all Puma and all of it's forked processes will be evaluated and if they're over the RAM threshold will be killed. Don't worry Puma will notice a process is missing a spawn a fresh copy with a much smaller RAM footprint ASAP. +That's it. Now on a regular basis the size of all Puma and all of it's forked processes will be evaluated and if they're over the RAM threshold will be killed. Don't worry Puma will notice a process is missing and spawn a fresh copy with a much smaller RAM footprint ASAP. ## Troubleshooting @@ -102,7 +103,7 @@ config.ram = 1024 # mb config.frequency = 5# seconds config.percent_usage = 0.98 - config.rolling_restart_fre
commit rubygem-puma_worker_killer for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-puma_worker_killer for openSUSE:Factory checked in at 2017-06-08 15:01:32 Comparing /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer (Old) and /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new (New) Package is "rubygem-puma_worker_killer" Thu Jun 8 15:01:32 2017 rev:3 rq:497708 version:0.1.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer/rubygem-puma_worker_killer.changes 2016-11-07 12:23:16.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new/rubygem-puma_worker_killer.changes 2017-06-08 15:01:33.419268918 +0200 @@ -1,0 +2,10 @@ +Tue May 23 10:11:52 UTC 2017 - co...@suse.com + +- updated to version 0.1.0 + see installed CHANGELOG.md + + ## 0.1.0 + + - Emit extra data via `pre_term` callback before puma worker killer terminates a worker #49. + +--- Old: puma_worker_killer-0.0.7.gem New: puma_worker_killer-0.1.0.gem Other differences: -- ++ rubygem-puma_worker_killer.spec ++ --- /var/tmp/diff_new_pack.vzaGLb/_old 2017-06-08 15:01:34.147166190 +0200 +++ /var/tmp/diff_new_pack.vzaGLb/_new 2017-06-08 15:01:34.147166190 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-puma_worker_killer # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-puma_worker_killer -Version:0.0.7 +Version:0.1.0 Release:0 %define mod_name puma_worker_killer %define mod_full_name %{mod_name}-%{version} ++ puma_worker_killer-0.0.7.gem -> puma_worker_killer-0.1.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2016-10-13 16:56:01.0 +0200 +++ new/CHANGELOG.md2017-05-12 17:28:39.0 +0200 @@ -1,3 +1,7 @@ +## 0.1.0 + +- Emit extra data via `pre_term` callback before puma worker killer terminates a worker #49. + ## 0.0.7 - Logging is configurable #41 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2016-10-13 16:56:01.0 +0200 +++ new/README.md 2017-05-12 17:28:39.0 +0200 @@ -34,6 +34,8 @@ A rolling restart will kill each of your workers on a rolling basis. You set the frequency which it conducts the restart. This is a simple way to keep memory down as Ruby web programs generally increase memory usage over time. If you're using Heroku [it is difficult to measure RAM from inside of a container accurately](https://github.com/schneems/get_process_mem/issues/7), so it is recommended to use this feature or use a [log-drain-based worker killer](https://github.com/arches/whacamole). You can enable roling restarts by running: ```ruby +# config/puma.rb + before_fork do require 'puma_worker_killer' @@ -103,10 +105,30 @@ config.rolling_restart_frequency = 12 * 3600 # 12 hours in seconds config.reaper_status_logs = true # setting this to false will not log lines like: # PumaWorkerKiller: Consuming 54.34765625 mb with master and 2 workers. + + config.pre_term = -> (worker) { puts "Worker #{worker.inspect} being killed" } end PumaWorkerKiller.start ``` +### pre_term + +`config.pre_term` will be called just prior to worker termination with the worker that is about to be terminated. This may be useful to use in keeping track of metrics, time of day workers are restarted, etc. + +By default Puma Worker Killer will emit a log when a worker is being killed + +``` +PumaWorkerKiller: Out of memory. 5 workers consuming total: 500 mb out of max: 450 mb. Sending TERM to pid 23 consuming 53 mb. +``` + +or + +``` +PumaWorkerKiller: Rolling Restart. 5 workers consuming total: 650mb mb. Sending TERM to pid 34. +``` + +However you may want to collect more data, such as sending an event to an error collection service like rollbar or airbrake. The `pre_term` lambda gets called before any worker is killed by PWK for any reason. + ## Attention If you start puma as a daemon, to add puma worker killer config into puma config file, rather than into initializers: Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/puma_worker_killer/puma_memory.rb new/lib/puma_worker_killer/puma_memory.rb --
commit rubygem-puma_worker_killer for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-puma_worker_killer for openSUSE:Factory checked in at 2016-11-07 12:23:15 Comparing /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer (Old) and /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new (New) Package is "rubygem-puma_worker_killer" Changes: --- /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer/rubygem-puma_worker_killer.changes 2016-09-30 15:28:08.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new/rubygem-puma_worker_killer.changes 2016-11-07 12:23:16.0 +0100 @@ -1,0 +2,10 @@ +Fri Oct 14 04:35:10 UTC 2016 - co...@suse.com + +- updated to version 0.0.7 + see installed CHANGELOG.md + + ## 0.0.7 + + - Logging is configurable #41 + +--- Old: puma_worker_killer-0.0.6.gem New: puma_worker_killer-0.0.7.gem Other differences: -- ++ rubygem-puma_worker_killer.spec ++ --- /var/tmp/diff_new_pack.3WpkrT/_old 2016-11-07 12:23:17.0 +0100 +++ /var/tmp/diff_new_pack.3WpkrT/_new 2016-11-07 12:23:17.0 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-puma_worker_killer -Version:0.0.6 +Version:0.0.7 Release:0 %define mod_name puma_worker_killer %define mod_full_name %{mod_name}-%{version} ++ puma_worker_killer-0.0.6.gem -> puma_worker_killer-0.0.7.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2016-04-01 23:20:07.0 +0200 +++ new/.travis.yml 2016-10-13 16:56:01.0 +0200 @@ -7,6 +7,8 @@ - 2.3.0 - ruby-head - rbx +before_install: + - gem install bundler -v 1.12.5 matrix: allow_failures: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2016-04-01 23:20:07.0 +0200 +++ new/CHANGELOG.md2016-10-13 16:56:01.0 +0200 @@ -1,3 +1,7 @@ +## 0.0.7 + +- Logging is configurable #41 + ## 0.0.6 - Log PID of worker insead of inspecting the worker #33 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2016-04-01 23:20:07.0 +0200 +++ new/README.md 2016-10-13 16:56:01.0 +0200 @@ -29,15 +29,68 @@ --> -Somewhere in your main process run this code: +## Turn on Rolling Restarts + +A rolling restart will kill each of your workers on a rolling basis. You set the frequency which it conducts the restart. This is a simple way to keep memory down as Ruby web programs generally increase memory usage over time. If you're using Heroku [it is difficult to measure RAM from inside of a container accurately](https://github.com/schneems/get_process_mem/issues/7), so it is recommended to use this feature or use a [log-drain-based worker killer](https://github.com/arches/whacamole). You can enable roling restarts by running: ```ruby -# config/initializers/puma_worker_killer.rb -PumaWorkerKiller.start +before_fork do + require 'puma_worker_killer' + + PumaWorkerKiller.enable_rolling_restart # Default is every 6 hours +end + +``` + +or you can pass in the restart frequency: + +```ruby +PumaWorkerKiller.enable_rolling_restart(12 * 3600) # 12 hours in seconds +``` + +Make sure if you do this to not accidentally call `PumaWorkerKiller.start` as well. + +## Enable Worker Killing + +If you're not running on a containerized platform you can try to detect the amount of memory you're using and only kill Puma workers when you're over that limit. It may allow you to go for longer periods of time without killing a worker however it is more error prone than rolling restarts. To enable measurement based worker killing put this in your `config/puma.rb`: + +```ruby +# config/puma.rb + +before_fork do + require 'puma_worker_killer' + + PumaWorkerKiller.start +end ``` That's it. Now on a regular basis the size of all Puma and all of it's forked processes will be evaluated and if they're over the RAM threshold will be killed. Don't worry Puma will notice a process is missing a spawn a fresh copy with a much smaller RAM footprint ASAP. +## Troubleshooting + +When you boot your program locally you should see debug output: + +``` +[3] Puma starting in cluster mode... +[3] * Version 3.1.0 (ruby 2.3.1-p112), codename: El Niño Winter Wonderland +[3] * Min threads: 0, max threads: 16 +[3] * Environment: development +[3] * Process workers: 2 +[3] * Phased restart available +[3] * Listening on tcp://0.0.0.0:9292 +[3] Use Ctrl
commit rubygem-puma_worker_killer for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-puma_worker_killer for openSUSE:Factory checked in at 2016-09-30 15:27:40 Comparing /work/SRC/openSUSE:Factory/rubygem-puma_worker_killer (Old) and /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new (New) Package is "rubygem-puma_worker_killer" Changes: New Changes file: --- /dev/null 2016-09-15 12:42:18.240042505 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-puma_worker_killer.new/rubygem-puma_worker_killer.changes 2016-09-30 15:28:08.0 +0200 @@ -0,0 +1,25 @@ +--- +Wed Apr 6 06:29:49 UTC 2016 - co...@suse.com + +- updated to version 0.0.6 + see installed CHANGELOG.md + + ## 0.0.6 + + - Log PID of worker insead of inspecting the worker #33 + +--- +Thu Mar 3 05:29:56 UTC 2016 - co...@suse.com + +- updated to version 0.0.5 + see installed CHANGELOG.md + + ## 0.0.5 + + - Support for Puma 3.x + +--- +Wed Nov 25 14:19:12 UTC 2015 - mrueck...@suse.de + +- initial package + New: gem2rpm.yml puma_worker_killer-0.0.6.gem rubygem-puma_worker_killer.changes rubygem-puma_worker_killer.spec Other differences: -- ++ rubygem-puma_worker_killer.spec ++ # # spec file for package rubygem-puma_worker_killer # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # # This file was generated with a gem2rpm.yml and not just plain gem2rpm. # All sections marked as MANUAL, license headers, summaries and descriptions # can be maintained in that file. Please consult this file before editing any # of those fields # Name: rubygem-puma_worker_killer Version:0.0.6 Release:0 %define mod_name puma_worker_killer %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{rubygem gem2rpm} BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url:https://github.com/schneems/puma_worker_killer Source: http://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:If you have a memory leak in your web code puma_worker_killer can License:MIT Group: Development/Languages/Ruby %description Kills pumas, the code kind . %prep %build %install %gem_install \ --doc-files="CHANGELOG.md README.md" \ -f %gem_packages %changelog ++ gem2rpm.yml ++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # ## used by gem2rpm # :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom: # apache: # :preamble: |- # Requires: . # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # #