File python-cyordereddict.spec of Package python-cyordereddict

# spec file for package python-cyordereddict
# Copyright (c) 2015 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.

# Please submit bugfixes or comments via

Name:           python-cyordereddict
Version:        0.2.2
Release:        0
Summary:        Faster Cython implementation of Python's OrderedDict
License:        MIT
Group:          Development/Languages/Python
BuildRequires:  python-devel
BuildRequires:  python-nose
BuildRequires:  python-Cython
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

The Python standard library's OrderedDict ported to Cython. A drop-in
replacement that is 2-6x faster.

%setup -q -n cyordereddict-%{version}

CFLAGS="%{optflags}" python build

python install --prefix=%{_prefix} --root=%{buildroot}

# Tests don't work consistently
# %check
# pushd python2/cyordereddict/test
# PYTHONPATH=%{buildroot}%{python_sitearch} nosetests
# popd

%doc LICENSE.txt README.rst