2014-04-10 18:58:04 +02:00
|
|
|
%define oname jsonschema
|
|
|
|
|
|
|
|
Name: python-%{oname}
|
2019-02-15 18:03:27 +03:00
|
|
|
Version: 2.6.0
|
2019-07-06 19:15:11 +00:00
|
|
|
Release: 3
|
2014-04-10 18:58:04 +02:00
|
|
|
Summary: An implementation of JSON Schema validation for Python
|
2015-12-27 15:55:06 +03:00
|
|
|
Source0: http://pypi.python.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz
|
2014-04-10 18:58:04 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Python
|
|
|
|
Url: http://github.com/Julian/jsonschema
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: pkgconfig(python)
|
|
|
|
BuildRequires: pythonegg(nose)
|
|
|
|
BuildRequires: pythonegg(mock)
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
jsonschema is JSON Schema validator currently based on
|
|
|
|
http://tools.ietf.org/html/draft-zyp-json-schema-03
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{oname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --root=%{buildroot}
|
|
|
|
|
|
|
|
%check
|
2019-02-15 18:03:27 +03:00
|
|
|
%{_bindir}/nosetests-2* -v || :
|
2014-04-10 18:58:04 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc CHANGELOG.rst COPYING README.rst
|
2016-01-15 14:15:39 +04:00
|
|
|
%{_bindir}/jsonschema
|
2014-04-10 18:58:04 +02:00
|
|
|
%{py_puresitedir}/jsonschema/*.py*
|
|
|
|
%{py_puresitedir}/jsonschema/tests/*.py*
|
|
|
|
%{py_puresitedir}/jsonschema*.egg-info
|
2015-12-27 15:55:06 +03:00
|
|
|
%{py_puresitedir}/jsonschema/schemas/draft*.json
|