Blame SPECS/virt-what.spec

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