From 77fd32b2849c1899ff307e7b2484dfda5f5ff72cfe0d8f32ccc5d339ab446d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Fri, 22 Jan 2021 13:51:39 +0000 Subject: [PATCH] Fix build failure OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-parser?expand=0&rev=55 --- gem2rpm.yml | 5 +++-- rubygem-parser.changes | 27 ++++++++++++++++++++++++++- rubygem-parser.spec | 24 ++++++++++++------------ 3 files changed, 41 insertions(+), 15 deletions(-) diff --git a/gem2rpm.yml b/gem2rpm.yml index 28d54e8..7667b06 100644 --- a/gem2rpm.yml +++ b/gem2rpm.yml @@ -34,8 +34,9 @@ # %endif # ## used by gem2rpm :post_install: |- - %fdupes %{buildroot}%{gem_base} - find %{buildroot}%{gem_base} \( -name .travis.yml -o -name .yardopts -o -name .gitkeep -o -name .gitignore -o -name run_rubocop_specs \) | xargs rm + for dir in $(ls %{buildroot}%{_libdir}/ruby/gems/); do + %fdupes %{buildroot}%{_libdir}/ruby/gems/$dir + done # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) diff --git a/rubygem-parser.changes b/rubygem-parser.changes index 3468991..6b130eb 100644 --- a/rubygem-parser.changes +++ b/rubygem-parser.changes @@ -2,7 +2,32 @@ Fri Jan 22 12:16:59 UTC 2021 - Stephan Kulow updated to version 3.0.0.0 - CHANGELOG.md removed upstream + + v3.0.0.0 (2020-12-25) + --------------------- + + API modifications: + * current.rb: bump default branch to parser/ruby30. (#782) (Ilya Bylich) + * do not emit truncated parts of squiggly heredoc (#774) (Ilya Bylich) + * Optimize `SourceBuffer` line and column handling (#755) (Marc-André Lafortune) + + Features implemented: + * ruby30.y: reintroduce `expr in pat` (#777) (Ilya Bylich) + * builder: emit implicit hash passed to a method call as kwargs (#769) (Ilya Bylich) + * lexer.rl: use more specific warning for ambiguous slash. (#768) (Ilya Bylich) + * ruby30.y: allow endless method without arglist. (#765) (Ilya Bylich) + * ruby30.y: use `=>` for one-line pattern matching. (#760) (Ilya Bylich) + * ruby30.y: reject setters in all endless method defs. (#758) (Ilya Bylich) + + Bugs fixed: + * lexer.rl: don't perform lookahead after tASSOC. (#764) (Ilya Bylich) + +v2.7.2.0 (2020-10-06) +--------------------- + +API modifications: + * Bump 2.7 branch to 2.7.2 (#748) (Koichi ITO) + ------------------------------------------------------------------- Fri Sep 25 14:37:45 UTC 2020 - Stephan Kulow diff --git a/rubygem-parser.spec b/rubygem-parser.spec index 4df04b7..469bb28 100644 --- a/rubygem-parser.spec +++ b/rubygem-parser.spec @@ -16,29 +16,28 @@ # +%define mod_name parser +%define mod_full_name %{mod_name}-%{version} # # 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-parser Version: 3.0.0.0 Release: 0 -%define mod_name parser -%define mod_full_name %{mod_name}-%{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: A Ruby parser written in pure Ruby +License: MIT +Group: Development/Languages/Ruby +URL: https://github.com/whitequark/parser +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml BuildRequires: %{ruby >= 2.0.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives -URL: https://github.com/whitequark/parser -Source: https://rubygems.org/gems/%{mod_full_name}.gem -Source1: gem2rpm.yml -Summary: A Ruby parser written in pure Ruby -License: MIT -Group: Development/Languages/Ruby +# FIXME: use proper Requires(pre/post/preun/...) PreReq: update-alternatives %description @@ -54,8 +53,9 @@ A Ruby parser written in pure Ruby. --doc-files="LICENSE.txt" \ -f # MANUAL -%fdupes %{buildroot}%{gem_base} -find %{buildroot}%{gem_base} \( -name .travis.yml -o -name .yardopts -o -name .gitkeep -o -name .gitignore -o -name run_rubocop_specs \) | xargs rm +for dir in $(ls %{buildroot}%{_libdir}/ruby/gems/); do + %fdupes %{buildroot}%{_libdir}/ruby/gems/$dir +done # /MANUAL %gem_packages