File python-ijson.spec of Package python-ijson
# Created by pyp2rpm-3.3.6
%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: https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(pytest)
BuildRequires: pkgconfig(yajl)
%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
%check
%{_bindir}/pytest-3 -v
%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info