]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: Fix %license compat on RHEL6
authorCole Robinson <crobinso@redhat.com>
Fri, 15 Sep 2017 17:04:18 +0000 (13:04 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 15 Sep 2017 17:04:18 +0000 (13:04 -0400)
The macro needs to be defined closer to its usage

libvirt.spec.in

index 5f232b1bad500952645fe23001e2457b03e1869f..a3bd77f8a4ef74f6bf7b3092f27ddaab0d114734 100644 (file)
@@ -15,9 +15,6 @@
 # touch configure.ac or Makefile.am.
 %{!?enable_autotools:%global enable_autotools 0}
 
-# RHEL6 doesn't have 'license' macro
-%{!?_licensedir:%global license %%doc}
-
 # The hypervisor drivers that run in libvirtd
 %define with_xen           0%{!?_without_xen:1}
 %define with_qemu          0%{!?_without_qemu:1}
@@ -2032,6 +2029,8 @@ exit 0
 %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
 
 %files libs -f %{name}.lang
+# RHEL6 doesn't have 'license' macro
+%{!?_licensedir:%global license %%doc}
 %license COPYING COPYING.LESSER
 %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
 %config(noreplace) %{_sysconfdir}/libvirt/libvirt-admin.conf