%define module Sys-Virt %define name perl-%{module} %define modprefix Sys %define version 0.1.2 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} Summary: Interface to libvirt virtual machine management API License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module}/ Source: http://www.cpan.org/modules/by-module/%{modprefix}/%{module}-%{version}.tar.bz2 BuildRequires: perl-devel BuildRequires: libvirt-devel BuildRequires: xen-devel BuildRequires: perl(XML::XPath) BuildRoot: %{_tmppath}/%{name}-%{version} %description Sys::Virt is an interface to libvirt virtual machine management API. The Sys::Virt::Domain module represents a guest domain managed by the virtual machine monitor. %prep %setup -q -n %{module}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make CFLAGS="%{optflags}" %check make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS CHANGES README LICENSE %{perl_vendorarch}/Sys %{perl_vendorarch}/auto/Sys %{_mandir}/man3/Sys::Virt*3pm* %changelog * Mon Feb 25 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.1.2-1mdv2008.1 + Revision: 174676 - new version + Thierry Vignaud <tvignaud@mandriva.com> - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon Sep 03 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.1.1-2mdv2008.0 + Revision: 78769 - spec cleanup and ship documentation files * Mon Apr 23 2007 Olivier Blin <oblin@mandriva.com> 0.1.1-1mdv2008.0 + Revision: 17258 - 0.1.1 (none)