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