Hello community, here is the log from the commit of package python-fs for openSUSE:Factory checked in at 2020-04-21 13:10:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-fs (Old) and /work/SRC/openSUSE:Factory/.python-fs.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fs" Tue Apr 21 13:10:56 2020 rev:10 rq:795817 version:2.4.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-fs/python-fs.changes 2019-09-13 15:03:50.473275577 +0200 +++ /work/SRC/openSUSE:Factory/.python-fs.new.2738/python-fs.changes 2020-04-21 13:10:59.544851192 +0200 @@ -1,0 +2,5 @@ +Mon Apr 20 12:01:32 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Fix build wihtout python2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-fs.spec ++++++ --- /var/tmp/diff_new_pack.upxizA/_old 2020-04-21 13:11:01.324854742 +0200 +++ /var/tmp/diff_new_pack.upxizA/_new 2020-04-21 13:11:01.324854742 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-fs # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2016 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-fs Version: 2.4.11 Release: 0 @@ -38,9 +39,6 @@ BuildRequires: %{python_module six >= 1.10.0} BuildRequires: %{python_module typing >= 3.6} BuildRequires: fdupes -BuildRequires: python-backports.os >= 0.1 -BuildRequires: python-enum34 >= 1.1.6 -BuildRequires: python-mock BuildRequires: python-rpm-macros Requires: python-appdirs >= 1.4.3 Requires: python-psutil @@ -50,6 +48,11 @@ Requires: python-typing >= 3.6 Recommends: python-pyftpdlib BuildArch: noarch +%if %{with python2} +BuildRequires: python-backports.os >= 0.1 +BuildRequires: python-enum34 >= 1.1.6 +BuildRequires: python-mock +%endif %ifpython2 Requires: python-backports.os >= 0.1 %endif
