From 2a1f5d9d58b3a43448a3683c0014b71c0ed48ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Wed, 18 Mar 2026 16:03:36 +0100 Subject: [PATCH] use the %autosetup macro with git ... to make the maintenance of patches much easier. Resolves: RHEL-107266 Resolves: RHEL-107531 Resolves: RHEL-107532 Resolves: RHEL-155227 Resolves: RHEL-13057 Resolves: RHEL-104290 Resolves: RHEL-137323 Resolves: RHEL-141436 --- rear.spec | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/rear.spec b/rear.spec index adc44c1..ee14054 100644 --- a/rear.spec +++ b/rear.spec @@ -63,6 +63,7 @@ Patch206: rear-nbu-RHEL-17390-RHEL-17393.patch ### Dependencies on all distributions BuildRequires: asciidoc +BuildRequires: git-core Requires: binutils Requires: ethtool Requires: gzip @@ -161,43 +162,7 @@ if [ $1 -gt 1 ] ; then fi %prep -%setup -%patch4 -p1 -%patch29 -p1 -%patch30 -p1 -%patch31 -p1 -%patch32 -p1 -%patch33 -p1 -%patch34 -p1 -%patch35 -p1 -%patch36 -p1 -%patch37 -p1 -%patch38 -p1 -%patch39 -p1 -%patch40 -p1 -%patch41 -p1 -%patch42 -p1 -%patch43 -p1 -%patch44 -p1 -%patch48 -p1 -%patch49 -p1 -%patch50 -p1 -%patch51 -p1 -%patch52 -p1 -%patch53 -p1 -%patch54 -p1 -%patch56 -p1 -%patch58 -p1 -%patch59 -p1 -%patch60 -p1 -%patch61 -p1 -%patch62 -p1 -%patch64 -p1 -%patch65 -p1 -%patch111 -p1 -%patch113 -p1 -%patch115 -p1 -%patch206 -p1 +%autosetup -p1 -S git echo "30 1 * * * root test -f /var/lib/rear/layout/disklayout.conf && /usr/sbin/rear checklayout || /usr/sbin/rear mkrescue" >rear.cron