forked from pool/python-antlr4-python3-runtime
- Update to version 4.9.3 Issues fixed * Swift Target Crashes with Multi-Threading * JavaScript Runtime bug * Go target, cannot use superClass for the lexer grammar! * Python runtime is inconsistent with Java * FunctionDef source extract using getText() * Provide .NET Framework target in the csharp nuget package * Go target for Antlr tool, type ",int8" => "int8" * Flutter/Dart web support * Allow Antlr Javascript runtime to be loaded into Kindle Touch * Fix Go test suite * Weird error Improvements, features * [C++] Use faster alternative to dynamic_cast when not testing inherit * Stackoverflow after upgrading from 4.6 to 4.7 - from version 4.9.2 Issues fixed * CSharp and Java produce different results for identical input, identical tokens Improvements, features * Moved away from travis-ci.com - Source upstream tarball from Github since PyPi tarball no longer ships testsuite OBS-URL: https://build.opensuse.org/request/show/978954 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=6
77 lines
2.3 KiB
RPMSpec
77 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-antlr4-python3-runtime
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-antlr4-python3-runtime
|
|
Version: 4.9.3
|
|
Release: 0
|
|
Summary: ANTLR runtime for Python 3
|
|
License: BSD-3-Clause
|
|
URL: https://www.antlr.org
|
|
Source: https://github.com/antlr/antlr4/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: LICENSE.txt
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
%if %{python3_version_nodots} < 35
|
|
Requires: python-typing
|
|
%endif
|
|
%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
|
|
%setup -q -n antlr4-%{version}/runtime/Python3
|
|
cp %{SOURCE1} LICENSE.txt
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/pygrun
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%prepare_alternative pygrun
|
|
|
|
%post
|
|
%python_install_alternative pygrun
|
|
|
|
%postun
|
|
%python_uninstall_alternative pygrun
|
|
|
|
%check
|
|
cd %{_builddir}/antlr4-%{version}/runtime/Python3
|
|
%pyunittest discover -v --pattern "*.py" --start-directory tests
|
|
|
|
%files %{python_files}
|
|
%doc README.txt
|
|
%license LICENSE.txt
|
|
%python_alternative %{_bindir}/pygrun
|
|
%{python_sitelib}/antlr4_python3_runtime-*.egg-info
|
|
%{python_sitelib}/antlr4
|
|
|
|
%changelog
|