3 %bcond_with tests # build with tests
5 Summary: Detects several virtualizations
9 Source0: http://downloads.sourceforge.net/imvirt/%{name}-%{version}.tar.gz
10 # Source0-md5: 792d986e79d763a44b55c33a17abb62d
12 Group: Applications/System
13 URL: http://micky.ibh.net/~liske/imvirt.html
14 BuildRequires: perl-ExtUtils-MakeMaker
16 ExclusiveArch: %{ix86} %{x8664} ia64
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This little Perl script tries to detect if it is called from within a
21 virtualization container. This is detected by looking for well known
22 boot messages, directories and reading DMI (Desktop Management
25 The following containers are detected:
26 - Virtual PC/Virtual Server
29 - QEMU/KVM (experimental)
30 - Xen (para and non-para virtualized)
33 - any HVM providing CPUID 0x40000000 detection
50 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
54 rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/ImVirt/.packlist
55 rm $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
56 rm $RPM_BUILD_ROOT%{perl_vendorlib}/ImVirt.pm.in
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc AUTHORS ChangeLog README
64 %attr(755,root,root) %{_sbindir}/imvirt-report
65 %attr(755,root,root) %{_bindir}/imvirt
66 %dir %{_libexecdir}/imvirt
67 %attr(755,root,root) %{_libdir}/%{name}/hvm
68 %attr(755,root,root) %{_libdir}/%{name}/hyperv
69 %attr(755,root,root) %{_libdir}/%{name}/pillbox
70 %attr(755,root,root) %{_libdir}/%{name}/vmware
71 %attr(755,root,root) %{_libdir}/%{name}/xen
72 %{_mandir}/man1/imvirt-report.1*
73 %{_mandir}/man1/imvirt.1*
76 %{perl_vendorlib}/ImVirt.pm
77 %{perl_vendorlib}/ImVirt
78 %{_mandir}/man3/ImVirt.3pm*