summaryrefslogtreecommitdiff
path: root/python3-antlr4.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-23 12:06:21 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-23 12:06:21 +0000
commit02d165f5e955d5535447bd2f92040b90d2729fce (patch)
tree23015726cea51dc48f7a26ce7decc4817195eb38 /python3-antlr4.spec
parent29e1db15c6a0ed5ab99de830c15be814fa7096a0 (diff)
automatic import of python-antlr4openeuler24.03_LTS_SP3
Diffstat (limited to 'python3-antlr4.spec')
-rw-r--r--python3-antlr4.spec60
1 files changed, 60 insertions, 0 deletions
diff --git a/python3-antlr4.spec b/python3-antlr4.spec
new file mode 100644
index 0000000..0ef96c5
--- /dev/null
+++ b/python3-antlr4.spec
@@ -0,0 +1,60 @@
+# 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 <Python_Bot@openeuler.org> - 4.9.1-1
+- Initial package