perl-Sys-Virt/perl-Sys-Virt.spec

57 lines
1.8 KiB
RPMSpec
Raw Normal View History

2019-12-06 17:06:04 +08:00
Name: perl-Sys-Virt
Version: 4.7.0
2020-05-21 19:05:47 +08:00
Release: 3
2019-12-06 17:06:04 +08:00
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))
2020-05-21 19:05:47 +08:00
Patch0000: fix-check-pool.patch
2019-12-06 17:06:04 +08:00
%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
2019-12-09 17:29:28 +08:00
%autosetup -n Sys-Virt-v%{version} -p1
2019-12-06 17:06:04 +08:00
%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
2020-05-21 19:05:47 +08:00
* Thu May 21 2020 wutao<wutao61@huawei.com> - 4.7.0-3
- fix check failed problem
2019-12-06 17:06:04 +08:00
* Thu Nov 21 2019 wangye<wangye54@huawei.com> - 4.7.0-2
2019-12-09 17:29:28 +08:00
- Package init