File python3-anyjson.spec of Package python-anyjson

#
# spec file for package python-anyjson
#
# Copyright (c) 2012 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:           python3-anyjson
Version:        0.3.3
Release:        0
Summary:        Wraps the best available JSON implementation available in a common interface
License:        BSD-3-Clause
Group:          Development/Languages/Python
Url:            http://bitbucket.org/runeh/anyjson
Source:         anyjson-%{version}.tar.bz2
BuildRequires:  python3
BuildRequires:  python3-2to3
BuildRequires:  python3-devel
BuildRequires:  python3-distribute
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python(abi) = %{py3_ver}

%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArchitectures: noarch
%endif

%description
Anyjson loads whichever is the fastest JSON module installed and provides
a uniform API regardless of which JSON implementation is used.

Originally part of carrot (http://github.com/ask/carrot/)

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

%build
2to3 . -w -n
python3 setup.py build

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

%files
%defattr(-,root,root,-)
%doc CHANGELOG README
%{python3_sitelib}/anyjson/
%{python3_sitelib}/anyjson-%{version}-py%{py3_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by