344740
%global modname ply
344740
344740
%bcond_without tests
344740
344740
Name:           python-%{modname}
344740
Summary:        Python Lex-Yacc
344740
Version:        3.11
344740
Release:        13%{?dist}
344740
License:        BSD
344740
URL:            http://www.dabeaz.com/ply/
344740
Source0:        http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz
344740
BuildArch:      noarch
344740
344740
%description
344740
PLY is a straightforward lex/yacc implementation. Here is a list of its 
344740
essential features:
344740
* It is implemented entirely in Python.
344740
* It uses LR-parsing which is reasonably efficient and well suited for larger 
344740
  grammars.
344740
* PLY provides most of the standard lex/yacc features including support 
344740
  for empty productions, precedence rules, error recovery, and support 
344740
  for ambiguous grammars.
344740
* PLY is straightforward to use and provides very extensive error checking.
344740
* PLY doesn't try to do anything more or less than provide the basic lex/yacc 
344740
  functionality. In other words, it's not a large parsing framework or a 
344740
  component of some larger system. 
344740
344740
%package -n python3-%{modname}
344740
Summary:        Python Lex-Yacc
344740
%{?python_provide:%python_provide python3-%{modname}}
344740
BuildRequires:  python3-devel
344740
BuildRequires:  python3-setuptools
344740
344740
%description -n python3-%{modname}
344740
PLY is a straightforward lex/yacc implementation. Here is a list of its 
344740
essential features:
344740
* It is implemented entirely in Python.
344740
* It uses LR-parsing which is reasonably efficient and well suited for larger 
344740
  grammars.
344740
* PLY provides most of the standard lex/yacc features including support 
344740
  for empty productions, precedence rules, error recovery, and support 
344740
  for ambiguous grammars.
344740
* PLY is straightforward to use and provides very extensive error checking.
344740
* PLY doesn't try to do anything more or less than provide the basic lex/yacc 
344740
  functionality. In other words, it's not a large parsing framework or a 
344740
  component of some larger system.
344740
344740
Python 3 version.
344740
344740
%prep
344740
%autosetup -n %{modname}-%{version}
344740
find example/ -type f -executable -exec chmod -x {} ';'
344740
find example/ -type f -name '*.py' -exec sed -i \
344740
  -e '1{\@^#!/usr/bin/env python@d}' -e '1{\@^#!/usr/local/bin/python@d}' \
344740
  {} ';'
344740
rm -rf *.egg-info
344740
# extract license block from beginning of README.md
344740
grep -B1000 "POSSIBILITY OF SUCH DAMAGE" README.md > LICENSE
344740
344740
%build
344740
%py3_build
344740
344740
%install
344740
%py3_install
344740
344740
%if %{with tests}
344740
%check
344740
pushd test
344740
  ./cleanup.sh
344740
  %{__python3} testlex.py
344740
  %{__python3} testyacc.py
344740
popd
344740
%endif
344740
344740
%files -n python3-%{modname}
344740
%doc CHANGES README.md
344740
%license LICENSE
344740
%{python3_sitelib}/%{modname}/
344740
%{python3_sitelib}/%{modname}-%{version}-*.egg-info/
344740
344740
%changelog
344740
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 3.11-13
344740
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
344740
  Related: rhbz#1991688
344740
344740
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.11-12
344740
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
344740
344740
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-11
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
344740
344740
* Tue Jan  5 15:25:57 CET 2021 Christian Heimes <cheimes@redhat.com> - 3.11-10
344740
- Extract and ship license file (#1912893)
344740
344740
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-9
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
344740
344740
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 3.11-8
344740
- Rebuilt for Python 3.9
344740
344740
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-7
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
344740
344740
* Sun Oct 20 2019 Miro Hrončok <mhroncok@redhat.com> - 3.11-6
344740
- Subpackage python2-ply has been removed
344740
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
344740
344740
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.11-5
344740
- Rebuilt for Python 3.8.0rc1 (#1748018)
344740
344740
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.11-4
344740
- Rebuilt for Python 3.8
344740
344740
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-3
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
344740
344740
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-2
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
344740
344740
* Fri Jan 11 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.11-1
344740
- Update to 3.11
344740
344740
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-8
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
344740
344740
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3.9-7
344740
- Rebuilt for Python 3.7
344740
344740
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-6
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
344740
344740
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 3.9-5
344740
- Cleanup spec file conditionals
344740
344740
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-4
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
344740
344740
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-3
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
344740
344740
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.9-2
344740
- Rebuild for Python 3.6
344740
344740
* Tue Nov 8 2016 Orion Poplawski <orion@cora.nwra.com> - 3.9-1
344740
- Update to 3.9
344740
344740
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8-2
344740
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
344740
344740
* Sun Apr 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 3.8-1
344740
- Update to 3.8
344740
- Follow new packaging guidelines
344740
- Run tests
344740
344740
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-4
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
344740
344740
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 3.6-3
344740
- Rebuilt for Python3.5 rebuild
344740
344740
* Tue Aug 18 2015 Stephen Gallagher <sgallagh@redhat.com> 3.6-2
344740
- Fixes for chromium and SlimIt
344740
- Resolves: rhbz#1242929
344740
- Resolves: rhbz#1254372
344740
344740
* Tue Jul 14 2015 Stephen Gallagher <sgallagh@redhat.com> 3.6-1
344740
- Update to latest ply 3.6 for Python 3 fixes
344740
344740
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-8
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
344740
344740
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-7
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
344740
344740
* Mon May 12 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4-6
344740
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
344740
344740
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-5
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
344740
344740
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-4
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
344740
344740
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 3.4-3
344740
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
344740
344740
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-2
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
344740
344740
* Mon Mar 19 2012 Tom Callaway <spot@fedoraproject.org> - 3.4-1
344740
- update to 3.4
344740
344740
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-6
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
344740
344740
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-5
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
344740
344740
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.3-4
344740
- update to most recent python packaging guidelines
344740
- rebuild with python3.2
344740
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
344740
344740
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.3-3
344740
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
344740
344740
* Sat Apr  3 2010 David Malcolm <dmalcolm@redhat.com> - 3.3-2
344740
- add python3-ply subpackage
344740
344740
* Mon Oct 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.3-1
344740
- update to 3.3
344740
344740
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-2
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
344740
344740
* Wed Apr 22 2009 Tom "spot" Callaway <tcallawa@redhat.com> 3.2-1
344740
- update to 3.2, license change to BSD
344740
344740
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
344740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
344740
344740
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.5-2
344740
- Rebuild for Python 2.6
344740
344740
* Fri Oct 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.5-1
344740
- update to 2.5
344740
344740
* Mon Mar 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.2.3-2
344740
- add example dir as doc
344740
344740
* Sat Mar 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.2.3-1
344740
- Initial package for Fedora