Subpackage python2-ply has been removed
This commit is contained in:
parent
b4854c44e5
commit
1566f6de43
@ -3,7 +3,7 @@
|
||||
Name: python-%{modname}
|
||||
Summary: Python Lex-Yacc
|
||||
Version: 3.11
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
License: BSD
|
||||
URL: http://www.dabeaz.com/ply/
|
||||
Source0: http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz
|
||||
@ -23,28 +23,6 @@ essential features:
|
||||
functionality. In other words, it's not a large parsing framework or a
|
||||
component of some larger system.
|
||||
|
||||
%package -n python2-%{modname}
|
||||
Summary: Python Lex-Yacc
|
||||
%{?python_provide:%python_provide python2-%{modname}}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
|
||||
%description -n python2-%{modname}
|
||||
PLY is a straightforward lex/yacc implementation. Here is a list of its
|
||||
essential features:
|
||||
* It is implemented entirely in Python.
|
||||
* It uses LR-parsing which is reasonably efficient and well suited for larger
|
||||
grammars.
|
||||
* PLY provides most of the standard lex/yacc features including support
|
||||
for empty productions, precedence rules, error recovery, and support
|
||||
for ambiguous grammars.
|
||||
* PLY is straightforward to use and provides very extensive error checking.
|
||||
* PLY doesn't try to do anything more or less than provide the basic lex/yacc
|
||||
functionality. In other words, it's not a large parsing framework or a
|
||||
component of some larger system.
|
||||
|
||||
Python 2 version.
|
||||
|
||||
%package -n python3-%{modname}
|
||||
Summary: Python Lex-Yacc
|
||||
%{?python_provide:%python_provide python3-%{modname}}
|
||||
@ -69,49 +47,35 @@ Python 3 version.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{modname}-%{version}
|
||||
#mv %{modname}-%{version} python2
|
||||
find example/ -type f -executable -exec chmod -x {} ';'
|
||||
find example/ -type f -name '*.py' -exec sed -i \
|
||||
-e '1{\@^#!/usr/bin/env python@d}' -e '1{\@^#!/usr/local/bin/python@d}' \
|
||||
{} ';'
|
||||
rm -rf *.egg-info
|
||||
|
||||
#if %{with python3}
|
||||
#cp -ai python2 python3
|
||||
#endif # with python3
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
pushd test
|
||||
./cleanup.sh
|
||||
%{__python2} testlex.py
|
||||
%{__python2} testyacc.py
|
||||
popd
|
||||
|
||||
pushd test
|
||||
./cleanup.sh
|
||||
%{__python3} testlex.py
|
||||
%{__python3} testyacc.py
|
||||
popd
|
||||
|
||||
%files -n python2-%{modname}
|
||||
%doc CHANGES README.md
|
||||
%{python2_sitelib}/%{modname}/
|
||||
%{python2_sitelib}/%{modname}-%{version}-*.egg-info/
|
||||
|
||||
%files -n python3-%{modname}
|
||||
%doc CHANGES README.md
|
||||
%{python3_sitelib}/%{modname}/
|
||||
%{python3_sitelib}/%{modname}-%{version}-*.egg-info/
|
||||
|
||||
%changelog
|
||||
* Sun Oct 20 2019 Miro Hrončok <mhroncok@redhat.com> - 3.11-6
|
||||
- Subpackage python2-ply has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.11-5
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user