File python3-simplejson.spec of Package python-simplejson

#
# spec file for package python3-simplejson
#
# Copyright (c) 2013 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/
#


%define modname simplejson
Name:           python3-%{modname}
Version:        3.0.5
Release:        0
Url:            http://github.com/simplejson/simplejson
Summary:        Simple, fast, extensible JSON encoder/decoder for Python
License:        MIT
Group:          Development/Languages/Python
Source:         http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python3
BuildRequires:  python3-devel
BuildRequires:  python3-distribute
Requires:       python3-coverage
Requires:       python3-nose

%description
simplejson is a simple, fast, complete, correct and extensible
JSON encoder and decoder for Python 2.5+. It is pure Python code
with no dependencies, but includes an optional C extension for a
serious speed boost.

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

%build
python3 setup.py build

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

%check
%if 0%{?suse_version} >= 1230
python3 setup.py test
%endif

%files
%defattr(-,root,root)
%doc CHANGES.txt LICENSE.txt README.rst
%{python3_sitearch}/%{modname}/
%{python3_sitearch}/%{modname}-%{version}-py%{py3_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by