mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
spec: Delay supported_platform check
Building RPM should only be allowed on a supported platform, but unpacking the source and applying all patches can be done anywhere. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
b9163679c5
commit
4ddb4bb861
@ -1091,10 +1091,6 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%if ! %{supported_platform}
|
|
||||||
echo "This RPM requires either Fedora >= 20 or RHEL >= 6"
|
|
||||||
exit 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -1135,6 +1131,11 @@ rm -f $PATCHLIST
|
|||||||
rm -rf .git
|
rm -rf .git
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if ! %{supported_platform}
|
||||||
|
echo "This RPM requires either Fedora >= 20 or RHEL >= 6"
|
||||||
|
exit 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with_xen}
|
%if %{with_xen}
|
||||||
%define arg_xen --with-xen
|
%define arg_xen --with-xen
|
||||||
%else
|
%else
|
||||||
|
Loading…
Reference in New Issue
Block a user