]> git.pld-linux.org Git - packages/perl-Sys-Virt.git/commitdiff
- initial revision by pldcpan
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 29 Mar 2011 09:23:00 +0000 (09:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Sys-Virt.spec -> 1.1

perl-Sys-Virt.spec [new file with mode: 0644]

diff --git a/perl-Sys-Virt.spec b/perl-Sys-Virt.spec
new file mode 100644 (file)
index 0000000..fb86c83
--- /dev/null
@@ -0,0 +1,73 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Sys
+%define                pnam    Virt
+%include       /usr/lib/rpm/macros.perl
+Summary:       Sys::Virt - Represent and manage a libvirt hypervisor connection
+#Summary(pl.UTF-8):    
+Name:          perl-Sys-Virt
+Version:       0.2.6
+Release:       1
+License:       GPL
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: a4ca5735791e132320bd8546c5deacae
+URL:           http://search.cpan.org/dist/Sys-Virt/
+BuildRequires: libvirt-devel
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Test::Pod)
+BuildRequires: perl(Test::Pod::Coverage)
+BuildRequires: perl(XML::XPath)
+BuildRequires: perl(XML::XPath::XMLParser)
+%endif
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Sys::Virt module provides a Perl XS binding to the libvirt
+virtual machine management APIs. This allows machines running
+within arbitrary virtualization containers to be managed with
+a consistent API.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make} -j1 \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGES INSTALL README
+%dir %{perl_vendorarch}/Sys
+%dir %{perl_vendorarch}/Sys/Virt
+%{perl_vendorarch}/Sys/*.pm
+%{perl_vendorarch}/Sys/Virt/*.pm
+%dir %{perl_vendorarch}/auto/Sys/Virt
+%{perl_vendorarch}/auto/Sys/Virt/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Sys/Virt/*.so
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
This page took 0.088378 seconds and 4 git commands to generate.