Hello community,

here is the log from the commit of package python-jsonschema for 
openSUSE:Factory checked in at 2017-04-28 10:42:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonschema (Old)
 and      /work/SRC/openSUSE:Factory/.python-jsonschema.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jsonschema"

Fri Apr 28 10:42:53 2017 rev:15 rq:489482 version:2.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonschema/python-jsonschema.changes      
2015-10-19 22:48:34.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-jsonschema.new/python-jsonschema.changes 
2017-04-28 10:42:55.398979672 +0200
@@ -1,0 +2,18 @@
+Wed Apr 19 22:13:57 UTC 2017 - toddrme2...@gmail.com
+
+- Source url must be https.
+
+-------------------------------------------------------------------
+Sat Apr 15 23:06:18 UTC 2017 - toddrme2...@gmail.com
+
+- Fix source url.
+
+-------------------------------------------------------------------
+Fri Apr  7 20:58:55 UTC 2017 - toddrme2...@gmail.com
+
+- Update to 2.6.0
+  * Improved performance on CPython by adding caching around ref resolution
+    (#203)
+- Implement single-spec version
+
+-------------------------------------------------------------------

Old:
----
  jsonschema-2.5.1.tar.gz

New:
----
  jsonschema-2.6.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jsonschema.spec ++++++
--- /var/tmp/diff_new_pack.E3sO2t/_old  2017-04-28 10:42:58.750505951 +0200
+++ /var/tmp/diff_new_pack.E3sO2t/_new  2017-04-28 10:42:58.754505385 +0200
@@ -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:         
https://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 @@
 %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

++++++ jsonschema-2.5.1.tar.gz -> jsonschema-2.6.0.tar.gz ++++++
++++ 1945 lines of diff (skipped)


Reply via email to