2021-05-24 12:24:34 +00:00
|
|
|
# Created by pyp2rpm-3.3.5
|
|
|
|
%global pypi_name ijson
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 3.1.4
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Iterative JSON parser with standard Python iterator interfaces
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/ICRAR/ijson
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
|
2021-05-25 10:32:05 +00:00
|
|
|
BuildRequires: yajl-devel
|
2021-05-25 10:43:52 +00:00
|
|
|
|
|
|
|
BuildRequires: python3-tox
|
2021-05-25 10:38:47 +00:00
|
|
|
BuildRequires: python3-cffi
|
|
|
|
BuildRequires: python3-pytest-cov
|
2021-05-25 10:32:05 +00:00
|
|
|
|
2021-05-24 12:24:34 +00:00
|
|
|
%description
|
|
|
|
.. image::
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
.. image::
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
# Remove bundled egg-info
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
|
2021-05-25 10:38:47 +00:00
|
|
|
%check
|
|
|
|
tox -e py3
|
2021-05-24 12:24:34 +00:00
|
|
|
#{__python3} setup.py test
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
2021-05-25 10:32:05 +00:00
|
|
|
%{python3_sitearch}/%{pypi_name}
|
|
|
|
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
2021-05-24 12:24:34 +00:00
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Mon May 24 2021 Alexander Manning <mail@alex-m.co.uk> - 3.1.4-1
|
|
|
|
- Initial package.
|