From: Cole Robinson Date: Fri, 15 Sep 2017 17:04:18 +0000 (-0400) Subject: spec: Fix %license compat on RHEL6 X-Git-Tag: v3.8.0-rc1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11b0e889b530c5e0b31b3953c45ab0e4a47ad116;p=thirdparty%2Flibvirt.git spec: Fix %license compat on RHEL6 The macro needs to be defined closer to its usage --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 5f232b1bad..a3bd77f8a4 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -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