Apply all patches

This commit is contained in:
Miro Hrončok 2023-05-31 14:41:53 +02:00
parent 662f28d6a3
commit 1558b646f0

View File

@ -35,9 +35,8 @@ Patch6: python-nose-no-use_2to3.patch
# Adapt test_xunit to tracebacks/exceptions with ^^^^^^^^ lines
# Migrate from removed inspect.getargspec() to inspect.getfullargspec()
Patch7: python-nose-py311.patch
# Adapt doctest to new tracebacks/exceptions on Python 3.11+
Patch311: python-nose-py311-doctest.patch
Patch8: python-nose-py311-doctest.patch
BuildRequires: dos2unix
@ -67,12 +66,7 @@ Provides: deprecated()
%description -n python3-%{modname} %_description
%prep
%autosetup -N -n %{modname}-%{version}
# apply all patches up until number 300
%autopatch -p1 -M 300
%if v"0%{?python3_version}" >= v"3.11"
%patch311 -p1
%endif
%autosetup -p1 -n %{modname}-%{version}
dos2unix examples/attrib_plugin.py