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
This commit is contained in:
Miro Hrončok 2026-01-13 11:10:14 +01:00
parent b043dfbce0
commit 9e9ac5a69f

View File

@ -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