| 1 |
# Automatically generated by perl-Sys-Virt.spec.PL |
| 2 |
|
| 3 |
Name: perl-Sys-Virt |
| 4 |
Version: 12.7.0 |
| 5 |
Release: 1%{?dist} |
| 6 |
Summary: Represent and manage a libvirt hypervisor connection |
| 7 |
License: GPL-2.0-or-later or Artistic-1.0-Perl |
| 8 |
URL: https://metacpan.org/release/Sys-Virt |
| 9 |
Source0: https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Sys-Virt-v%{version}.tar.gz |
| 10 |
# Build |
| 11 |
BuildRequires: coreutils |
| 12 |
BuildRequires: findutils |
| 13 |
BuildRequires: gcc |
| 14 |
BuildRequires: libvirt-devel >= %{version} |
| 15 |
BuildRequires: make |
| 16 |
BuildRequires: perl-devel |
| 17 |
%if 0%{?fedora} || 0%{?rhel} > 7 |
| 18 |
BuildRequires: perl-interpreter |
| 19 |
BuildRequires: perl-generators |
| 20 |
%endif |
| 21 |
BuildRequires: perl(ExtUtils::CBuilder) |
| 22 |
BuildRequires: perl(Module::Build) |
| 23 |
BuildRequires: sed |
| 24 |
# Runtime |
| 25 |
BuildRequires: perl(overload) |
| 26 |
BuildRequires: perl(strict) |
| 27 |
BuildRequires: perl(warnings) |
| 28 |
BuildRequires: perl(XSLoader) |
| 29 |
# Tests only |
| 30 |
BuildRequires: perl(base) |
| 31 |
BuildRequires: perl(Sys::Hostname) |
| 32 |
BuildRequires: perl(Test::More) |
| 33 |
BuildRequires: perl(Time::HiRes) |
| 34 |
BuildRequires: perl(XML::XPath) |
| 35 |
BuildRequires: perl(XML::XPath::XMLParser) |
| 36 |
# Optional tests only |
| 37 |
BuildRequires: perl(Test::CPAN::Changes) |
| 38 |
BuildRequires: perl(Test::Pod) >= 1.00 |
| 39 |
BuildRequires: perl(Test::Pod::Coverage) >= 1.00 |
| 40 |
BuildRequires: git |
| 41 |
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) |
| 42 |
|
| 43 |
%description |
| 44 |
The Sys::Virt module provides a Perl XS binding to the libvirt virtual |
| 45 |
machine management APIs. This allows machines running within arbitrary |
| 46 |
virtualization containers to be managed with a consistent API. |
| 47 |
|
| 48 |
%prep |
| 49 |
%autosetup -S git -n Sys-Virt-v%{version} |
| 50 |
|
| 51 |
|
| 52 |
%build |
| 53 |
%{__perl} Build.PL installdirs=vendor |
| 54 |
./Build |
| 55 |
|
| 56 |
%install |
| 57 |
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 |
| 58 |
|
| 59 |
%{_fixperms} $RPM_BUILD_ROOT/* |
| 60 |
|
| 61 |
%check |
| 62 |
./Build test |
| 63 |
|
| 64 |
%files |
| 65 |
%license LICENSE LICENSE.GPL LICENSE.Artistic |
| 66 |
%doc AUTHORS Changes README examples/ |
| 67 |
%{perl_vendorarch}/auto/* |
| 68 |
%{perl_vendorarch}/Sys* |
| 69 |
%{_mandir}/man3/* |
| 70 |
|
| 71 |
%changelog |