Blame SPECS/python-lark-parser.spec

d81424
%global pypi_name lark-parser
d81424
d81424
Name:           python-%{pypi_name}
d81424
Version:        0.9.0
d81424
Release:        6%{?dist}
d81424
Summary:        Lark is a modern general-purpose parsing library for Python
d81424
License:        MIT
d81424
Url:            https://github.com/lark-parser/lark
d81424
Source:         https://files.pythonhosted.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
d81424
BuildArch:      noarch
d81424
d81424
%description
d81424
Lark is a modern general-purpose parsing library for Python.
d81424
d81424
Lark focuses on simplicity and power. It lets you choose between
d81424
two parsing algorithms:
d81424
d81424
Earley : Parses all context-free grammars (even ambiguous ones)!
d81424
It is the default.
d81424
d81424
LALR(1): Only LR grammars. Outperforms PLY and most if not all
d81424
other pure-python parsing libraries.
d81424
d81424
Both algorithms are written in Python and can be used interchangeably
d81424
with the same grammar (aside for algorithmic restrictions).
d81424
See "Comparison to other parsers" for more details.
d81424
d81424
Lark can auto magically build an AST from your grammar, without any
d81424
more code on your part.
d81424
d81424
Features:
d81424
d81424
- EBNF grammar with a little extra
d81424
- Earley & LALR(1)
d81424
- Builds an AST auto magically based on the grammar
d81424
- Automatic line & column tracking
d81424
- Automatic token collision resolution (unless both tokens are regexps)
d81424
- Python 2 & 3 compatible
d81424
- Unicode fully supported
d81424
d81424
%package -n python3-%{pypi_name}
d81424
Summary:        %{summary}
d81424
BuildRequires:  python3-devel
d81424
BuildRequires:  python3-setuptools
d81424
%{?python_provide:%python_provide python3-%{pypi_name}}
d81424
d81424
%description -n python3-%{pypi_name}
d81424
Lark is a modern general-purpose parsing library for Python.
d81424
d81424
Lark focuses on simplicity and power. It lets you choose between
d81424
two parsing algorithms:
d81424
d81424
Earley : Parses all context-free grammars (even ambiguous ones)!
d81424
It is the default.
d81424
d81424
LALR(1): Only LR grammars. Outperforms PLY and most if not all
d81424
other pure-python parsing libraries.
d81424
d81424
Both algorithms are written in Python and can be used interchangeably
d81424
with the same grammar (aside for algorithmic restrictions).
d81424
See "Comparison to other parsers" for more details.
d81424
d81424
Lark can auto magically build an AST from your grammar, without any
d81424
more code on your part.
d81424
d81424
Features:
d81424
d81424
- EBNF grammar with a little extra
d81424
- Earley & LALR(1)
d81424
- Builds an AST auto magically based on the grammar
d81424
- Automatic line & column tracking
d81424
- Automatic token collision resolution (unless both tokens are regexps)
d81424
- Python 2 & 3 compatible
d81424
- Unicode fully supported
d81424
d81424
%prep
d81424
%autosetup -n %{pypi_name}-%{version}
d81424
d81424
%build
d81424
%py3_build
d81424
d81424
%install
d81424
%py3_install
d81424
rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/
d81424
d81424
%check
d81424
%{python3} -m tests
d81424
d81424
%files -n python3-%{pypi_name}
d81424
%license LICENSE
d81424
%doc README.md examples
d81424
%{python3_sitelib}/lark_parser-*.egg-info
d81424
%{python3_sitelib}/lark/
d81424
d81424
%changelog
d81424
* Wed Jun 15 2022 Sergio Correia <scorreia@redhat.com> - 0.9.0-6
d81424
- Add python-lark-parser to RHEL-9
d81424
  Resolves: rhbz#2084554
d81424
d81424
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
d81424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d81424
d81424
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
d81424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d81424
d81424
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9.0-3
d81424
- Rebuilt for Python 3.10
d81424
d81424
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
d81424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d81424
d81424
* Mon Oct 05 2020 Miro Hron훾ok <mhroncok@redhat.com> - 0.9.0-1
d81424
- Update to 0.9.0
d81424
d81424
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-3
d81424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d81424
d81424
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 0.8.2-2
d81424
- Rebuilt for Python 3.9
d81424
d81424
* Sat Mar 07 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.8.2-1
d81424
- Update to 0.8.2
d81424
d81424
* Mon Feb 24 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.8.1-1
d81424
- Update to 0.8.1
d81424
d81424
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.8-2
d81424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d81424
d81424
* Wed Nov 06 2019 Thomas Andrejak <thomas.andrejak@c-s.fr> - 0.7.8-1
d81424
- Update to 0.7.8
d81424
d81424
* Fri Oct 25 2019 Thomas Andrejak <thomas.andrejak@c-s.fr> - 0.7.7-1
d81424
- Update to 0.7.7
d81424
d81424
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.7.1-4
d81424
- Rebuilt for Python 3.8.0rc1 (#1748018)
d81424
d81424
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.7.1-3
d81424
- Rebuilt for Python 3.8
d81424
d81424
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
d81424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d81424
d81424
* Mon May 20 2019 Scott K Logan <logans@cottsay.net> - 0.7.1-1
d81424
- Update to 0.7.1
d81424
d81424
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3
d81424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d81424
d81424
* Fri Jan 11 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.6.4-2
d81424
- Fix package naming
d81424
d81424
* Mon Sep 24 2018 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.6.4-1
d81424
- Initial package