Name: virt-what Version: 1.18 Release: 8 Summary: Detect if running in a virtual machine License: GPLv2+ URL: http://people.redhat.com/~rjones/virt-what/ Source0: http://people.redhat.com/~rjones/virt-what/files/%{name}-%{version}.tar.gz Patch0001: 0001-Missing-have_cpuinfo-check.patch Patch0002: 0002-Remove-bashisms.patch Patch0003: 0003-As-xen-pv-guest-can-access-cpuid-from-Intel-CPUs-sta.patch Patch0004: 0004-Recognize-ppc64le-little-endian-virtualization-RHBZ-.patch BuildRequires: gcc util-linux /usr/bin/pod2man git Requires: dmidecode util-linux which %description virt-what is a shell script which can be used to detect if the program is running in a virtual machine. %package_help %prep %autosetup -n %{name}-%{version} -p1 -Sgit %build %configure make %{?_smp_mflags} %install rm -rf %{buildroot} %make_install %check make check %pre %preun %post %postun %files %defattr(-,root,root) %doc README COPYING %{_sbindir}/* %{_libexecdir}/virt-what-cpuid-helper %files help %{_mandir}/*/* %changelog * Tue Sep 24 2019 openEuler Buildteam - 1.18-8 - Type:enhancement - ID:NA - SUG:NA - DESC: revise spec file with new rules * Wed Aug 14 2019 openEuler Buildteam - 1.18-7 - Package init