SHA256
1
0
forked from pool/python-ijson
Files
python-ijson/python-ijson.spec
Dirk Mueller e6cf324c04 - update to 3.3.0:
* Removed support for Python 2.7 and 3.4, 3.5+ is still
    supported.
  * Distribute the existing `benchmark.py` script
    as ``ijson.benchmark``.
  * Adapted ``yajl2_c`` async generators to work against PyPy
    when building ijson to force/skip building the
- update to 3.1.4

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ijson?expand=0&rev=10
2024-06-17 06:33:17 +00:00

59 lines
1.6 KiB
RPMSpec

#
# spec file for package python-ijson
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-ijson
Version: 3.3.0
Release: 0
Summary: Iterative JSON parser with a standard Python iterator interface
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/ICRAR/ijson
Source: https://files.pythonhosted.org/packages/source/i/ijson/ijson-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-asyncio
BuildRequires: pkgconfig(yajl)
%python_subpackages
%description
Iterative JSON parser with a standard Python iterator interface.
%prep
%setup -q -n ijson-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pyunittest -v
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitearch}/*
%changelog