File python-ruledispatch.spec of Package python-ruledispatch
%define modname RuleDispatch
Name: python-ruledispatch
Version: 0.5
%define extraver a0.dev-r2306
Release: 1
Summary: Rule-based Dispatching and Generic Functions
URL: http://peak.telecommunity.com/
License: PSF or ZPL
Group: Development/Libraries/Python
Source: %{modname}-%{version}%{extraver}.tar.bz2
Patch: deprecate_as.patch
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-devel python-setuptools pyrex unzip
%description
This framework refines the algorithms of Chambers and Chen in their 1999
paper, "Efficient Multiple and Predicate Dispatching", to make them suitable
for Python, while adding a few other enhancements like incremental index
building and lazy expansion of the dispatch DAG. Also, their algorithm
was designed only for class selection and true/false tests, while this
framework can be used with any kind of test, such as numeric ranges, or custom
tests such as categorization/hierarchy membership.
Authors:
--------
Phillip J. Eby <peak@eby-sarna.com>
%prep
%setup -q -n %{modname}-%{version}%{extraver}
%if %suse_version >= 1100
%patch -p2
%endif
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc TODO.txt
%changelog
* Thu Nov 13 2008 - Ciaran Farrell <cfarrell1980@gmail.com>
- Renamed as() function to as_deprec() because as is a reserved kw - 0.5-2
* Tue Nov 11 2008 - Ciaran Farrell <cfarrell1980@gmail.com>
- try building with --record-rpm instead of --record - 0.5-1
* Sun Nov 04 2007 - James Oakley <jfunk@funktronics.ca> - 0.5-1
- Grab the specific version from turbogears.org so tg doesn't whine
* Tue Oct 23 2007 - James Oakley <jfunk@funktronics.ca> - 0.5-1
- Update to SVN
* Tue Oct 16 2007 - James Oakley <jfunk@funktronics.ca> - 0.5-1
- Initial release