# Created by pyp2rpm-3.3.2 %global pypi_name rply Name: python-%{pypi_name} Version: 0.7.7 Release: 1%{?dist} Summary: A pure Python Lex/Yacc that works with RPython License: BSD 3-Clause License URL: None Source0: https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Welcome to RPLY! A pure Python parser generator, that also works with RPython. It is a more-or-less direct port of David Beazley's awesome PLY, with a new public API, and RPython support.You can find the documentation online_.Basic API:.. code:: python from rply import ParserGenerator, LexerGenerator from rply.token import BaseBox lg LexerGenerator() Add takes a rule name, and a regular... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(appdirs) %description -n python3-%{pypi_name} Welcome to RPLY! A pure Python parser generator, that also works with RPython. It is a more-or-less direct port of David Beazley's awesome PLY, with a new public API, and RPython support.You can find the documentation online_.Basic API:.. code:: python from rply import ParserGenerator, LexerGenerator from rply.token import BaseBox lg LexerGenerator() Add takes a rule name, and a regular... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Tue Mar 26 2019 mockbuilder - 0.7.7-1 - Initial package.