From patchwork Thu Sep 14 21:43:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 112664 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1323622qgf; Thu, 14 Sep 2017 15:48:38 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCSnlNQTAaQmT6n67LSP0QCoY1Kj27wxKidk/xllWG8Ktjl59XL59yqon5Rv8QbnDKmHkA+ X-Received: by 10.202.216.193 with SMTP id p184mr15213236oig.124.1505429318525; Thu, 14 Sep 2017 15:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505429318; cv=none; d=google.com; s=arc-20160816; b=kE/tbnSW506ndd8kORFnzpMM1mbQILLOqUXt2qoznU/+/Wk4HIPwUTPDHHy1TkN529 YbztPvk0iW5x6KvFNZ4V/5Poq79Hfnmox0kIt61H8Yq2q6WhZIsr2o527AvrGNHiHXvL uI8Jgztg13WHK1PQ5s1nZODHN4ql/7IIWsCBMfX8bpsMgK1edcJR+r3UwJQOODkNHmjR Evto4yua18dPa2wjX27lWS9JYgoJ7UqbO+MXYu4hjUWKKcIYYB+T0yYbWS2eOjeaTwqR j2DlgEkXuR8vSqMkoSTLVPVtQ9ajDRE/1/QNiPkA+yo1QCg95Btd1JeO/pUfskFjHaPz EDyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:delivered-to:dmarc-filter :arc-authentication-results; bh=Hir4bCIfmGq5oeckGMVRl+Mq21wKdtkHCvVY56nb0bs=; b=uhpR6YaV6wIWqoyyNN9fXYoychamGQ1jIyScNwmwLLZWr6xSS+bUg7Oj5tiagBRavR DvkDGjsJARp9FI0QgVYe6nmW4I7vgnUw/FJvutYf0U7Mo6fjIgjYdNhSLCCP/svGIyJj DH2I8Lp7Fp9PrwvGmzOXC3f+AshH9YdCHrBa3zvDMcji1jIiCDQ2tjRr9YufXO47+tYy /cZ0PTe0jnFk0kUh/BQZLWvCnopwQtKZWAiJ2OJuc3wZQlzj1x0DP/l7vrNt/u/HK4ci /SrWkOUBWEAwIivPVbM+q9dytQdvGYunho74KRL9muUo8E/pYpP5tLhsld4HOTCv7PK1 3z4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id t145si784654oih.468.2017.09.14.15.48.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Sep 2017 15:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D53F83F40; Thu, 14 Sep 2017 22:48:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3D53F83F40 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1AE9A6A513; Thu, 14 Sep 2017 22:48:37 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CD1BB41F78; Thu, 14 Sep 2017 22:48:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v8ELhfV8000728 for ; Thu, 14 Sep 2017 17:43:41 -0400 Received: by smtp.corp.redhat.com (Postfix) id CB85D619D7; Thu, 14 Sep 2017 21:43:41 +0000 (UTC) Delivered-To: libvir-list@redhat.com Received: from worklaptop.redhat.com (ovpn-117-69.phx2.redhat.com [10.3.117.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id 470511897C; Thu, 14 Sep 2017 21:43:39 +0000 (UTC) From: Cole Robinson To: libvir-list@redhat.com Date: Thu, 14 Sep 2017 17:43:37 -0400 Message-Id: <4c0a8c08516049a44f2664150925a7bb9d98b62d.1505424661.git.crobinso@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] spec: Use %license when available X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 14 Sep 2017 22:48:37 +0000 (UTC) This is required by the fedora packaging guidelines: https://fedoraproject.org/wiki/Packaging:LicensingGuidelines This macro isn't available on stock RHEL6 so provide a backcompat definition https://bugzilla.redhat.com/show_bug.cgi?id=1483293 Reported-by: Ville Skyttä Signed-off-by: Cole Robinson Reviewed-by: Daniel P. Berrange Signed-off-by: Cole Robinson --- libvirt.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 583fb0583..5f232b1ba 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -15,6 +15,8 @@ # 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} @@ -2030,7 +2032,7 @@ exit 0 %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh %files libs -f %{name}.lang -%doc COPYING COPYING.LESSER +%license COPYING COPYING.LESSER %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf %config(noreplace) %{_sysconfdir}/libvirt/libvirt-admin.conf %{_libdir}/libvirt.so.*