summaryrefslogtreecommitdiff
path: root/python3-antlr4.spec
blob: a92796451e2c6027f4ac871e101e37451e8d3f2d (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
61
62
63
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