Blame python-ijson.spec

b5e7b38
%global srcname ijson
b5e7b38
b5e7b38
Name:           python-%{srcname}
ed82d15
Version:        3.2.3
f050cbf
Release:        %autorelease
b5e7b38
Summary:        Iterative JSON parser
b5e7b38
c7aea9d
License:        BSD-3-Clause
b5e7b38
URL:            https://github.com/ICRAR/ijson
b5e7b38
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
b5e7b38
b5e7b38
BuildArch:      noarch
6106efb
BuildRequires:  python3-devel
b5e7b38
b5e7b38
BuildRequires:  python3dist(setuptools)
b5e7b38
b5e7b38
%global _description %{expand:
b5e7b38
Iterative JSON parser with standard Python iterator interfaces.}
b5e7b38
b5e7b38
%description %_description
b5e7b38
b5e7b38
%package -n     python3-%{srcname}
b5e7b38
Summary:        %{summary}
6106efb
Recommends:     yajl
6106efb
Recommends:     python3dist(cffi)
b5e7b38
b5e7b38
# Test dependencies
b5e7b38
BuildRequires:  python3dist(cffi)
b5e7b38
b5e7b38
%description -n python3-%{srcname} %_description
b5e7b38
b5e7b38
%prep
b5e7b38
%autosetup -n %{srcname}-%{version}
b5e7b38
b5e7b38
# Disable tests for unsupported configurations.
b5e7b38
sed -i "s/\['python', 'yajl', 'yajl2', 'yajl2_cffi', 'yajl2_c']/\['python', 'yajl2', 'yajl2_cffi']/" test/test_base.py
b5e7b38
b5e7b38
%build
b5e7b38
%py3_build
b5e7b38
b5e7b38
%install
b5e7b38
%py3_install
b5e7b38
b5e7b38
%check
b5e7b38
PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD %{python3} -m unittest discover
b5e7b38
b5e7b38
%files -n python3-%{srcname}
b5e7b38
%license LICENSE.txt
b5e7b38
%doc README.rst
b5e7b38
%{python3_sitelib}/%{srcname}
b5e7b38
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
b5e7b38
b5e7b38
%changelog
f050cbf
%autochangelog