diff --git a/ruby-shadow-2.5.1-cflags.patch b/ruby-shadow-2.5.1-cflags.patch index 830334d..6c0a474 100644 --- a/ruby-shadow-2.5.1-cflags.patch +++ b/ruby-shadow-2.5.1-cflags.patch @@ -8,4 +8,4 @@ +$CFLAGS = "#{$CFLAGS} " + case RUBY_VERSION when /^1\.9/; '-DRUBY19' when /^2\./; '-DRUBY19' - when /^3\./; '-DRUBY19 -DRUBY30' + when /^[34]\./; '-DRUBY19 -DRUBY30' diff --git a/ruby-shadow-2.5.1-taintedness-ruby32-removal.patch b/ruby-shadow-2.5.1-taintedness-ruby32-removal.patch index 1a9b09e..737f08b 100644 --- a/ruby-shadow-2.5.1-taintedness-ruby32-removal.patch +++ b/ruby-shadow-2.5.1-taintedness-ruby32-removal.patch @@ -18,7 +18,7 @@ index d17f926..04f8f97 100644 when /^1\.9/; '-DRUBY19' when /^2\./; '-DRUBY19' - when /^3\./; '-DRUBY19' -+ when /^3\./; '-DRUBY19 -DRUBY30' ++ when /^[34]\./; '-DRUBY19 -DRUBY30' else; '' end diff --git a/rubygem-ruby-shadow.spec b/rubygem-ruby-shadow.spec index 3931ad7..b84dfec 100644 --- a/rubygem-ruby-shadow.spec +++ b/rubygem-ruby-shadow.spec @@ -2,7 +2,7 @@ Name: rubygem-%{gem_name} Version: 2.5.1 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Ruby shadow password module License: LicenseRef-Fedora-UltraPermissive OR Unlicense URL: https://github.com/apalmblad/ruby-shadow @@ -86,6 +86,9 @@ popd %doc %{gem_instdir}/README.euc %changelog +* Sat Nov 08 2025 Mamoru TASAKA - 2.5.1-13 +- Adjust patches for ruby4_0 + * Fri Jul 25 2025 Fedora Release Engineering - 2.5.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild