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

Name: perl-Sys-Virt
Summary: Perl module to represent and manage a libvirt hypervisor connection
Version: 2.1.0
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Sys-Virt/
Description: perl-Sys-Virt is a Perl module to represent and manage a libvirt hypervisor connection.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Daniel P. Berrangé <dan$berrange,com>

### EL6 ships with perl-Sys-Virt-0.2.4-1.el6
%{?el6:# Tag: rfx}

### RHEL 5.4 ships with perl-Sys-Virt-0.2.0
# ExclusiveDist: el3 el4

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Sys-Virt

Summary: Perl module to represent and manage a libvirt hypervisor connection
Name: perl-Sys-Virt
Version: 2.1.0
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Sys-Virt/

Source: http://www.cpan.org/modules/by-module/Sys/Sys-Virt-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(XML::XPath)
BuildRequires: perl(XML::XPath::XMLParser)
BuildRequires: xen-libs-devel

%description
perl-Sys-Virt is a Perl module to represent and manage a libvirt hypervisor
connection.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

### Clean up docs
find examples/ -type f -exec %{__chmod} a-x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS CHANGES INSTALL LICENSE MANIFEST MANIFEST.SKIP META.yml README examples/
%doc %{_mandir}/man3/Sys::Virt.3pm*
%dir %{perl_vendorarch}/auto/Sys/
%{perl_vendorarch}/auto/Sys/Virt/
%dir %{perl_vendorarch}/Sys/
%{perl_vendorarch}/Sys/Virt.pm

%changelog
* Thu Jun 09 2016 Dries Verachtert <dries.verachtert@dries.eu> - 2.1.0-1
- Updated to release 2.1.0.

* Tue Jul 21 2009 Dag Wieers <dag@wieers.com> - 0.2.0-1
- Updated to release 0.2.0.

* Mon Feb 25 2008 Dag Wieers <dag@wieers.com> - 0.1.2-1
- Updated to release 0.1.2.

* Mon Aug 06 2007 Dag Wieers <dag@wieers.com> - 0.1.1-1
- Initial package. (using DAR)