summaryrefslogtreecommitdiff
path: root/python3-antlr4.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-20 13:39:53 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-20 13:39:53 +0000
commite68a949c15be2ad2b7d9910f8dfefa058ffcf7f6 (patch)
treeb38343ff453e7723b884a09d905bf1b91f768f11 /python3-antlr4.spec
parent4e50b5a36ed7b28e902f27c5734c3345195de284 (diff)
automatic import of python-antlr4
Diffstat (limited to 'python3-antlr4.spec')
-rw-r--r--python3-antlr4.spec64
1 files changed, 64 insertions, 0 deletions
diff --git a/python3-antlr4.spec b/python3-antlr4.spec
new file mode 100644
index 0000000..a927964
--- /dev/null
+++ b/python3-antlr4.spec
@@ -0,0 +1,64 @@
+%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
+
+%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
+%py3_build
+popd
+
+%install
+pushd runtime/Python3
+%py3_install
+popd
+
+%files -n python3-antlr4
+%license LICENSE.txt
+%{python3_sitelib}/antlr4/
+%{python3_sitelib}/antlr4_python3_runtime-%{version}*.egg-info/
+%{_bindir}/pygrun
+
+%files help
+%doc runtime/Python3/README.txt
+
+%changelog
+* Sun Sep 20 2026 Python_Bot <Python_Bot@openeuler.org> - 4.13.2-1
+- Initial package