forked from pool/python-antlr4-python3-runtime
Accepting request 868140 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/868140 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-antlr4-python3-runtime?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:15793f5d0512a372b4e7d2284058ad32ce7dd27126b105fb0b2245130445db33
|
||||
size 112404
|
3
antlr4-python3-runtime-4.9.1.tar.gz
Normal file
3
antlr4-python3-runtime-4.9.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:759eddb70061ff7387bc877f5b59e3344ab374843604f757afa5b308cb68669a
|
||||
size 173261
|
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 31 10:41:57 UTC 2021 - andy great <andythe_great@pm.me>
|
||||
|
||||
- Update to version 4.9.1.
|
||||
* Improve python3 performance by adding slots
|
||||
* Fix incorrect python token string templates
|
||||
- Add testing.
|
||||
- Skip python2 because this is for python3.
|
||||
- Use python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 29 12:49:38 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-antlr4-python3-runtime
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,8 +17,9 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-antlr4-python3-runtime
|
||||
Version: 4.8
|
||||
Version: 4.9.1
|
||||
Release: 0
|
||||
Summary: ANTLR runtime for Python 3
|
||||
License: BSD-3-Clause
|
||||
@@ -28,6 +29,8 @@ 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
|
||||
@@ -49,11 +52,24 @@ cp %{SOURCE1} LICENSE.txt
|
||||
|
||||
%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
|
||||
%pyunittest discover -v --pattern "*.py" --start-directory test
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.txt
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/pygrun
|
||||
%{python_sitelib}/antlr4_python3_runtime-*.egg-info
|
||||
%{python_sitelib}/antlr4
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user