add perl-Sys-Virt
This commit is contained in:
parent
694a97b5f7
commit
8b18afeeff
BIN
Sys-Virt-v4.7.0.tar.gz
Normal file
BIN
Sys-Virt-v4.7.0.tar.gz
Normal file
Binary file not shown.
103
perl-Sys-Virt.spec
Normal file
103
perl-Sys-Virt.spec
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
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<wangye54@huawei.com> - 4.7.0-2
|
||||||
|
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user