Name: perl-Sys-Detect-Virtualization Version: 0.106 Release: 1%{?dist} Summary: Library to detect if a UNIX system is running as a virtual machine License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Sys-Detect-Virtualization/ Source0: http://www.cpan.org/modules/by-module/Sys/Sys-Detect-Virtualization-%{version}.tar.gz # Included from https://rt.cpan.org/Public/Bug/Display.html?id=86673 to allow building on archs that do not have Parse::DMIDecode Patch1: sys_detect_virt_dmidecode.patch # Included from https://rt.cpan.org/Public/Bug/Display.html?id=95536 to pass POD tests Patch2: sys_detect_virt_perldoc.patch BuildRequires: perl BuildRequires: perl(base) BuildRequires: perl(constant) BuildRequires: perl(Cwd) BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MM_Unix) BuildRequires: perl(Fcntl) BuildRequires: perl(File::Find) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Path) BuildRequires: perl(Getopt::Long) BuildRequires: perl(IO::File) BuildRequires: perl(lib) # The dmidecode package (and perl-Parse-DMIDecode) are only available on the following archs %ifarch %{ix86} x86_64 ia64 BuildRequires: perl(Parse::DMIDecode) >= 0.03 %endif BuildRequires: perl(Pod::Coverage) BuildRequires: perl(Pod::Usage) BuildRequires: perl(POSIX) BuildRequires: perl(strict) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) # BuildRequires: perl(Test::CheckManifest) not required except for author tests BuildRequires: perl(Test::More) >= 0.82 BuildRequires: perl(vars) BuildRequires: perl(warnings) %ifarch %{ix86} x86_64 ia64 Requires: perl(Parse::DMIDecode) >= 0.03 %endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module attempts to detect whether or not a system is running as a guest under virtualization, using various heuristics. %prep %setup -q -n Sys-Detect-Virtualization-%{version} %patch1 -p1 %patch2 -p1 %build # There is no need for a debug package, the only reason an arch is important is because of the BuildRequires %define debug_package %{nil} %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %package -n virtdetect Summary: Detect if a UNIX system is running as a virtual machine # The BuildArch is now irrelevant, Sys::Detect::Virtualization hides the dependency on dmidecode BuildArch: noarch %description -n virtdetect This script attempts to detect whether or not a system is running as a guest under virtualization, using various heuristics. %files -n virtdetect %doc README %{_mandir}/man1/* %{_bindir}/* %changelog * Sun May 11 2014 David Dick - 0.106-1 - Initial release