From 1850405c0bc3e75fc46fee113ac9aa72130ad212 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 19 Jan 2011 19:07:53 +0000 Subject: [PATCH] BuildRequires 'getopt' from util-linux-ng. --- virt-what.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/virt-what.spec b/virt-what.spec index 0a07250..bc15a71 100644 --- a/virt-what.spec +++ b/virt-what.spec @@ -1,6 +1,6 @@ Name: virt-what Version: 1.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Detect if we are running in a virtual machine ExclusiveArch: %{ix86} x86_64 @@ -14,6 +14,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # anyway in case this was dropped from the build root in future. BuildRequires: /usr/bin/pod2man +# Required at build time in order to do 'make check' (for getopt). +BuildRequires: util-linux-ng + # virt-what script uses dmidecode and getopt (from util-linux-ng). # RPM cannot detect this so make the dependencies explicit here. Requires: dmidecode @@ -81,8 +84,9 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Wed Jan 19 2011 Richard W.M. Jones - 1.6-1 +* Wed Jan 19 2011 Richard W.M. Jones - 1.6-2 - New upstream version 1.6. +- BuildRequires 'getopt' from util-linux-ng. * Tue Jan 18 2011 Richard W.M. Jones - 1.5-1 - New upstream version 1.5.