File python-bytecodeassembler.spec of Package python-bytecodeassembler
#
# spec file for package python-bytecodeassembler (Version 0.5.1)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# norootforbuild
%define real_name BytecodeAssembler
Name: python-bytecodeassembler
Version: 0.5.1
Release: 0
License: PSF or ZPL
Source: %{real_name}-%{version}.tar.gz
Group: Development/Libraries/Python
Summary: Generate Python code objects by "assembling" bytecode
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
Url: http://pypi.python.org/pypi/ByteCodeAssembler
BuildRequires: python-setuptools
%py_requires
%description
peak.util.assembler is a simple bytecode assembler module that handles most low-level bytecode generation details like jump offsets, stack size tracking, line number table generation, constant and variable name index tracking, etc. That way, you can focus your attention on the desired semantics of your bytecode instead of on these mechanical issues.
In addition to a low-level opcode-oriented API for directly generating specific Python bytecodes, this module also offers an extensible mini-AST framework for generating code from high-level specifications. This framework does most of the work needed to transform tree-like structures into linear bytecode instructions, and includes the ability to do compile-time constant folding.
%prep
%setup -q -n %real_name-%version
%build
python setup.py build
%install
python setup.py install --prefix=%_prefix --root=%buildroot --record-rpm=filelist
%clean
rm -rf %buildroot
%files -f filelist
%defattr(-,root,root)
%doc
#PKG-INFO docs
%changelog
* Wed Mar 04 2009 cfarrell1980@gmail.com
- Initial import