mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
spec: fix invalid syntax
Commit 20e01504 broke 'make rpm': error: line 540: Unknown tag: %elif 020 >= 12 || 0 >= 6 Apparently, even though shell has elif so that you can do a chain of conditionals, the rpm spec file does not, and you have to nest things instead. * libvirt.spec.in: Convert %elif to proper nested %if. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
9265f8ab67
commit
13228b854c
@ -537,10 +537,12 @@ BuildRequires: cyrus-sasl-devel
|
||||
%if %{with_polkit}
|
||||
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
|
||||
BuildRequires: polkit-devel >= 0.112
|
||||
%elif 0%{?fedora} >= 12 || 0%{?rhel} >= 6
|
||||
BuildRequires: polkit-devel >= 0.93
|
||||
%else
|
||||
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
|
||||
BuildRequires: polkit-devel >= 0.93
|
||||
%else
|
||||
BuildRequires: PolicyKit-devel >= 0.6
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %{with_storage_fs}
|
||||
@ -702,10 +704,12 @@ Requires: avahi-libs
|
||||
%if %{with_polkit}
|
||||
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
|
||||
Requires: polkit >= 0.112
|
||||
%elif 0%{?fedora} >= 12 || 0%{?rhel} >=6
|
||||
Requires: polkit >= 0.93
|
||||
%else
|
||||
%if 0%{?fedora} >= 12 || 0%{?rhel} >=6
|
||||
Requires: polkit >= 0.93
|
||||
%else
|
||||
Requires: PolicyKit >= 0.6
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %{with_cgconfig}
|
||||
|
Loading…
x
Reference in New Issue
Block a user