Hello community, here is the log from the commit of package python-jsonschema for openSUSE:Factory checked in at 2014-09-17 17:25:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jsonschema (Old) and /work/SRC/openSUSE:Factory/.python-jsonschema.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonschema" Changes: -------- --- /work/SRC/openSUSE:Factory/python-jsonschema/python-jsonschema.changes 2014-02-26 06:55:06.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-jsonschema.new/python-jsonschema.changes 2014-09-17 17:25:25.000000000 +0200 @@ -1,0 +2,14 @@ +Mon Sep 15 10:57:54 UTC 2014 - [email protected] + +- update to version 2.4.0: + * Added a CLI (#134) + * Added absolute path and absolute schema path to errors (#120) + * Added ``relevance`` + * Meta-schemas are now loaded via ``pkgutil`` + * Added ``by_relevance`` and ``best_match`` (#91) + * Fixed ``format`` to allow adding formats for non-strings (#125) + * Fixed the ``uri`` format to reject URI references (#131) +- BuildRequires python-setuptools +- Install /usr/bin/jsonschema with update-alternatives support + +------------------------------------------------------------------- Old: ---- jsonschema-2.2.0.tar.gz New: ---- jsonschema-2.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jsonschema.spec ++++++ --- /var/tmp/diff_new_pack.LJHcFk/_old 2014-09-17 17:25:25.000000000 +0200 +++ /var/tmp/diff_new_pack.LJHcFk/_new 2014-09-17 17:25:25.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-jsonschema -Version: 2.2.0 +Version: 2.4.0 Release: 0 Summary: An implementation of JSON-Schema validation for Python License: MIT @@ -25,8 +25,11 @@ 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 # Test build requirements BuildRequires: python-mock +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: python-unittest2 @@ -47,15 +50,31 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-%{py_ver} +ln -s %{_bindir}/jsonschema-%{py_ver} %{buildroot}%{_bindir}/jsonschema %if 0%{?suse_version} > 1110 %check python -m unittest jsonschema.tests.test_jsonschema_test_suite %endif +%pre +[[ ! -L %{_bindir}/jsonschema ]] && rm -f %{_bindir}/jsonschema || : + +%post +update-alternatives --install \ + %{_bindir}/jsonschema jsonschema %{_bindir}/jsonschema-%{py_ver} 20 + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove jsonschema %{_bindir}/jsonschema-%{py_ver} +fi + %files %defattr(-,root,root,-) %doc COPYING README.rst +%ghost %{_bindir}/jsonschema +%{_bindir}/jsonschema-%{py_ver} %{python_sitelib}/* %changelog ++++++ jsonschema-2.2.0.tar.gz -> jsonschema-2.4.0.tar.gz ++++++ ++++ 3164 lines of diff (skipped) -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
