]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: collect all BuildRequires into one area
authorEric Blake <eblake@redhat.com>
Wed, 1 May 2013 20:16:10 +0000 (14:16 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 2 May 2013 02:55:59 +0000 (20:55 -0600)
Conditional BuildRequires: should be at the top level, rather
than appearing in conditional sub-package sections.  This
appears to be the only offender.

* libvirt.spec.in (BuildRequires): Move libblkid-devel into
correct area.

Signed-off-by: Eric Blake <eblake@redhat.com>
libvirt.spec.in

index 328b009f4fc9080c5e6fde0e1a95ef379f9bf947..a333f64501deb2e29969c1e48fa29e09aff05739 100644 (file)
@@ -412,6 +412,10 @@ BuildRequires: gettext
 BuildRequires: libtasn1-devel
 BuildRequires: gnutls-devel
 BuildRequires: libattr-devel
+%if %{with_libvirtd}
+# For pool-build probing for existing pools
+BuildRequires: libblkid-devel >= 2.17
+%endif
 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
 # for augparse, optionally used in testing
 BuildRequires: augeas
@@ -655,8 +659,6 @@ Requires: PolicyKit >= 0.6
 Requires: nfs-utils
 # For mkfs
 Requires: util-linux
-# For pool-build probing for existing pools
-BuildRequires: libblkid-devel >= 2.17
 # For glusterfs
         %if 0%{?fedora} >= 11
 Requires: glusterfs-client >= 2.0.1