forked from pool/virt-what
Build version 1.14 * Differentiate between vserver host and guest * Detect new Xen VMs (RHBZ#973663) * xen: Don't emit warning message if /proc/xen/capabilities file does not exist * Fix various typos and mistakes in comments OBS-URL: https://build.opensuse.org/request/show/236444 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-what?expand=0&rev=3
66 lines
1.8 KiB
RPMSpec
66 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package virt-what
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: virt-what
|
|
Version: 1.14
|
|
Release: 0
|
|
Summary: Detect if running in a virtual machine
|
|
License: GPL-2.0+
|
|
Group: System/Console
|
|
Url: http://people.redhat.com/~rjones/virt-what
|
|
Source0: %name-%version.tar.gz
|
|
Requires: dmidecode
|
|
Requires: util-linux
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
# for pod2man
|
|
%if 0%{?suse_version}
|
|
BuildRequires: perl
|
|
%else
|
|
BuildRequires: perl-podlators
|
|
%endif
|
|
|
|
%description
|
|
This is a collection of scripts which you can use to work out what
|
|
sort of virtualization you are running inside. Please read the manual
|
|
page virt-what(1) to find out how to use it. This file is for
|
|
developers and people compiling from source.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
# no %%make_install in SLE11
|
|
%if 0%{?suse_version} == 1110
|
|
make install DESTDIR=%{buildroot}
|
|
%else
|
|
%make_install
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%{_sbindir}/virt-what
|
|
%{_mandir}/man1/*.1*
|
|
%{_libexecdir}/virt-what-cpuid-helper
|
|
|
|
%changelog
|