Compare commits

..

No commits in common. "rawhide" and "f40" have entirely different histories.

3 changed files with 11 additions and 29 deletions

View file

@ -8,4 +8,4 @@
+$CFLAGS = "#{$CFLAGS} " + case RUBY_VERSION
when /^1\.9/; '-DRUBY19'
when /^2\./; '-DRUBY19'
when /^[34]\./; '-DRUBY19 -DRUBY30'
when /^3\./; '-DRUBY19 -DRUBY30'

View file

@ -18,7 +18,7 @@ index d17f926..04f8f97 100644
when /^1\.9/; '-DRUBY19'
when /^2\./; '-DRUBY19'
- when /^3\./; '-DRUBY19'
+ when /^[34]\./; '-DRUBY19 -DRUBY30'
+ when /^3\./; '-DRUBY19 -DRUBY30'
else; ''
end

View file

@ -2,19 +2,19 @@
Name: rubygem-%{gem_name}
Version: 2.5.1
Release: 14%{?dist}
Release: 7%{?dist}
Summary: Ruby shadow password module
License: LicenseRef-Fedora-UltraPermissive OR Unlicense
License: Public Domain
URL: https://github.com/apalmblad/ruby-shadow
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://raw.githubusercontent.com/apalmblad/ruby-shadow/master/test/basic_test.rb
Patch0: ruby-shadow-2.5.1-cflags.patch
# https://github.com/apalmblad/ruby-shadow/pull/29
# Ruby3.2 completely removes taintedness function
Patch0: ruby-shadow-2.5.1-taintedness-ruby32-removal.patch
Patch1: ruby-shadow-2.5.1-taintedness-ruby32-removal.patch
# https://github.com/apalmblad/ruby-shadow/pull/31
# Ruby3.2 mkmf CONFIG uses reference for other variables yet more
Patch1: ruby-shadow-2.5.1-extconf-ruby32-fix.patch
Patch2: ruby-shadow-2.5.1-cflags.patch
Patch2: ruby-shadow-2.5.1-extconf-ruby32-fix.patch
BuildRequires: gcc
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@ -35,7 +35,10 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%autosetup -p1 -n %{gem_name}-%{version}
%setup -q -n %{gem_name}-%{version}
%patch1 -p1
%patch2 -p1
%patch0 -p1
cp %{SOURCE1} .
%build
@ -86,27 +89,6 @@ popd
%doc %{gem_instdir}/README.euc
%changelog
* Thu Jan 08 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.5.1-14
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_4.0
* Sat Nov 08 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.5.1-13
- Adjust patches for ruby4_0
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Jan 08 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.5.1-10
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.4
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jul 01 2024 Terje Rosten <terje.rosten@ntnu.no> - 2.5.0-8
- Use autosetup macro
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild