Use autosetup macro

This commit is contained in:
Terje Rosten 2024-07-01 10:42:50 +02:00
commit a08979ab40

View file

@ -2,19 +2,19 @@
Name: rubygem-%{gem_name}
Version: 2.5.1
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Ruby shadow password module
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
Patch1: ruby-shadow-2.5.1-taintedness-ruby32-removal.patch
Patch0: 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
Patch2: ruby-shadow-2.5.1-extconf-ruby32-fix.patch
Patch1: ruby-shadow-2.5.1-extconf-ruby32-fix.patch
Patch2: ruby-shadow-2.5.1-cflags.patch
BuildRequires: gcc
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@ -35,10 +35,7 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
%patch -P1 -p1
%patch -P2 -p1
%patch -P0 -p1
%autosetup -p1 -n %{gem_name}-%{version}
cp %{SOURCE1} .
%build
@ -89,6 +86,9 @@ popd
%doc %{gem_instdir}/README.euc
%changelog
* 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