Dominique Leuenberger 2021-01-25 17:24:18 +00:00 committed by Git OBS Bridge
commit 2c43b1ac19
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Jan 24 22:48:23 UTC 2021 - Lee Duncan <lduncan@suse.com>
- 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 Tue Jun 30 20:54:28 UTC 2020 - lduncan@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package targetcli-fb # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 pyparsing}
BuildRequires: %{python_module rtslib-fb} BuildRequires: %{python_module rtslib-fb}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{pythons}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(systemd)
@ -41,7 +42,7 @@ Requires: python-six
Requires: targetcli-fb-common Requires: targetcli-fb-common
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
%ifpython3 %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
Provides: targetcli = %{version}-%{release} Provides: targetcli = %{version}-%{release}
Provides: targetcli-fb = %{version}-%{release} Provides: targetcli-fb = %{version}-%{release}
%endif %endif
@ -78,8 +79,8 @@ Group: System/Management
Provides: %{python_module targetcli-fb-common} Provides: %{python_module targetcli-fb-common}
%description -n %{name}-common %description -n %{name}-common
targetcli-fb-common is the invariant base package needed by both targetcli-fb-common is the invariant base package needed by
python2-targetcli-fb and python3-targetcli-fb. all python-version-dependant packages, such as python3-*-targetcli-fb.
%prep %prep
%setup -q %setup -q