]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: require avahi instead of avahi-libs on rhel5.
authorYufang Zhang <yufang521247@gmail.com>
Thu, 10 Jan 2013 12:44:01 +0000 (20:44 +0800)
committerEric Blake <eblake@redhat.com>
Fri, 11 Jan 2013 00:16:21 +0000 (17:16 -0700)
On rhel5, libs of avahi are packaged into avahi instead of avahi-libs.
Actually, there is no avahi-libs package shipped with rhel5. This patch
fixes this by requiring avahi on rhel5.

libvirt.spec.in

index 541aedebf5acd045682b93602a2944387a0be7b0..246d889678ccc13d1716a3fddadc0e152c32b55b 100644 (file)
@@ -615,8 +615,12 @@ Requires: module-init-tools
 # for /sbin/ip & /sbin/tc
 Requires: iproute
 %if %{with_avahi}
+%if 0%{?rhel} == 5
+Requires: avahi
+%else
 Requires: avahi-libs
 %endif
+%endif
 %if %{with_network}
 Requires: dnsmasq >= 2.41
 Requires: radvd