File python-pies.spec of Package python-pies

#
# spec file for package python-pies
#
# Copyright (c) 2014 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 http://bugs.opensuse.org/
#


Name:           python-pies
Version:        2.6.1
Release:        0
Url:            https://pypi.python.org/pypi/pies
Summary:        The simplest (and tastiest) way to write one program that runs on both Python 2.6+ and Python 3
License:        MIT
Group:          Development/Languages/Python
Source:         pies-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Requires:       python-enum34
Requires:       python-pies2overrides >= 2.6.1

%description
Pies is a Python2 & 3 Compatibility layer with the philosophy that all code 
should be Python3 code. Starting from this viewpoint means that when running 
on Python3 pies adds virtually no overhead.

Instead of providing a bunch of custom methods (leading to Python code that 
looks out of place on any version) pies aims to back port as many of the 
Python3 api calls, imports, and objects to Python2 - Relying on special 
syntax only when absolutely necessary.

%prep
%setup -q -n pies-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%{python_sitelib}/pies/
%{python_sitelib}/pies-%{version}-py*.egg-info

%changelog
openSUSE Build Service is sponsored by