Hello community, here is the log from the commit of package python-tempora for openSUSE:Factory checked in at 2018-01-16 09:37:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tempora (Old) and /work/SRC/openSUSE:Factory/.python-tempora.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-tempora" Tue Jan 16 09:37:45 2018 rev:2 rq:563592 version:1.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tempora/python-tempora.changes 2017-04-28 10:46:15.318722476 +0200 +++ /work/SRC/openSUSE:Factory/.python-tempora.new/python-tempora.changes 2018-01-16 09:37:46.682587160 +0100 @@ -1,0 +2,5 @@ +Thu Jan 11 12:25:33 UTC 2018 - tchvatal@suse.com + +- Fix building with python3 only available + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tempora.spec ++++++ --- /var/tmp/diff_new_pack.IlJWET/_old 2018-01-16 09:37:47.326557017 +0100 +++ /var/tmp/diff_new_pack.IlJWET/_new 2018-01-16 09:37:47.330556829 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-tempora # -# 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-tempora Version: 1.6.1 Release: 0 @@ -33,11 +34,12 @@ BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-backports.unittest_mock Requires: python-pytz Requires: python-six -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%if %{with python2} +BuildRequires: python2-backports.unittest_mock +%endif %python_subpackages %description @@ -62,7 +64,6 @@ %python_exec -m pytest tests %files %{python_files} -%defattr(-,root,root,-) %doc CHANGES.rst README.rst docs/*rst %python3_only %{_bindir}/calc-prorate %{python_sitelib}/*