]> xenbits.xensource.com Git - libvirt.git/commitdiff
libvirt.spec.in: Use libnl-devel for RHEL-6
authorJean-Marc Liger <jean-marc.liger@parisdescartes.fr>
Wed, 29 Jun 2016 16:37:28 +0000 (17:37 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 29 Jun 2016 16:38:15 +0000 (17:38 +0100)
RHEL-6 still needs to use libnl instead of libnl3, so re-add
the spec conditional mistakenly removed in

  commit 3694e038fd12825042cca6204f7aa7322e2ed9c9
  Author: Daniel P. Berrange <berrange@redhat.com>
  Date:   Wed May 4 15:43:08 2016 +0100

    libvirt.spec.in: drop Fedora < 20 and RHEL < 6

libvirt.spec.in

index 4a466649aa1f0f82137cc33d157ec06756ed5435..106351c40a973926d96b0db3f68cf902691beb1d 100644 (file)
@@ -302,7 +302,11 @@ BuildRequires: yajl-devel
 BuildRequires: sanlock-devel >= 2.4
 %endif
 BuildRequires: libpcap-devel
+%if 0%{?rhel} && 0%{?rhel} < 7
+BuildRequires: libnl-devel
+%else
 BuildRequires: libnl3-devel
+%endif
 BuildRequires: avahi-devel
 BuildRequires: libselinux-devel
 BuildRequires: dnsmasq >= 2.41