2020-04-30 09:04:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-antlr4-python3-runtime
|
|
|
|
#
|
2025-08-25 09:52:40 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
2020-04-30 09:04:56 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-05-07 07:04:30 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2020-04-30 09:04:56 +00:00
|
|
|
|
|
|
|
|
2025-08-25 09:52:40 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%bcond_without libalternatives
|
|
|
|
%else
|
|
|
|
%bcond_with libalternatives
|
|
|
|
%endif
|
2024-03-07 11:46:14 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2020-04-30 09:04:56 +00:00
|
|
|
Name: python-antlr4-python3-runtime
|
2024-10-08 14:26:28 +00:00
|
|
|
Version: 4.13.2
|
2020-04-30 09:04:56 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: ANTLR runtime for Python 3
|
2020-05-07 07:04:30 +00:00
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://www.antlr.org
|
2022-05-24 12:18:17 +00:00
|
|
|
Source: https://github.com/antlr/antlr4/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2020-04-30 09:04:56 +00:00
|
|
|
Source1: LICENSE.txt
|
Accepting request 1126772 from home:glaubitz:branches:devel:languages:python
- Update to version 4.13.1
csharp target
* [CSharp] Fix for #4386 -- change signatures for ReportAttemptingFullContext()
and ReportContextSensitivity() to be identical to all other targets (target:csharp,
type:cleanup)
go target
* Move GetText(), SetText(), and String() from CommonToken to BaseToken
(target:go, type:cleanup)
* Restore "Obtained from string" source name. (target:go, type:cleanup)
* fix: Fix very minor code issues spotted by goreportcard.com (target:go, type:cleanup)
java target
* Java: suppress this-escape warning introduced in JDK 21. (actions, target:java)
javascript target
* Adds default targets for babel configuration (target:javascript)
* fix dependabot warnings (target:javascript, type:cleanup)
swift target
* [SWIFT] Add Antlr4Dynamic product (target:swift)
* Cleanup duplicate SwiftTarget code (target:swift, type:cleanup)
dart target
* [Dart] Fix for #4320--export additional types (type:bug, target:dart)
- from version 4.13.0
Issues fixed
* antlr4 jar doubled in size in 4.9.3 (unicode, comp:performance)
* Go: exponentially bad/absymal performance as of ... (type:bug, target:go)
* Go runtime panic (type:bug, target:go)
Improvements, features
* Update LexerATNSimulator.cs with virtual Consume (type:improvement, target:csharp)
* Feature/fixembedding (type:improvement, target:go, comp:performance)
* Provide Javascript port of TokenStreamRewriter (type:feature,
target:javascript, target:typescript)
OBS-URL: https://build.opensuse.org/request/show/1126772
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=8
2023-11-16 09:27:30 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-01-03 09:41:49 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
Accepting request 1126772 from home:glaubitz:branches:devel:languages:python
- Update to version 4.13.1
csharp target
* [CSharp] Fix for #4386 -- change signatures for ReportAttemptingFullContext()
and ReportContextSensitivity() to be identical to all other targets (target:csharp,
type:cleanup)
go target
* Move GetText(), SetText(), and String() from CommonToken to BaseToken
(target:go, type:cleanup)
* Restore "Obtained from string" source name. (target:go, type:cleanup)
* fix: Fix very minor code issues spotted by goreportcard.com (target:go, type:cleanup)
java target
* Java: suppress this-escape warning introduced in JDK 21. (actions, target:java)
javascript target
* Adds default targets for babel configuration (target:javascript)
* fix dependabot warnings (target:javascript, type:cleanup)
swift target
* [SWIFT] Add Antlr4Dynamic product (target:swift)
* Cleanup duplicate SwiftTarget code (target:swift, type:cleanup)
dart target
* [Dart] Fix for #4320--export additional types (type:bug, target:dart)
- from version 4.13.0
Issues fixed
* antlr4 jar doubled in size in 4.9.3 (unicode, comp:performance)
* Go: exponentially bad/absymal performance as of ... (type:bug, target:go)
* Go runtime panic (type:bug, target:go)
Improvements, features
* Update LexerATNSimulator.cs with virtual Consume (type:improvement, target:csharp)
* Feature/fixembedding (type:improvement, target:go, comp:performance)
* Provide Javascript port of TokenStreamRewriter (type:feature,
target:javascript, target:typescript)
OBS-URL: https://build.opensuse.org/request/show/1126772
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=8
2023-11-16 09:27:30 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-04-30 09:04:56 +00:00
|
|
|
BuildRequires: fdupes
|
2020-05-07 07:04:30 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2025-08-25 09:52:40 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%if %{with libalternatives}
|
|
|
|
BuildRequires: alts
|
|
|
|
Requires: alts
|
|
|
|
%else
|
2021-01-31 13:41:33 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-02-08 10:38:59 +00:00
|
|
|
Requires(postun): update-alternatives
|
2025-08-25 09:52:40 +00:00
|
|
|
%endif
|
2020-04-30 09:04:56 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%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 runtime for Python 3.
|
|
|
|
|
|
|
|
%prep
|
2022-05-24 12:18:17 +00:00
|
|
|
%setup -q -n antlr4-%{version}/runtime/Python3
|
2020-04-30 09:04:56 +00:00
|
|
|
cp %{SOURCE1} LICENSE.txt
|
2024-02-08 10:38:59 +00:00
|
|
|
# fixing for python 3.12
|
|
|
|
sed -i 's,self.assertEquals,self.assertEqual,' tests/Test*
|
2020-04-30 09:04:56 +00:00
|
|
|
|
|
|
|
%build
|
Accepting request 1126772 from home:glaubitz:branches:devel:languages:python
- Update to version 4.13.1
csharp target
* [CSharp] Fix for #4386 -- change signatures for ReportAttemptingFullContext()
and ReportContextSensitivity() to be identical to all other targets (target:csharp,
type:cleanup)
go target
* Move GetText(), SetText(), and String() from CommonToken to BaseToken
(target:go, type:cleanup)
* Restore "Obtained from string" source name. (target:go, type:cleanup)
* fix: Fix very minor code issues spotted by goreportcard.com (target:go, type:cleanup)
java target
* Java: suppress this-escape warning introduced in JDK 21. (actions, target:java)
javascript target
* Adds default targets for babel configuration (target:javascript)
* fix dependabot warnings (target:javascript, type:cleanup)
swift target
* [SWIFT] Add Antlr4Dynamic product (target:swift)
* Cleanup duplicate SwiftTarget code (target:swift, type:cleanup)
dart target
* [Dart] Fix for #4320--export additional types (type:bug, target:dart)
- from version 4.13.0
Issues fixed
* antlr4 jar doubled in size in 4.9.3 (unicode, comp:performance)
* Go: exponentially bad/absymal performance as of ... (type:bug, target:go)
* Go runtime panic (type:bug, target:go)
Improvements, features
* Update LexerATNSimulator.cs with virtual Consume (type:improvement, target:csharp)
* Feature/fixembedding (type:improvement, target:go, comp:performance)
* Provide Javascript port of TokenStreamRewriter (type:feature,
target:javascript, target:typescript)
OBS-URL: https://build.opensuse.org/request/show/1126772
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=8
2023-11-16 09:27:30 +00:00
|
|
|
%pyproject_wheel
|
2020-04-30 09:04:56 +00:00
|
|
|
|
|
|
|
%install
|
Accepting request 1126772 from home:glaubitz:branches:devel:languages:python
- Update to version 4.13.1
csharp target
* [CSharp] Fix for #4386 -- change signatures for ReportAttemptingFullContext()
and ReportContextSensitivity() to be identical to all other targets (target:csharp,
type:cleanup)
go target
* Move GetText(), SetText(), and String() from CommonToken to BaseToken
(target:go, type:cleanup)
* Restore "Obtained from string" source name. (target:go, type:cleanup)
* fix: Fix very minor code issues spotted by goreportcard.com (target:go, type:cleanup)
java target
* Java: suppress this-escape warning introduced in JDK 21. (actions, target:java)
javascript target
* Adds default targets for babel configuration (target:javascript)
* fix dependabot warnings (target:javascript, type:cleanup)
swift target
* [SWIFT] Add Antlr4Dynamic product (target:swift)
* Cleanup duplicate SwiftTarget code (target:swift, type:cleanup)
dart target
* [Dart] Fix for #4320--export additional types (type:bug, target:dart)
- from version 4.13.0
Issues fixed
* antlr4 jar doubled in size in 4.9.3 (unicode, comp:performance)
* Go: exponentially bad/absymal performance as of ... (type:bug, target:go)
* Go runtime panic (type:bug, target:go)
Improvements, features
* Update LexerATNSimulator.cs with virtual Consume (type:improvement, target:csharp)
* Feature/fixembedding (type:improvement, target:go, comp:performance)
* Provide Javascript port of TokenStreamRewriter (type:feature,
target:javascript, target:typescript)
OBS-URL: https://build.opensuse.org/request/show/1126772
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=8
2023-11-16 09:27:30 +00:00
|
|
|
%pyproject_install
|
2021-01-31 13:41:33 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pygrun
|
2020-04-30 09:04:56 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2021-01-31 13:41:33 +00:00
|
|
|
%prepare_alternative pygrun
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative pygrun
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative pygrun
|
|
|
|
|
2025-08-25 09:52:40 +00:00
|
|
|
%pre
|
|
|
|
%python_libalternatives_reset_alternative pygrun
|
|
|
|
|
2021-01-31 13:41:33 +00:00
|
|
|
%check
|
2022-05-24 12:18:17 +00:00
|
|
|
cd %{_builddir}/antlr4-%{version}/runtime/Python3
|
Accepting request 1126772 from home:glaubitz:branches:devel:languages:python
- Update to version 4.13.1
csharp target
* [CSharp] Fix for #4386 -- change signatures for ReportAttemptingFullContext()
and ReportContextSensitivity() to be identical to all other targets (target:csharp,
type:cleanup)
go target
* Move GetText(), SetText(), and String() from CommonToken to BaseToken
(target:go, type:cleanup)
* Restore "Obtained from string" source name. (target:go, type:cleanup)
* fix: Fix very minor code issues spotted by goreportcard.com (target:go, type:cleanup)
java target
* Java: suppress this-escape warning introduced in JDK 21. (actions, target:java)
javascript target
* Adds default targets for babel configuration (target:javascript)
* fix dependabot warnings (target:javascript, type:cleanup)
swift target
* [SWIFT] Add Antlr4Dynamic product (target:swift)
* Cleanup duplicate SwiftTarget code (target:swift, type:cleanup)
dart target
* [Dart] Fix for #4320--export additional types (type:bug, target:dart)
- from version 4.13.0
Issues fixed
* antlr4 jar doubled in size in 4.9.3 (unicode, comp:performance)
* Go: exponentially bad/absymal performance as of ... (type:bug, target:go)
* Go runtime panic (type:bug, target:go)
Improvements, features
* Update LexerATNSimulator.cs with virtual Consume (type:improvement, target:csharp)
* Feature/fixembedding (type:improvement, target:go, comp:performance)
* Provide Javascript port of TokenStreamRewriter (type:feature,
target:javascript, target:typescript)
OBS-URL: https://build.opensuse.org/request/show/1126772
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=8
2023-11-16 09:27:30 +00:00
|
|
|
%{python_expand #
|
|
|
|
PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/run.py
|
|
|
|
}
|
2020-04-30 09:04:56 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.txt
|
|
|
|
%license LICENSE.txt
|
2021-01-31 13:41:33 +00:00
|
|
|
%python_alternative %{_bindir}/pygrun
|
Accepting request 1126772 from home:glaubitz:branches:devel:languages:python
- Update to version 4.13.1
csharp target
* [CSharp] Fix for #4386 -- change signatures for ReportAttemptingFullContext()
and ReportContextSensitivity() to be identical to all other targets (target:csharp,
type:cleanup)
go target
* Move GetText(), SetText(), and String() from CommonToken to BaseToken
(target:go, type:cleanup)
* Restore "Obtained from string" source name. (target:go, type:cleanup)
* fix: Fix very minor code issues spotted by goreportcard.com (target:go, type:cleanup)
java target
* Java: suppress this-escape warning introduced in JDK 21. (actions, target:java)
javascript target
* Adds default targets for babel configuration (target:javascript)
* fix dependabot warnings (target:javascript, type:cleanup)
swift target
* [SWIFT] Add Antlr4Dynamic product (target:swift)
* Cleanup duplicate SwiftTarget code (target:swift, type:cleanup)
dart target
* [Dart] Fix for #4320--export additional types (type:bug, target:dart)
- from version 4.13.0
Issues fixed
* antlr4 jar doubled in size in 4.9.3 (unicode, comp:performance)
* Go: exponentially bad/absymal performance as of ... (type:bug, target:go)
* Go runtime panic (type:bug, target:go)
Improvements, features
* Update LexerATNSimulator.cs with virtual Consume (type:improvement, target:csharp)
* Feature/fixembedding (type:improvement, target:go, comp:performance)
* Provide Javascript port of TokenStreamRewriter (type:feature,
target:javascript, target:typescript)
OBS-URL: https://build.opensuse.org/request/show/1126772
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=8
2023-11-16 09:27:30 +00:00
|
|
|
%{python_sitelib}/antlr4_python3_runtime-*.dist-info
|
2021-01-31 13:41:33 +00:00
|
|
|
%{python_sitelib}/antlr4
|
2020-04-30 09:04:56 +00:00
|
|
|
|
|
|
|
%changelog
|