%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global modname simplegeneric
Name: python-simplegeneric
Version: 0.6
Release: 2%{?dist}
Summary: Simple generic functions (similar to Python's own len(), pickle.dump(), etc.)
Group: Development/Languages
License: Python or ZPLv2.1
URL: http://cheeseshop.python.org/pypi/simplegeneric
Source0: http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-setuptools-devel
%description
The simplegeneric module lets you define simple single-dispatch generic
functions, akin to Python's built-in generic functions like len(), iter() and
so on. However, instead of using specially-named methods, these generic
functions use simple lookup tables, akin to those used by e.g. pickle.dump()
and other generic functions found in the Python standard library.
%prep
%setup -q -n %{modname}-%{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,-)
%doc README.txt
%{python_sitelib}/*
%changelog
* Mon Apr 19 2010 Luke Macken <lmacken@redhat.com> - 0.6-2
- Change license from 'PSF or ZPL' to 'Python or ZPLv2.1'
* Tue Apr 13 2010 Luke Macken <lmacken@redhat.com> - 0.6-1
- Initial package