rpms/python-tpg/devel python-tpg.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Shahms King (shahms) fedora-extras-commits at redhat.com
Tue Mar 15 20:44:52 UTC 2005


Author: shahms

Update of /cvs/extras/rpms/python-tpg/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23039/devel

Modified Files:
	.cvsignore sources 
Added Files:
	python-tpg.spec 
Log Message:
auto-import python-tpg-3.0.5-1 on branch devel from python-tpg-3.0.5-1.src.rpm


--- NEW FILE python-tpg.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

%define srcname TPG

Name:           python-tpg
Version:        3.0.5
Release:        1
Summary:        A Python "toy parser generator"
Group:          Development/Libraries
License:        LGPL
URL:            http://christophe.delord.free.fr/en/tpg/
Source0:        http://christophe.delord.free.fr/soft/tpg/TPG-3.0.5.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
Requires:   python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")

%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, ...).

TPG can very simply write parsers that are usefull for most every
day needs (even if it can't make your coffee). With a very clear
and simple syntax, you can write an attributed grammar that is
translated into a recursive descendant parser. TPG generated code
is very closed to the original grammar. This means that the parser
works "like" the grammar. A grammar rule can be seen as a method
of the parser class, symbols as method calls, attributes as method
parameters and semantic values as return values. You can also add
Python code directly into grammar rules and build abstract syntax
trees while parsing.


%prep
%setup -q -n %{srcname}-%{version}


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README doc THANKS ChangeLog License.txt
%{_bindir}/tpg
%{python_sitelib}/tpg.py
%{python_sitelib}/tpg.pyc
%ghost %{python_sitelib}/tpg.pyo

%changelog
* Tue Mar 01 2005 Shahms E. King <shahms at shahms.com> 3.0.5-1 -
- Update to 3.0.5
- Clean up spec file


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-tpg/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	15 Mar 2005 20:44:29 -0000	1.1
+++ .cvsignore	15 Mar 2005 20:44:50 -0000	1.2
@@ -0,0 +1 @@
+TPG-3.0.5.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-tpg/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	15 Mar 2005 20:44:29 -0000	1.1
+++ sources	15 Mar 2005 20:44:50 -0000	1.2
@@ -0,0 +1 @@
+4608d9a4795b02a9df685d1916090432  TPG-3.0.5.tar.gz




More information about the fedora-extras-commits mailing list