File python-extremes.spec of Package python-extremes
# spec file for package python-extremes (Version 1.1.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.
%define real_name Extremes
License: PSF or ZPL
Summary: Production-quality 'Min' and 'Max' objects (adapted from PEP 326)
The peak.util.extremes module provides a production-quality implementation of the Min and Max objects from PEP 326. While PEP 326 was rejected for inclusion in the language or standard library, the objects described in it are useful in a variety of applications. In PEAK, they have been used to implement generic functions (in RuleDispatch and PEAK-Rules), as well as to handle scheduling and time operations in the Trellis. Because this has led to each project copying the same code, we've now split the module out so it can be used independently.
%setup -q -n %real_name-%version
python setup.py build
python setup.py install --prefix=%_prefix --root=%buildroot --record-rpm=filelist
rm -rf %buildroot
%files -f filelist
* Wed Mar 04 2009 email@example.com
- Initial import