rpms/python-prioritized-methods/F-8 python-prioritized-methods.spec, NONE, 1.1 sources, 1.1, 1.2
Luke Macken
lmacken at fedoraproject.org
Wed Sep 17 22:42:47 UTC 2008
Author: lmacken
Update of /cvs/pkgs/rpms/python-prioritized-methods/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22203
Modified Files:
sources
Added Files:
python-prioritized-methods.spec
Log Message:
Initial import to the F-8 branch.
--- NEW FILE python-prioritized-methods.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define packagename prioritized_methods
Name: python-prioritized-methods
Version: 0.2.1
Release: 1
Summary: An extension to PEAK-Rules to prioritize methods in order
Group: Development/Languages
License: MIT
URL: http://pypi.python.org/pypi/prioritized_methods
Source0: http://pypi.python.org/packages/source/p/%{packagename}/%{packagename}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
Requires: python-peak-rules >= 0.5a1.dev-0.2562
%description
This module provides four decorators: `prioritized_when`, `prioritized_around`,
`prioritized_before`, and `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.
This is useful for libraries which want to be extensible via generic functions
but want their users to easily override a method without figuring out how to
write a more specific rule or when it is not feasible.
%prep
%setup -q -n %{packagename}-%{version}
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
%changelog
* Tue Sep 16 2008 Luke Macken <lmacken at redhat.com> - 0.2.1-1
- Initial package for Fedora
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-prioritized-methods/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 17 Sep 2008 18:52:59 -0000 1.1
+++ sources 17 Sep 2008 22:42:17 -0000 1.2
@@ -0,0 +1 @@
+1e9d9de02291b0fc27942b48c170ddc3 prioritized_methods-0.2.1.tar.gz
More information about the fedora-extras-commits
mailing list