提交 11b0e889 编写于 作者: C Cole Robinson

spec: Fix %license compat on RHEL6

The macro needs to be defined closer to its usage
上级 6cf1475a
...@@ -15,9 +15,6 @@ ...@@ -15,9 +15,6 @@
# touch configure.ac or Makefile.am. # touch configure.ac or Makefile.am.
%{!?enable_autotools:%global enable_autotools 0} %{!?enable_autotools:%global enable_autotools 0}
# RHEL6 doesn't have 'license' macro
%{!?_licensedir:%global license %%doc}
# The hypervisor drivers that run in libvirtd # The hypervisor drivers that run in libvirtd
%define with_xen 0%{!?_without_xen:1} %define with_xen 0%{!?_without_xen:1}
%define with_qemu 0%{!?_without_qemu:1} %define with_qemu 0%{!?_without_qemu:1}
...@@ -2032,6 +2029,8 @@ exit 0 ...@@ -2032,6 +2029,8 @@ exit 0
%attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
%files libs -f %{name}.lang %files libs -f %{name}.lang
# RHEL6 doesn't have 'license' macro
%{!?_licensedir:%global license %%doc}
%license COPYING COPYING.LESSER %license COPYING COPYING.LESSER
%config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
%config(noreplace) %{_sysconfdir}/libvirt/libvirt-admin.conf %config(noreplace) %{_sysconfdir}/libvirt/libvirt-admin.conf
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册