From patchwork Tue Sep 22 19:57:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 54007 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by patches.linaro.org (Postfix) with ESMTPS id EDA4522B1E for ; Tue, 22 Sep 2015 20:00:42 +0000 (UTC) Received: by ykdg206 with SMTP id g206sf22920847ykd.1 for ; Tue, 22 Sep 2015 13:00:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=cHEBqgN2VR7M4YeSx4qFGYTVs8Tr1KUA++7P9B+wDH0=; b=ACdxRmq94aOqQkHGpHDcJQsNZsxS1LZjjoVA8nFL/Mm5sguW6dFr670ojn+cGgpXA2 nHMvTFp3hmnaSKJqt+GR86gVxBw886XBM9S3L+ZralPCq92RV+gMbwiV+51XlQgs0cr9 DsYz871fblGy8uUkd8I6U8BchTm8V3npmgu2GD3C93+0W/6qR1wDo4kQC2CpERaz61rA rv2uhLGUj1qzaUrNXQkrMUu3UNBISKw0GpR5PxS79+J+PIgkJhttvxxUbt77zSxHgtWQ 2pdeUIkl6WsBwxjYYEw6n+CwX+cx9CX8vJp7BfWKxBHqs1f754XxAovcNp2apxaKx+mF EwrA== X-Gm-Message-State: ALoCoQkMTUF1hNHoyoNImsWRMYTYzq7tFKBVC62maqWqrA6KNr0xrb+Uscg9NOXttYGWCy2LngCZ X-Received: by 10.112.140.195 with SMTP id ri3mr4704969lbb.22.1442952042699; Tue, 22 Sep 2015 13:00:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.18.226 with SMTP id 95ls77033lfs.1.gmail; Tue, 22 Sep 2015 13:00:42 -0700 (PDT) X-Received: by 10.25.18.103 with SMTP id h100mr3146805lfi.7.1442952042387; Tue, 22 Sep 2015 13:00:42 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id 103si1151716lfu.31.2015.09.22.13.00.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Sep 2015 13:00:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lacao8 with SMTP id ao8so3518462lac.3 for ; Tue, 22 Sep 2015 13:00:42 -0700 (PDT) X-Received: by 10.25.150.199 with SMTP id y190mr3118148lfd.35.1442952042254; Tue, 22 Sep 2015 13:00:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp688382lbq; Tue, 22 Sep 2015 13:00:41 -0700 (PDT) X-Received: by 10.55.42.163 with SMTP id q35mr31727393qkq.107.1442952040996; Tue, 22 Sep 2015 13:00:40 -0700 (PDT) Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com. [209.132.183.37]) by mx.google.com with ESMTPS id 10si3188780qhf.48.2015.09.22.13.00.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Sep 2015 13:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.37 as permitted sender) client-ip=209.132.183.37; Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8MJvvO3013928; Tue, 22 Sep 2015 15:57:58 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t8MJvunX010627 for ; Tue, 22 Sep 2015 15:57:56 -0400 Received: from colepc.redhat.com ([10.3.113.17]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8MJvuSP002810; Tue, 22 Sep 2015 15:57:56 -0400 From: Cole Robinson To: libvirt-list@redhat.com Date: Tue, 22 Sep 2015 15:57:52 -0400 Message-Id: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] spec: Fix some warnings with latest rpmbuild X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: crobinso@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 $ rpmbuild -ba libvirt.spec warning: Macro expanded in comment on line 5: # If neither fedora nor rhel was defined, try to guess them from %{dist} warning: Macro %enable_autotools defined but not used within scope warning: Macro %client_only defined but not used within scope ... --- libvirt.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 48461e8..853d2ec 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -2,7 +2,7 @@ # This spec file assumes you are building for Fedora 13 or newer, # or for RHEL 5 or newer. It may need some tweaks for other distros. -# If neither fedora nor rhel was defined, try to guess them from %{dist} +# If neither fedora nor rhel was defined, try to guess them from dist %if !0%{?rhel} && !0%{?fedora} %{expand:%(echo "%{?dist}" | \ sed -ne 's/^\.el\([0-9]\+\).*/%%define rhel \1/p')} @@ -13,13 +13,13 @@ # Default to skipping autoreconf. Distros can change just this one line # (or provide a command-line override) if they backport any patches that # touch configure.ac or Makefile.am. -%{!?enable_autotools:%define enable_autotools 0} +%{!?enable_autotools:%global enable_autotools 0} # A client only build will create a libvirt.so only containing # the generic RPC driver, and test driver and no libvirtd # Default to a full server + client build, but with the possibility # of a command-line or ~/.rpmmacros override for client-only. -%{!?client_only:%define client_only 0} +%{!?client_only:%global client_only 0} # Now turn off server build in certain cases