Blame SPECS/virt-what.spec

fa2bfc
Name:           virt-what
7439e4
Version:        1.25
7439e4
Release:        1%{?dist}
fa2bfc
Summary:        Detect if we are running in a virtual machine
fa2bfc
License:        GPLv2+
fa2bfc
fa2bfc
URL:            http://people.redhat.com/~rjones/virt-what/
7439e4
Source0:        http://people.redhat.com/~rjones/virt-what/files/%{name}-%{version}.tar.gz
fa2bfc
7439e4
# Maintainer script which helps with handling patches.
7439e4
Source1:       copy-patches.sh
7439e4
7439e4
# Patches are maintained in the following repository:
7439e4
# http://git.annexia.org/?p=virt-what.git;a=shortlog;h=refs/heads/rhel-9.1
7439e4
7439e4
# Patches.
7439e4
#(no patches)
fa2bfc
fa2bfc
BuildRequires:  make
fa2bfc
BuildRequires:  git
fa2bfc
BuildRequires:  autoconf, automake, libtool
fa2bfc
fa2bfc
# This is provided by the build root, but we make it explicit
fa2bfc
# anyway in case this was dropped from the build root in future.
fa2bfc
BuildRequires:  gcc
fa2bfc
BuildRequires:  /usr/bin/pod2man
fa2bfc
fa2bfc
# Required at build time in order to do 'make check' (for getopt).
fa2bfc
BuildRequires:  util-linux
fa2bfc
fa2bfc
# virt-what script uses dmidecode and getopt (from util-linux).
fa2bfc
# RPM cannot detect this so make the dependencies explicit here.
fa2bfc
%ifarch aarch64 %{ix86} x86_64
fa2bfc
Requires:       dmidecode
fa2bfc
%endif
fa2bfc
Requires:       util-linux
fa2bfc
fa2bfc
# Runs the 'which' program to find the helper.
fa2bfc
Requires:       which
fa2bfc
fa2bfc
fa2bfc
%description
fa2bfc
virt-what is a shell script which can be used to detect if the program
fa2bfc
is running in a virtual machine.
fa2bfc
fa2bfc
The program prints out a list of "facts" about the virtual machine,
fa2bfc
derived from heuristics.  One fact is printed per line.
fa2bfc
fa2bfc
If nothing is printed and the script exits with code 0 (no error),
fa2bfc
then it can mean either that the program is running on bare-metal or
fa2bfc
the program is running inside a type of virtual machine which we don't
fa2bfc
know about or can't detect.
fa2bfc
fa2bfc
Current types of virtualization detected:
fa2bfc
7439e4
 - alibaba_cloud      Alibaba cloud
7439e4
 - alibaba_cloud-ebm
7439e4
 - aws                Amazon Web Services
7439e4
 - bhyve              FreeBSD hypervisor
7439e4
 - docker             Docker container
7439e4
 - google_cloud       Google cloud
7439e4
 - hyperv             Microsoft Hyper-V
7439e4
 - ibm_power-kvm      IBM POWER KVM
7439e4
 - ibm_power-lpar_shared IBM POWER LPAR (hardware partition)
fa2bfc
 - ibm_power-lpar_dedicated
7439e4
 - ibm_systemz-*      IBM SystemZ Direct / LPAR / z/VM / KVM
7439e4
 - illumos-lx         Illumos with Linux syscall emulation
7439e4
 - ldoms              Oracle VM Server for SPARC Logical Domains
7439e4
 - linux_vserver      Linux VServer container
7439e4
 - lxc                Linux LXC container
7439e4
 - kvm                Linux Kernel Virtual Machine (KVM)
7439e4
 - lkvm               LKVM / kvmtool
7439e4
 - nutanix_ahv        Nutanix Acropolis Hypervisor (AHV)
7439e4
 - openvz             OpenVZ or Virtuozzo
7439e4
 - ovirt              oVirt node
7439e4
 - parallels          Parallels Virtual Platform
7439e4
 - podman             Podman container
7439e4
 - powervm_lx86       IBM PowerVM Lx86 Linux/x86 emulator
7439e4
 - qemu               QEMU (unaccelerated)
7439e4
 - redhat             Red Hat hypervisor
7439e4
 - rhev               Red Hat Enterprise Virtualization
7439e4
 - uml                User-Mode Linux (UML)
7439e4
 - virtage            Hitachi Virtualization Manager (HVM) Virtage LPAR
7439e4
 - virtualbox         VirtualBox
7439e4
 - virtualpc          Microsoft VirtualPC
7439e4
 - vmm                vmm OpenBSD hypervisor
7439e4
 - vmware             VMware
7439e4
 - xen                Xen
7439e4
 - xen-dom0           Xen dom0 (privileged domain)
7439e4
 - xen-domU           Xen domU (paravirtualized guest domain)
7439e4
 - xen-hvm            Xen guest fully virtualized (HVM)
fa2bfc
fa2bfc
fa2bfc
%prep
fa2bfc
%autosetup -S git
fa2bfc
fa2bfc
# Always rebuild upstream autotools files.
fa2bfc
autoreconf -i
fa2bfc
fa2bfc
fa2bfc
%build
fa2bfc
%configure
fa2bfc
make
fa2bfc
fa2bfc
fa2bfc
%install
fa2bfc
%make_install
fa2bfc
fa2bfc
fa2bfc
%check
7439e4
if ! make -k check ; then
7439e4
    find -name test-suite.log -exec cat {} \;
fa2bfc
    exit 1
fa2bfc
fi
fa2bfc
fa2bfc
%files
fa2bfc
%doc README COPYING
fa2bfc
%{_sbindir}/virt-what
fa2bfc
%{_libexecdir}/virt-what-cpuid-helper
fa2bfc
%{_mandir}/man1/*.1*
fa2bfc
fa2bfc
fa2bfc
%changelog
7439e4
* Wed Aug 17 2022 Richard W.M. Jones <rjones@redhat.com> - 1.25-1
7439e4
- Rebase to 1.25
7439e4
  resolves: rhbz#2118997
7439e4
7439e4
* Tue Aug 09 2022 Richard W.M. Jones <rjones@redhat.com> - 1.22-2
7439e4
- Detect KVM on GCE and AWS Arm instances
7439e4
  resolves: rhbz#2114997
7439e4
7439e4
* Thu Apr 14 2022 Richard W.M. Jones <rjones@redhat.com> - 1.22-1
7439e4
- New upstream version 1.22.
7439e4
  resolves: rhbz#2074476
7439e4
- Fix Source0 line.
7439e4
fa2bfc
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.21-2.2
fa2bfc
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
fa2bfc
  Related: rhbz#1991688
fa2bfc
fa2bfc
* Fri Jun 18 2021 Richard W.M. Jones <rjones@redhat.com> - 1.21-1.el9.2
fa2bfc
- Support for VMware on aarch64
fa2bfc
  resolves: rhbz#1959174
fa2bfc
fa2bfc
* Wed Jun  2 2021 Richard W.M. Jones <rjones@redhat.com> - 1.21-1.el9.1
fa2bfc
- Add gating tests for RHEL 9
fa2bfc
fa2bfc
* Mon Apr 19 2021 Richard W.M. Jones <rjones@redhat.com> - 1.21-1
fa2bfc
- New upstream version 1.21.
fa2bfc
fa2bfc
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.20-6
fa2bfc
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
fa2bfc
fa2bfc
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-5
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
fa2bfc
fa2bfc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-4
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fa2bfc
fa2bfc
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1.20-3
fa2bfc
- Use make macros
fa2bfc
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
fa2bfc
fa2bfc
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-2
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
fa2bfc
fa2bfc
* Thu Oct  3 2019 Richard W.M. Jones <rjones@redhat.com> - 1.20-1
fa2bfc
- New upstream version 1.20.
fa2bfc
fa2bfc
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-3
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fa2bfc
fa2bfc
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-2
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
fa2bfc
fa2bfc
* Wed Oct 31 2018 Richard W.M. Jones <rjones@redhat.com> - 1.19-1
fa2bfc
- New upstream version 1.19.
fa2bfc
- Fixes support for AWS.
fa2bfc
- Remove patches which are now upstream.
fa2bfc
fa2bfc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-6
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fa2bfc
fa2bfc
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-5
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fa2bfc
fa2bfc
* Tue Oct 17 2017 Richard W.M. Jones <rjones@redhat.com> - 1.18-4
fa2bfc
- Include upstream patches since 1.18 was released.
fa2bfc
- dmidecode is also available on aarch64.
fa2bfc
fa2bfc
* Mon Jul 31 2017 Richard W.M. Jones <rjones@redhat.com> - 1.18-1
fa2bfc
- New upstream version 1.18.
fa2bfc
- Update RPM description section with complete list of supported guests.
fa2bfc
- If ‘make check’ fails, dump ‘test-suite.log’.
fa2bfc
fa2bfc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-6
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fa2bfc
fa2bfc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-5
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fa2bfc
fa2bfc
* Tue Jun 14 2016 Richard W.M. Jones <rjones@redhat.com> - 1.15-4
fa2bfc
- Require 'which' program.
fa2bfc
fa2bfc
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-3
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fa2bfc
fa2bfc
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-2
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fa2bfc
fa2bfc
* Tue Apr 21 2015 Richard W.M. Jones <rjones@redhat.com> - 1.15-1
fa2bfc
- New upstream version 1.15.
fa2bfc
- Remove patches, now upstream.
fa2bfc
fa2bfc
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-5
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
fa2bfc
fa2bfc
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-4
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fa2bfc
fa2bfc
* Mon Oct 28 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-3
fa2bfc
- Suppress warning message on Amazon EC2:
fa2bfc
  "grep: /proc/xen/capabilities: No such file or directory"
fa2bfc
fa2bfc
* Wed Sep 11 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-2
fa2bfc
- Include two upstream patches for detecting Xen and Linux VServer better
fa2bfc
  (RHBZ#973663).
fa2bfc
- Modernize the spec file.
fa2bfc
fa2bfc
* Mon Jul 29 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-1
fa2bfc
- New upstream version 1.13.
fa2bfc
fa2bfc
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fa2bfc
fa2bfc
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-2
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fa2bfc
fa2bfc
* Sat Mar 17 2012 Richard W.M. Jones <rjones@redhat.com> - 1.12-1
fa2bfc
- New upstream version 1.12.
fa2bfc
fa2bfc
* Wed Feb 29 2012 Richard W.M. Jones <rjones@redhat.com> - 1.11-3
fa2bfc
- Remove ExclusiveArch, but don't require dmidecode except on
fa2bfc
  i?86 and x86-64 (RHBZ#791370).
fa2bfc
fa2bfc
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fa2bfc
fa2bfc
* Fri May 27 2011 Richard W.M. Jones <rjones@redhat.com> - 1.11-1
fa2bfc
- New upstream version 1.11.
fa2bfc
fa2bfc
* Wed May 25 2011 Richard W.M. Jones <rjones@redhat.com> - 1.10-1
fa2bfc
- New upstream version 1.10.
fa2bfc
fa2bfc
* Tue Mar  8 2011 Richard W.M. Jones <rjones@redhat.com> - 1.9-1
fa2bfc
- New upstream version 1.9.
fa2bfc
fa2bfc
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-2
fa2bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fa2bfc
fa2bfc
* Mon Jan 31 2011 Richard W.M. Jones <rjones@redhat.com> - 1.8-1
fa2bfc
- New upstream version 1.8.
fa2bfc
fa2bfc
* Thu Jan 20 2011 Richard W.M. Jones <rjones@redhat.com> - 1.7-1
fa2bfc
- New upstream version 1.7.
fa2bfc
fa2bfc
* Wed Jan 19 2011 Richard W.M. Jones <rjones@redhat.com> - 1.6-2
fa2bfc
- New upstream version 1.6.
fa2bfc
- BuildRequires 'getopt' from util-linux-ng.
fa2bfc
fa2bfc
* Tue Jan 18 2011 Richard W.M. Jones <rjones@redhat.com> - 1.5-1
fa2bfc
- New upstream version 1.5.
fa2bfc
- Add 'make check' section.
fa2bfc
fa2bfc
* Tue Jan 18 2011 Richard W.M. Jones <rjones@redhat.com> - 1.4-1
fa2bfc
- New upstream version 1.4.
fa2bfc
- More hypervisor types detected.
fa2bfc
fa2bfc
* Thu Oct 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-4
fa2bfc
- Move configure into build (not prep).
fa2bfc
fa2bfc
* Thu Oct 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-3
fa2bfc
- Initial import into Fedora.
fa2bfc
fa2bfc
* Tue Oct 19 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-2
fa2bfc
- Make changes suggested by reviewer (RHBZ#644259).
fa2bfc
fa2bfc
* Tue Oct 19 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-1
fa2bfc
- Initial release.