2009-07-27 02:56:14 +00:00
|
|
|
#
|
2011-03-08 10:06:35 +00:00
|
|
|
# spec file for package python-simplejson
|
2009-07-27 02:56:14 +00:00
|
|
|
#
|
2018-05-07 13:48:44 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-07-27 02:56:14 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-07-19 13:05:28 +00:00
|
|
|
|
2009-07-27 02:56:14 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-09-05 07:51:51 +00:00
|
|
|
|
2017-03-20 14:41:00 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-01-30 11:58:46 +00:00
|
|
|
Name: python-simplejson
|
2018-07-02 11:07:38 +00:00
|
|
|
Version: 3.16.0
|
2011-09-20 14:23:22 +00:00
|
|
|
Release: 0
|
2017-11-27 13:44:01 +00:00
|
|
|
Summary: Extensible JSON encoder/decoder for Python
|
2018-05-07 13:48:44 +00:00
|
|
|
License: MIT OR AFL-2.1
|
2011-05-09 03:32:26 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-05-07 13:48:44 +00:00
|
|
|
URL: http://github.com/simplejson/simplejson
|
2017-03-21 15:56:50 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
|
2017-03-20 14:41:00 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%python_subpackages
|
2009-07-27 02:56:14 +00:00
|
|
|
|
|
|
|
%description
|
2017-11-27 13:44:01 +00:00
|
|
|
simplejson is an 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 speed boost.
|
2009-07-27 02:56:14 +00:00
|
|
|
|
2017-03-20 14:41:00 +00:00
|
|
|
%package test
|
|
|
|
Summary: Tests for python-simplejson
|
|
|
|
Group: Development/Languages/Python
|
2017-11-27 13:44:01 +00:00
|
|
|
Requires: %{name} = %{version}
|
2017-03-20 14:41:00 +00:00
|
|
|
|
|
|
|
%description test
|
|
|
|
Test cases for python-simplejson
|
|
|
|
|
2009-07-27 02:56:14 +00:00
|
|
|
%prep
|
2013-01-30 11:58:46 +00:00
|
|
|
%setup -q -n simplejson-%{version}
|
2009-07-27 02:56:14 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-20 14:41:00 +00:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
%python_build
|
2009-07-27 02:56:14 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-20 14:41:00 +00:00
|
|
|
%python_install
|
2009-07-27 02:56:14 +00:00
|
|
|
|
2012-03-12 21:17:02 +00:00
|
|
|
%check
|
2017-03-20 14:41:00 +00:00
|
|
|
%python_exec setup.py test
|
2012-03-12 21:17:02 +00:00
|
|
|
|
2018-05-07 13:48:44 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.txt README.rst
|
2017-03-20 14:41:00 +00:00
|
|
|
%exclude %{python_sitearch}/simplejson/tests/*
|
2018-07-02 11:07:38 +00:00
|
|
|
%{python_sitearch}/simplejson*
|
2017-03-20 14:41:00 +00:00
|
|
|
|
|
|
|
%files %{python_files test}
|
|
|
|
%{python_sitearch}/simplejson/tests/*
|
2009-07-27 02:56:14 +00:00
|
|
|
|
|
|
|
%changelog
|