diff --git a/antlr4-python3-runtime-4.8.tar.gz b/antlr4-python3-runtime-4.8.tar.gz deleted file mode 100644 index b2b43d7..0000000 --- a/antlr4-python3-runtime-4.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15793f5d0512a372b4e7d2284058ad32ce7dd27126b105fb0b2245130445db33 -size 112404 diff --git a/antlr4-python3-runtime-4.9.1.tar.gz b/antlr4-python3-runtime-4.9.1.tar.gz new file mode 100644 index 0000000..86387f3 --- /dev/null +++ b/antlr4-python3-runtime-4.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:759eddb70061ff7387bc877f5b59e3344ab374843604f757afa5b308cb68669a +size 173261 diff --git a/python-antlr4-python3-runtime.changes b/python-antlr4-python3-runtime.changes index e8bc8b1..cd72434 100644 --- a/python-antlr4-python3-runtime.changes +++ b/python-antlr4-python3-runtime.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sun Jan 31 10:41:57 UTC 2021 - andy great + +- Update to version 4.9.1. + * Improve python3 performance by adding slots + * Fix incorrect python token string templates +- Add testing. +- Skip python2 because this is for python3. +- Use python_alternative + ------------------------------------------------------------------- Wed Apr 29 12:49:38 UTC 2020 - John Paul Adrian Glaubitz diff --git a/python-antlr4-python3-runtime.spec b/python-antlr4-python3-runtime.spec index f850984..b660a1a 100644 --- a/python-antlr4-python3-runtime.spec +++ b/python-antlr4-python3-runtime.spec @@ -1,7 +1,7 @@ # # spec file for package python-antlr4-python3-runtime # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,8 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-antlr4-python3-runtime -Version: 4.8 +Version: 4.9.1 Release: 0 Summary: ANTLR runtime for Python 3 License: BSD-3-Clause @@ -28,6 +29,8 @@ Source1: LICENSE.txt BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %if %{python3_version_nodots} < 35 Requires: python-typing @@ -49,11 +52,24 @@ cp %{SOURCE1} LICENSE.txt %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pygrun %python_expand %fdupes %{buildroot}%{$python_sitelib} +%prepare_alternative pygrun + +%post +%python_install_alternative pygrun + +%postun +%python_uninstall_alternative pygrun + +%check +%pyunittest discover -v --pattern "*.py" --start-directory test %files %{python_files} %doc README.txt %license LICENSE.txt -%{python_sitelib}/* +%python_alternative %{_bindir}/pygrun +%{python_sitelib}/antlr4_python3_runtime-*.egg-info +%{python_sitelib}/antlr4 %changelog