From 9e9ac5a69fc2361f782aa3f7e3d6d33c5a61bd08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 13 Jan 2026 11:10:14 +0100 Subject: [PATCH] spec: Switch to %autosetup for applying patches This has 2 benefits: - The spec remains parsable on current Fedora, where %patchN errors (RPM 4.20+). - This indirectly fixes an issue with the CI (standard-test-source). - We won't forget to apply patches when we add them. - This actually happened to me with the latest patch, fortunately rpminspect detected it. Related: RHEL-139410 --- python-urllib3.spec | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/python-urllib3.spec b/python-urllib3.spec index cc9ffdb..ddc7c54 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -83,17 +83,7 @@ Python3 HTTP module with connection pooling and file POST abilities. %prep -%setup -q -n %{srcname}-%{version} - -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 +%autosetup -p1 -n %{srcname}-%{version} # Make sure that the RECENT_DATE value doesn't get too far behind what the current date is. # RECENT_DATE must not be older that 2 years from the build time, or else test_recent_date