Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37880848
en ru br
ALT Linux repos
S:3.2.4-alt1

Group :: Development/Python3
RPM: python3-module-tpg

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Version: 3.2.4
Release: alt1

%def_enable doc

Summary: Toy Parser Generator is syntax analyzer under Python
Summary(ru_RU.UTF-8): Простой, но мощный синтаксический анализатор Toy Parser Generator
%define nameUC TPG
Name: python3-module-tpg
Source: TPG-%version.tar.gz
License: LGPL-2.1
Group: Development/Python3
Url: http://christophe.delord.free.fr/tpg/index.html
Buildarch: noarch

# Automatically added by buildreq on Wed Feb 02 2022

# optimized out: fontconfig libgpg-error libx265-199 python-modules python2-base python3 python3-base python3-dev python3-module-pkg_resources sh4 tex-common texlive texlive-collection-basic texlive-dist
BuildRequires: python3-module-setuptools

%if_enabled doc
BuildRequires: tex4ht texlive-collection-latexrecommended tex(a4wide.sty)
%endif

%description
Toy Parser Generator is a lexical and syntactic parser generator for Python.
This generator was born from a simple statement: YACC is to complex to use in
simple cases (calculators, configuration files, small programming languages, ...).

%description -l ru_RU.UTF-8
Toy Parser Generator -- это лексический и синтаксический анализатор,
порождающий код на Python. Идея автора была в том, чтобы в простых случаях
(калькуляторы, анализаторы конфигурационных файлов, встроенные языки
программирования) заменить YACC более простым и высокоуровневым инструментом.

%prep
%setup -n TPG-%version

%build
%python3_build

%if_enabled doc
cd doc
pdflatex tpg
htlatex tpg
   cd ..
%endif

%install
%python3_install

%files
%if_enabled doc
%doc doc/*.{png,pdf,html,css}
%endif
%doc examples
%_bindir/*
%python3_sitelibdir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin