diff --git a/python-antlr4-python3-runtime.changes b/python-antlr4-python3-runtime.changes index 64e8dab..c24b836 100644 --- a/python-antlr4-python3-runtime.changes +++ b/python-antlr4-python3-runtime.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 8 09:57:35 UTC 2024 - Adrian Schröter + +- fix build for python 3.12 + ------------------------------------------------------------------- Wed Jan 3 09:41:42 UTC 2024 - Dirk Müller diff --git a/python-antlr4-python3-runtime.spec b/python-antlr4-python3-runtime.spec index db98f41..4e34492 100644 --- a/python-antlr4-python3-runtime.spec +++ b/python-antlr4-python3-runtime.spec @@ -32,7 +32,7 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %if %{python3_version_nodots} < 35 Requires: python-typing @@ -48,6 +48,8 @@ This package contains the runtime for Python 3. %prep %setup -q -n antlr4-%{version}/runtime/Python3 cp %{SOURCE1} LICENSE.txt +# fixing for python 3.12 +sed -i 's,self.assertEquals,self.assertEqual,' tests/Test* %build %pyproject_wheel