File python-ply.spec of Package python-ply

# Created by pyp2rpm-3.2.3
%global pypi_name ply

Name:           python-%{pypi_name}
Version:        3.10
Release:        1%{?dist}
Summary:        Python Lex & Yacc

License:        BSD
URL:            http://www.dabeaz.com/ply/
Source0:        https://pypi.io/packages/source/p/ply/ply-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

%description
PLY is yet another implementation of lex and yacc for Python. Some notable
features include the fact that its implemented entirely in Python and it uses
LALR(1) parsing which is efficient and well suited for larger grammars.

%package -n     python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}

%description -n python2-%{pypi_name}
PLY is yet another implementation of lex and yacc for Python. Some notable
features include the fact that its implemented entirely in Python and it uses
LALR(1) parsing which is efficient and well suited for larger grammars.


%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py2_build

%install
%py2_install


%files -n python2-%{pypi_name}
%doc README.md
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Tue Dec 26 2017 Yunfei Shi <shiyf2@lenovo.com> - 3.10-1
- Initial package.
openSUSE Build Service is sponsored by