diff --git a/jsonschema-2.5.1.tar.gz b/jsonschema-2.5.1.tar.gz deleted file mode 100644 index e7f8b8e..0000000 --- a/jsonschema-2.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41 -size 50855 diff --git a/jsonschema-2.6.0.tar.gz b/jsonschema-2.6.0.tar.gz new file mode 100644 index 0000000..5d135a9 --- /dev/null +++ b/jsonschema-2.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02 +size 53252 diff --git a/python-jsonschema.changes b/python-jsonschema.changes index ac3899a..0fcd0c3 100644 --- a/python-jsonschema.changes +++ b/python-jsonschema.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat Apr 15 23:06:18 UTC 2017 - toddrme2178@gmail.com + +- Fix source url. + +------------------------------------------------------------------- +Fri Apr 7 20:58:55 UTC 2017 - toddrme2178@gmail.com + +- Update to 2.6.0 + * Improved performance on CPython by adding caching around ref resolution + (#203) +- Implement single-spec version + ------------------------------------------------------------------- Mon Oct 5 13:28:12 UTC 2015 - mcihar@suse.cz diff --git a/python-jsonschema.spec b/python-jsonschema.spec index eef8047..ce2b4bc 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonschema # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,41 +16,31 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jsonschema -Version: 2.5.1 +Version: 2.6.0 Release: 0 Summary: An implementation of JSON-Schema validation for Python License: MIT Group: Development/Languages/Python Url: http://github.com/Julian/jsonschema -Source: http://pypi.python.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -BuildRequires: python-argparse -BuildRequires: python-repoze.lru -%else -BuildRequires: python-functools32 -%endif -BuildRequires: python-vcversioner +Source: http://files.pythonhosted.org/packages/source/j/jsonschema/jsonschema-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module vcversioner >= 2.16.0.0} +BuildRequires: python2-functools32 # Test build requirements -BuildRequires: python-mock - -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -Requires: python-argparse -Requires: python-repoze.lru -%else +BuildRequires: python2-mock +%ifpython2 Requires: python-functools32 %endif Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(preun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -BuildRequires: python-unittest2 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description jsonschema is an implementation of JSON Schema (currently in Draft 3) @@ -60,38 +50,28 @@ for Python (supporting 2.6+ including Python 3). %setup -q -n jsonschema-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} # Prepare for update-alternatives usage -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-%{py_ver} -ln -s -f %{_sysconfdir}/alternatives/jsonschema %{buildroot}%{_bindir}/jsonschema -# create a dummy target for /etc/alternatives/jsonschema -touch %{buildroot}%{_sysconfdir}/alternatives/jsonschema +%python_clone -a %{buildroot}%{_bindir}/jsonschema -%if 0%{?suse_version} > 1110 %check -python -m unittest jsonschema.tests.test_jsonschema_test_suite -%endif +%python_exec -m unittest jsonschema.tests.test_jsonschema_test_suite %post -%_sbindir/update-alternatives \ - --install %{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 30 +%python_install_alternative jsonschema %preun -if [ $1 -eq 0 ] ; then - %_sbindir/update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver} -fi +%python_uninstall_alternative jsonschema -%files +%files %{python_files} %defattr(-,root,root,-) %doc COPYING README.rst -%{_bindir}/jsonschema -%{_bindir}/jsonschema-%{py_ver} -%ghost %{_sysconfdir}/alternatives/jsonschema +%python_alternative %{_bindir}/jsonschema %{python_sitelib}/* %changelog