Blob Blame Raw
# Created by pyp2rpm-1.0.1
%global pypi_name singledispatch
%{!?__python2:%global __python2 %{__python}}

Name:           python-%{pypi_name}
Release:        2%{?dist}
Summary:        This library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3

License:        MIT
BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python-setuptools
BuildRequires:  python-six
Requires:       python-six
%if 0%{?rhel} == 6
Requires:       python-ordereddict
BuildRequires:  python-ordereddict

PEP 443 proposed to expose a mechanism in the functools standard library
module in Python 3.4 that provides a simple form of generic programming 
known as single-dispatch generic functions.

This library is a backport of this functionality to Python 2.6 - 3.3.

%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# remove /usr/bin/env python from scripts
sed -i '1d'
sed -i '1d'

%{__python2} build

%{__python2} install --skip-build --root %{buildroot}

%{__python2} test

%doc README.rst

* Tue Mar 18 2014 Matthias Runge <> -
- add support for epel6

* Tue Mar 18 2014 Matthias Runge <> -
- Initial package.