- Fix incorrect conditionals

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/azure-cli?expand=0&rev=156
This commit is contained in:
John Paul Adrian Glaubitz 2024-11-13 07:41:57 +00:00 committed by Git OBS Bridge
parent f1c8202632
commit b3965c9e5e

View File

@ -264,9 +264,9 @@ Obsoletes: azure-cli-storage < 2.4.3
Provides: azure-cli-vm = 2.2.23
Obsoletes: azure-cli-vm < 2.2.23
Conflicts: azure-cli < 2.0.0
%endif
BuildArch: noarch
%endif
%description
Microsoft Azure CLI 2.0 Command Line Utilities
@ -278,9 +278,10 @@ Microsoft Azure CLI 2.0 Command Line Utilities
%if !%{with test}
%build
%pyproject_wheel
%endif
%install
%if 0%{?_test}
%if %{with test}
# disable debug packages in package test to prevent error about missing files
%define debug_package %{nil}
%else
@ -288,7 +289,6 @@ Microsoft Azure CLI 2.0 Command Line Utilities
install -DTm644 %{buildroot}%{_bindir}/az.completion.sh %{buildroot}%{_datadir}/bash-completion/completions/az
%fdupes %{buildroot}%{_sitelibdir}
%endif
%endif
%if %{with test}
%check