%global pypi_name antlr4-python3-runtime Name: python-antlr4 Version: 4.13.2 Release: 1%{?dist} Summary: ANTLR 4 runtime for Python 3 License: BSD-3-Clause URL: https://github.com/antlr/antlr4 Source0: https://github.com/antlr/antlr4/archive/refs/tags/v%{version}/python-antlr4-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-wheel %description ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. The Python 3 runtime library provides the base classes that generated parsers and lexers use. %package -n python3-antlr4 Summary: ANTLR 4 runtime for Python 3 Provides: python3-%{pypi_name} = %{version}-%{release} Provides: python3dist(%{pypi_name}) = %{version} Requires: python3 %description -n python3-antlr4 ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. The Python 3 runtime library provides the base classes that generated parsers and lexers use. %package help Summary: Development documents and examples for python-antlr4 Provides: python3-antlr4-doc %description help Documentation and examples for the ANTLR 4 Python 3 runtime. %prep %autosetup -n %{name}-%{version} %build pushd runtime/Python3 %{__python3} -m pip wheel --no-build-isolation --no-deps . popd %install pushd runtime/Python3 %{__python3} -m pip install --no-build-isolation --no-deps --root %{buildroot} . popd %files -n python3-antlr4 %license LICENSE.txt %{python3_sitelib}/antlr4/ %{python3_sitelib}/antlr4_python3_runtime-%{version}*.dist-info/ %{_bindir}/pygrun %files help %doc runtime/Python3/README.txt %changelog * Sun Sep 20 2026 Python_Bot - 4.13.2-1 - Initial package