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
|
|
|
#
|
2025-03-30 08:04:28 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
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
|
|
|
|
2019-11-29 09:44:11 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-07-27 02:56:14 +00:00
|
|
|
#
|
|
|
|
|
2012-09-05 07:51:51 +00:00
|
|
|
|
2023-04-21 13:34:37 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-01-30 11:58:46 +00:00
|
|
|
Name: python-simplejson
|
2025-03-30 08:04:28 +00:00
|
|
|
Version: 3.20.1
|
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
|
2021-07-16 19:51:28 +00:00
|
|
|
License: AFL-2.1 OR MIT
|
2011-05-09 03:32:26 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-11-29 09:44:11 +00:00
|
|
|
URL: https://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}
|
2025-03-30 08:04:28 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-07-29 06:53:21 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-03-20 14:41:00 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-03-30 08:04:28 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-07-02 11:11:00 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-20 14:41:00 +00:00
|
|
|
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
|
|
|
|
|
|
|
%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"
|
2025-03-30 08:04:28 +00:00
|
|
|
%pyproject_wheel
|
2009-07-27 02:56:14 +00:00
|
|
|
|
|
|
|
%install
|
2025-03-30 08:04:28 +00:00
|
|
|
%pyproject_install
|
2018-07-02 11:11:00 +00:00
|
|
|
%python_expand rm -rf %{buildroot}%{$python_sitearch}/simplejson/tests/
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2009-07-27 02:56:14 +00:00
|
|
|
|
2012-03-12 21:17:02 +00:00
|
|
|
%check
|
2020-07-29 06:53:21 +00:00
|
|
|
%pytest_arch
|
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
|
2025-03-30 08:04:28 +00:00
|
|
|
%{python_sitearch}/simplejson
|
|
|
|
%{python_sitearch}/simplejson-%{version}.dist-info
|
2017-03-20 14:41:00 +00:00
|
|
|
|
2009-07-27 02:56:14 +00:00
|
|
|
%changelog
|