Hello community, here is the log from the commit of package python-jsonschema for openSUSE:Factory checked in at 2018-01-26 13:38:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jsonschema (Old) and /work/SRC/openSUSE:Factory/.python-jsonschema.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonschema" Fri Jan 26 13:38:41 2018 rev:16 rq:568851 version:2.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jsonschema/python-jsonschema.changes 2017-04-28 10:42:55.398979672 +0200 +++ /work/SRC/openSUSE:Factory/.python-jsonschema.new/python-jsonschema.changes 2018-01-26 13:38:42.675503713 +0100 @@ -1,0 +2,6 @@ +Wed Jan 24 10:24:27 UTC 2018 - [email protected] + +- Add condition around the python2 code to make sure we can build + in python3 only enviroment + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jsonschema.spec ++++++ --- /var/tmp/diff_new_pack.rDrkul/_old 2018-01-26 13:38:43.731454395 +0100 +++ /var/tmp/diff_new_pack.rDrkul/_new 2018-01-26 13:38:43.735454209 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-jsonschema # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-jsonschema Version: 2.6.0 Release: 0 @@ -25,21 +26,20 @@ Group: Development/Languages/Python Url: http://github.com/Julian/jsonschema 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 mock} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module vcversioner >= 2.16.0.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with python2} BuildRequires: python2-functools32 -# Test build requirements -BuildRequires: python2-mock -%ifpython2 -Requires: python-functools32 %endif Requires(post): update-alternatives Requires(preun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%ifpython2 +Requires: python-functools32 +%endif %python_subpackages %description @@ -69,7 +69,6 @@ %python_uninstall_alternative jsonschema %files %{python_files} -%defattr(-,root,root,-) %doc COPYING README.rst %python_alternative %{_bindir}/jsonschema %{python_sitelib}/*
