diff --git a/gem2rpm.yml b/gem2rpm.yml index a81b003..8fa72e0 100644 --- a/gem2rpm.yml +++ b/gem2rpm.yml @@ -21,7 +21,9 @@ # ## used by gem2rpm # :patches: # foo.patch: -p1 -# bar.patch: +# bar.patch: +# :post_patch: +# if you need to fiddle with the source dir before rebuilding the gem # ## used by gem2rpm # :sources: # - foo.desktop @@ -54,7 +56,7 @@ # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages -# :custom: +# :custom_pkgs: # apache: # :preamble: |- # Requires: ..... @@ -68,13 +70,11 @@ # :post: |- # /bin/echo foo # ---- :license: BSD-2-Clause - :sources: - - rubygem-byebug-rpmlintrc - + - rubygem-byebug-rpmlintrc :preamble: |- - %if 0%{?suse_version} == 1110 - %define rb_build_versions ruby21 - %endif + %if 0%{?suse_version} && 0%{?suse_version} < 1330 + %define rb_build_versions ruby22 ruby23 ruby24 + %define rb_default_ruby_abi ruby:2.2.0 ruby:2.3.0 ruby:2.4.0 + %endif diff --git a/rubygem-byebug.changes b/rubygem-byebug.changes index 79e631e..0292763 100644 --- a/rubygem-byebug.changes +++ b/rubygem-byebug.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 4 10:12:51 UTC 2017 - mrueckert@suse.de + +- only build on 2.2 and newer + ------------------------------------------------------------------- Sun Sep 3 08:57:33 UTC 2017 - coolo@suse.com diff --git a/rubygem-byebug.spec b/rubygem-byebug.spec index 3b8d9a7..de3bdf5 100644 --- a/rubygem-byebug.spec +++ b/rubygem-byebug.spec @@ -29,17 +29,18 @@ Release: 0 %define mod_name byebug %define mod_full_name %{mod_name}-%{version} # MANUAL -%if 0%{?suse_version} == 1110 -%define rb_build_versions ruby21 +%if 0%{?suse_version} && 0%{?suse_version} < 1330 +%define rb_build_versions ruby22 ruby23 ruby24 +%define rb_default_ruby_abi ruby:2.2.0 ruby:2.3.0 ruby:2.4.0 %endif # /MANUAL BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: ruby-macros >= 5 BuildRequires: %{rubydevel >= 2.2.0} BuildRequires: %{rubygem gem2rpm} -BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives Url: http://github.com/deivid-rodriguez/byebug -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: rubygem-byebug-rpmlintrc Source2: gem2rpm.yml Summary: Ruby fast debugger - base + CLI