# # spec file for package python-antlr4-python3-runtime # # Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-antlr4-python3-runtime Version: 4.8 Release: 0 License: BSD-3-clause Summary: ANTLR runtime for Python 3 Url: http://www.antlr.org Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/a/antlr4-python3-runtime/antlr4-python3-runtime-%{version}.tar.gz Source1: LICENSE.txt BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} BuildRequires: fdupes %if %{python3_version_nodots} < 35 Requires: python-typing %endif BuildArch: noarch %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-python3-runtime-%{version} cp %{SOURCE1} LICENSE.txt %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.txt %license LICENSE.txt %{python_sitelib}/* %changelog