]> git.pld-linux.org Git - packages/perl-Sys-Virt.git/blame - perl-Sys-Virt.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Sys-Virt.git] / perl-Sys-Virt.spec
CommitLineData
76469483
JR
1#
2# Conditional build:
e35f49f6 3%bcond_with tests # perform "make test" (requires libvirtd)
76469483
JR
4#
5%define pdir Sys
6%define pnam Virt
76469483 7Summary: Sys::Virt - Represent and manage a libvirt hypervisor connection
e35f49f6 8Summary(pl.UTF-8): Sys::Virt - reprezentacja i zarządzanie połączeniem z hipernadzorcą libvirt
76469483 9Name: perl-Sys-Virt
1c619195 10Version: 2.5.0
35dc454e 11Release: 6
e35f49f6 12License: GPL v2+ or Artistic
76469483
JR
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
1c619195 15# Source0-md5: d07fca31367bef924ffe5c62e0d5f18a
e0628b64 16Patch0: no-dot-in-inc.patch
76469483 17URL: http://search.cpan.org/dist/Sys-Virt/
3b053d79 18BuildRequires: libvirt-devel >= 1.2.19
76469483 19BuildRequires: perl-devel >= 1:5.8.0
e35f49f6 20BuildRequires: pkgconfig
76469483
JR
21BuildRequires: rpm-perlprov >= 4.1-13
22%if %{with tests}
3b053d79 23BuildRequires: libvirt-daemon >= 1.2.19
e35f49f6
JB
24BuildRequires: perl-CPAN-Changes
25BuildRequires: perl-Test-Pod
26BuildRequires: perl-Test-Pod-Coverage
27BuildRequires: perl-Test-Simple
28BuildRequires: perl-Time-HiRes
29BuildRequires: perl-XML-XPath
76469483 30%endif
3b053d79 31Requires: libvirt >= 1.2.19
76469483
JR
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
aac3af46
JR
35The Sys::Virt module provides a Perl XS binding to the libvirt virtual
36machine management APIs. This allows machines running within arbitrary
37virtualization containers to be managed with a consistent API.
76469483 38
e35f49f6
JB
39%description -l pl.UTF-8
40Moduł Sys::Virt dostarcza wiązanie XS Perla do API zarządzania
41maszynami wirtualnymi libvirt. Pozwala na zarządzanie poprzez
42jednolite API maszynami wirtualnymi działającymi w dowolnych
43kontenerach.
76469483
JR
44
45%prep
46%setup -q -n %{pdir}-%{pnam}-%{version}
e0628b64 47%patch0 -p1
76469483
JR
48
49%build
50%{__perl} Makefile.PL \
51 INSTALLDIRS=vendor
52%{__make} -j1 \
53 CC="%{__cc}" \
54 OPTIMIZE="%{rpmcflags}"
55
56%{?with_tests:%{__make} test}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61%{__make} pure_install \
62 DESTDIR=$RPM_BUILD_ROOT
63
64install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
e35f49f6
JB
72%doc AUTHORS Changes README
73%{perl_vendorarch}/Sys/Virt.pm
76469483 74%dir %{perl_vendorarch}/Sys/Virt
76469483
JR
75%{perl_vendorarch}/Sys/Virt/*.pm
76%dir %{perl_vendorarch}/auto/Sys/Virt
e35f49f6
JB
77%attr(755,root,root) %{perl_vendorarch}/auto/Sys/Virt/Virt.so
78%{_mandir}/man3/Sys::Virt*.3pm*
76469483 79%{_examplesdir}/%{name}-%{version}
This page took 0.150476 seconds and 4 git commands to generate.