Group :: Desenvolvimento/Python
RPM: python-module-tpg
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# $Id: python-module-SAMPLE.spec 138 2004-03-26 23:17:36Z cray $
# vim: termencoding=koi8-r
# vim: encoding=utf-8
%define version 3.0.5
%define release alt2
%define nameUC TPG
%setup_python_module tpg
Summary: Toy Parser Generator is syntax analyzer under Python
Summary(ru_RU.UTF-8): Простой, но мощный синтаксический анализатор Toy Parser Generator
Name: %packagename
Version: %version
Release: %release
Source: http://christophe.delord.free.fr/soft/tpg/%nameUC-%version.tar.gz
License: BSD
Group: Development/Python
Prefix: %_prefix
Url: http://christophe.delord.free.fr/en/tpg/
#Patch: pyxmms.setup.usr.patch
%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, ...).
This module is built for python %__python_version
%description -l ru_RU.UTF-8
Toy Parser Generator -- это лексический и синтаксический анализатор,
порождающий код на Python. Идея автора была в том, чтобы в простых случаях
(калькуляторы, анализаторы конфигурационных файлов, встроенные языки
программирования) заменить YACC более простым и высокоуровневым инструментом.
Этот модуль собран для Python версии %__python_version
%prep
%setup -q -n %nameUC-%version
#%patch
%build
mkdir -p buildroot
# Unfortunately build and install steps should be done at once
# because otherwise .pyo files won't get into INSTALLED_FILES
# record
CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=`pwd`/buildroot \
--record=INSTALLED_FILES
%install
cp -pr buildroot %buildroot
unset RPM_PYTHON
%files -f INSTALLED_FILES
%doc doc/*
%doc examples
%changelog
…
Todas as alterações você pod ver aqui
# vim: termencoding=koi8-r
# vim: encoding=utf-8
%define version 3.0.5
%define release alt2
%define nameUC TPG
%setup_python_module tpg
Summary: Toy Parser Generator is syntax analyzer under Python
Summary(ru_RU.UTF-8): Простой, но мощный синтаксический анализатор Toy Parser Generator
Name: %packagename
Version: %version
Release: %release
Source: http://christophe.delord.free.fr/soft/tpg/%nameUC-%version.tar.gz
License: BSD
Group: Development/Python
Prefix: %_prefix
Url: http://christophe.delord.free.fr/en/tpg/
#Patch: pyxmms.setup.usr.patch
%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, ...).
This module is built for python %__python_version
%description -l ru_RU.UTF-8
Toy Parser Generator -- это лексический и синтаксический анализатор,
порождающий код на Python. Идея автора была в том, чтобы в простых случаях
(калькуляторы, анализаторы конфигурационных файлов, встроенные языки
программирования) заменить YACC более простым и высокоуровневым инструментом.
Этот модуль собран для Python версии %__python_version
%prep
%setup -q -n %nameUC-%version
#%patch
%build
mkdir -p buildroot
# Unfortunately build and install steps should be done at once
# because otherwise .pyo files won't get into INSTALLED_FILES
# record
CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=`pwd`/buildroot \
--record=INSTALLED_FILES
%install
cp -pr buildroot %buildroot
unset RPM_PYTHON
%files -f INSTALLED_FILES
%doc doc/*
%doc examples
%changelog
…
Todas as alterações você pod ver aqui