3bcb5e7
%global		oname Parsley
3bcb5e7
%global		lowname parsley
ishcherb 9a7fda8
3bcb5e7
Name:		python-parsley
e46a8d9
Version:	1.3
6ca2501
Release:	30%{?dist}
3bcb5e7
Summary:	Parsing and pattern matching made easy
3bcb5e7
License:	MIT
3bcb5e7
URL:		https://launchpad.net/parsley
ishcherb 9a7fda8
Source0:	https://files.pythonhosted.org/packages/source/P/%{oname}/%{oname}-%{version}.tar.gz
b96c5ac
Patch:		tests-replace-usage-of-obsolete-TestCase-methods.patch
3bcb5e7
BuildArch:	noarch
ishcherb 9a7fda8
2622a6f
BuildRequires: make
ishcherb 9a7fda8
BuildRequires:	python3-devel
ishcherb 9a7fda8
BuildRequires:	python3-pytest
ishcherb 9a7fda8
BuildRequires:	python3-twisted
ishcherb 9a7fda8
BuildRequires:	python3-sphinx
3bcb5e7
75cd44f
%global _description\
75cd44f
A parser generator library based on OMeta, and other useful parsing tools.\
75cd44f
Parsley is a parsing library for people who find parsers scary or\
75cd44f
annoying. I wrote it because I wanted to parse a programming language,\
75cd44f
and tools like PLY or ANTLR or Bison were very hard to understand and\
75cd44f
integrate into my Python code. Most parser generators are based on LL\
75cd44f
or LR parsing algorithms that compile to big state machine\
75cd44f
tables. It was like I had to wake up a different section of my brain\
75cd44f
to understand or work on grammar rules.\
75cd44f
\
75cd44f
Parsley, like pyparsing and ZestyParser, uses the PEG algorithm, so\
75cd44f
each expression in the grammar rules works like a Python\
75cd44f
expression. In particular, alternatives are evaluated in order, unlike\
75cd44f
table-driven parsers such as yacc, bison or PLY.\
75cd44f
\
75cd44f
Parsley is an implementation of OMeta, an object-oriented\
75cd44f
pattern-matching language developed by Alessandro Warth at\
75cd44f
thesis, which provides a detailed description of OMeta:\
75cd44f
http://www.vpri.org/pdf/tr2008003_experimenting.pdf
3bcb5e7
75cd44f
%description %_description
3bcb5e7
ishcherb 9a7fda8
%package -n python3-parsley
ishcherb 9a7fda8
Summary: %summary
ishcherb 9a7fda8
%{?python_provide:%python_provide python3-parsley}
ishcherb 9a7fda8
ishcherb 9a7fda8
%description -n python3-parsley %_description
ishcherb 9a7fda8
3bcb5e7
%prep
b96c5ac
%autosetup -p1 -n %{oname}-%{version}
3bcb5e7
rm -rf *.egg*
3bcb5e7
3bcb5e7
%build
ishcherb 9a7fda8
%py3_build
3bcb5e7
make -C doc html man
3bcb5e7
rm -f doc/_build/html/.buildinfo
3bcb5e7
3bcb5e7
%install
ishcherb 9a7fda8
%py3_install
3bcb5e7
mkdir -p %{buildroot}%{_mandir}/man1
3bcb5e7
cp -a %{_builddir}/%{oname}-%{version}/doc/_build/man/%{lowname}.1* %{buildroot}%{_mandir}/man1
3bcb5e7
ishcherb 9a7fda8
%check
ishcherb 9a7fda8
# Exclude only test_vm_builder tests, as they are failing due to missing vm files.
ishcherb 9a7fda8
py.test-%{python3_version} terml/test ometa/test --ignore=ometa/test/test_vm_builder.py
ishcherb 9a7fda8
ishcherb 9a7fda8
%files -n python3-parsley
ishcherb 9a7fda8
%license LICENSE
ishcherb 9a7fda8
%doc NEWS README
ishcherb 9a7fda8
%{_mandir}/man1/%{lowname}.1*
ishcherb 9a7fda8
%{python3_sitelib}/%{oname}-%{version}-py3.*.egg-info
ishcherb 9a7fda8
%{python3_sitelib}/ometa/
ishcherb 9a7fda8
%{python3_sitelib}/__pycache__/%{lowname}.*
ishcherb 9a7fda8
%{python3_sitelib}/%{lowname}.*
ishcherb 9a7fda8
%{python3_sitelib}/terml/
ishcherb 9a7fda8
3bcb5e7
%changelog
6ca2501
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-30
6ca2501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
6ca2501
27dafcd
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-29
27dafcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
27dafcd
b96c5ac
* Tue Aug 15 2023 Maxwell G <maxwell@gtmx.me> - 1.3-28
b96c5ac
- Fix Python 3.12 FTBFS. Fixes rhbz#2175191 and rhbz#2226275.
b96c5ac
0eda3a6
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-27
0eda3a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
0eda3a6
7dcbc54
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 1.3-26
7dcbc54
- Rebuilt for Python 3.12
7dcbc54
7605c7b
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-25
7605c7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7605c7b
1dae2a5
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-24
1dae2a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1dae2a5
24162f4
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.3-23
24162f4
- Rebuilt for Python 3.11
24162f4
d8774fc
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-22
d8774fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d8774fc
8f58a38
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-21
8f58a38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8f58a38
fcc19be
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3-20
fcc19be
- Rebuilt for Python 3.10
fcc19be
e36a2a6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-19
e36a2a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e36a2a6
10b6f1c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-18
10b6f1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
10b6f1c
88cd290
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3-17
88cd290
- Rebuilt for Python 3.9
88cd290
23e0b00
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-16
23e0b00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
23e0b00
4c5a7b8
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-15
4c5a7b8
- Rebuilt for Python 3.8.0rc1 (#1748018)
4c5a7b8
2a18f05
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3-14
2a18f05
- Rebuilt for Python 3.8
2a18f05
5b705cc
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-13
5b705cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5b705cc
376af6c
* Mon Mar 11 2019 Luis Bazan <lbazan@fedoraproject.org> - 1.3-12
376af6c
- Fix BZ #1687413
376af6c
b02d727
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-11
b02d727
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b02d727
64516eb
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-10
64516eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
64516eb
03540c6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3-9
03540c6
- Rebuilt for Python 3.7
03540c6
955eeb8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-8
955eeb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
955eeb8
ishcherb 9a7fda8
* Tue Aug 22 2017 Iryna Shcherbina <ishcherb@redhat.com> - 1.3-7
ishcherb 9a7fda8
- Provide a Python 3 subpackage (rhbz#1472491)
ishcherb 9a7fda8
- Run tests
ishcherb 9a7fda8
75cd44f
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3-6
75cd44f
- Python 2 binary package renamed to python2-parsley
75cd44f
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
75cd44f
a890b4d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-5
a890b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a890b4d
d07b461
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
d07b461
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d07b461
8809c20
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
8809c20
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8809c20
995e019
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2
995e019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
995e019
e46a8d9
* Thu Dec 31 2015 Robert Mayr <robyduck@fedoraoproject.org> 1.3-1
e46a8d9
- Bump release to 1.3
e46a8d9
f2dc460
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
f2dc460
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f2dc460
3bcb5e7
* Fri Jan 09 2015 Robert Mayr <robyduck@fedoraoproject.org> 1.2-3
3bcb5e7
- Applying permission fix and correct check section BZ #1179947
3bcb5e7
3bcb5e7
* Thu Jan 08 2015 Robert Mayr <robyduck@fedoraoproject.org> 1.2-2
3bcb5e7
- Applying bugfixes accordingly to comments in BZ #1179947
3bcb5e7
3bcb5e7
* Wed Jan 07 2015 Robert Mayr <robyduck@fedoraoproject.org> 1.2-1
3bcb5e7
- Initial package for Fedora