# ANTLR 4 Python 3 runtime — built from runtime/Python3/ subdirectory of the antlr4 repo # topdir after extract: python-antlr4-4.9.1 (normalized by tar --transform) # build dir: runtime/Python3/ (contains setup.py, no pyproject.toml) # Build method: setup.py (setuptools) per spec-rules-python.md §判断3 # LANG override: gate detected java (root pom.xml) but actual package is Python Name: python-antlr4 Version: 4.9.1 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/%{version}/python3-antlr4-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %description ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. This package contains the ANTLR 4 runtime for Python 3. %package -n python3-antlr4 Summary: ANTLR 4 runtime for Python 3 Provides: python-antlr4 Provides: python3dist(antlr4-python3-runtime) = %{version} %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. This package contains the ANTLR 4 runtime for Python 3. %prep %autosetup -n %{name}-%{version} -p1 %build cd runtime/Python3 %py3_build %install cd runtime/Python3 %py3_install %files -n python3-antlr4 %license LICENSE.txt %doc README.md %{python3_sitelib}/antlr4/ %{python3_sitelib}/antlr4_python3_runtime*.egg-info/ %{_bindir}/pygrun %changelog * Wed Sep 23 2026 Python_Bot - 4.9.1-1 - Initial package