summaryrefslogtreecommitdiff
path: root/python3-antlr4.spec
blob: 0ef96c52c9c35237c047a1dec6f57ed30748f7f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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