File python-prioritized_methods.spec of Package python-prioritized_methods

#
# spec file for package python-prioritized_methods (Version 0.2.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 prioritized_methods

Name:           python-%{real_name}
Version:        0.2.1
Release:        0
License:        MIT
Source:         %{real_name}-%{version}.tar.gz
Group:          Development/Libraries/Python
Summary:        Prioritize methods to avoid AmbiguousMethods situations
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Autoreqprov:    on
Url:            http://pypi.python.org/pypi/prioritized_methods
BuildRequires:  python-setuptools
Requires:       python-peakrules
%py_requires

%description
This module provides four decorators

    prioritized_when

    prioritized_around

    prioritized_before

    prioritized_after

These behave like their peak.rules counterparts except that they accept an
optional prio argument which can be used to provide a comparable object
(usually an integer) that will be used to disambiguate situations in which more
than rule applies to the given arguments and no rule is more specific than
another. That is, situations in which an peak.rules.AmbiguousMethods would
have been raised.

%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
* Fri May 29 2009 cfarrell1980@gmail.com
- Initial import
openSUSE Build Service is sponsored by