diff --git a/targetcli-fb.changes b/targetcli-fb.changes index b80f0dd..7732797 100644 --- a/targetcli-fb.changes +++ b/targetcli-fb.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Jan 24 22:48:23 UTC 2021 - Lee Duncan + +- Updated SPEC file to support multiple python3 versions at + the same time, and replaced deprecated %ifpython3 macro, + as suggested by build service. Also updated "common" sub- + package description. + ------------------------------------------------------------------- Tue Jun 30 20:54:28 UTC 2020 - lduncan@suse.com diff --git a/targetcli-fb.spec b/targetcli-fb.spec index 311a62b..463821c 100644 --- a/targetcli-fb.spec +++ b/targetcli-fb.spec @@ -1,7 +1,7 @@ # # spec file for package targetcli-fb # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,6 +31,7 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module pyparsing} BuildRequires: %{python_module rtslib-fb} BuildRequires: %{python_module setuptools} +BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: pkgconfig(systemd) @@ -41,7 +42,7 @@ Requires: python-six Requires: targetcli-fb-common Requires(post): update-alternatives Requires(postun): update-alternatives -%ifpython3 +%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" Provides: targetcli = %{version}-%{release} Provides: targetcli-fb = %{version}-%{release} %endif @@ -78,8 +79,8 @@ Group: System/Management Provides: %{python_module targetcli-fb-common} %description -n %{name}-common -targetcli-fb-common is the invariant base package needed by both -python2-targetcli-fb and python3-targetcli-fb. +targetcli-fb-common is the invariant base package needed by +all python-version-dependant packages, such as python3-*-targetcli-fb. %prep %setup -q