diff --git a/Sys-Virt-v4.7.0.tar.gz b/Sys-Virt-v4.7.0.tar.gz new file mode 100644 index 0000000..0191d81 Binary files /dev/null and b/Sys-Virt-v4.7.0.tar.gz differ diff --git a/perl-Sys-Virt.spec b/perl-Sys-Virt.spec new file mode 100644 index 0000000..3b30b2a --- /dev/null +++ b/perl-Sys-Virt.spec @@ -0,0 +1,52 @@ +Name: perl-Sys-Virt +Version: 4.7.0 +Release: 2 +Summary: Represent and manage a libvirt hypervisor connection +License: GPLv2+ or Artistic +URL: https://metacpan.org/release/Sys-Virt +Source0: https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Sys-Virt-v%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: coreutils findutils libvirt-devel >= %{version} make perl-interpreter +BuildRequires: perl-devel perl-generators perl(ExtUtils::CBuilder) perl(Module::Build) sed +BuildRequires: perl(overload) perl(strict) perl(warnings) perl(XSLoader) perl(base) perl(Sys::Hostname) +BuildRequires: perl(Test::More) perl(Time::HiRes) perl(XML::XPath) perl(XML::XPath::XMLParser) perl(Test::CPAN::Changes) +BuildRequires: perl(Test::Pod) >= 1.00 perl(Test::Pod::Coverage) >= 1.00 +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) + +%description +The Sys::Virt module Allows consistent API management mechanisms +when running inside any virtualized container. + +%package help +Summary: help for perl-Sys-Virt + +%description help +The help package contains manual pages and other related files for perl-Sys-Virt + +%prep +%autosetup Sys-Virt-v%{version} -p1 + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%license LICENSE +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Sys* + +%files help +%doc AUTHORS Changes README examples +%{_mandir}/man3/* + +%changelog +* Thu Nov 21 2019 wangye - 4.7.0-2 +- Package init \ No newline at end of file