From: Yufang Zhang Date: Thu, 10 Jan 2013 12:44:01 +0000 (+0800) Subject: build: require avahi instead of avahi-libs on rhel5. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8a883b0c1e682a5cbe25d78b2ce4b7a976ca22d9;p=libvirt.git build: require avahi instead of avahi-libs on rhel5. 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. --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 541aedebf5..246d889678 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -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