]> git.pld-linux.org Git - packages/perl-Sys-Virt.git/blobdiff - perl-Sys-Virt.spec
- updated to 9.8.0
[packages/perl-Sys-Virt.git] / perl-Sys-Virt.spec
index e0c13fdcb6bb3bbf63fbd40e4e66527cdbc1ef82..b74fc9efdcc77d83f03ae0da63ae8b0ef123db50 100644 (file)
@@ -1,27 +1,27 @@
 #
 # Conditional build:
-%bcond_with    tests           # perform "make test" (requires libvirtd)
+%bcond_with    tests           # functional tests (require libvirtd)
 #
 %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):     Sys::Virt - reprezentacja i zarządzanie połączeniem z hipernadzorcą libvirt
 Name:          perl-Sys-Virt
-Version:       2.5.0
-Release:       6
+Version:       9.8.0
+Release:       1
 License:       GPL v2+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: d07fca31367bef924ffe5c62e0d5f18a
-Patch0:                no-dot-in-inc.patch
-URL:           http://search.cpan.org/dist/Sys-Virt/
-BuildRequires: libvirt-devel >= 1.2.19
-BuildRequires: perl-devel >= 1:5.8.0
+Source0:       http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-v%{version}.tar.gz
+# Source0-md5: 828cc480b5cc0abc023b94eae02d509e
+URL:           https://metacpan.org/dist/Sys-Virt
+BuildRequires: libvirt-devel >= 9.8.0
+BuildRequires: perl-devel >= 1:5.16
+BuildRequires: perl-Module-Build
 BuildRequires: pkgconfig
 BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
 %if %{with tests}
-BuildRequires: libvirt-daemon >= 1.2.19
+BuildRequires: libvirt-daemon >= 8.8.0
 BuildRequires: perl-CPAN-Changes
 BuildRequires: perl-Test-Pod
 BuildRequires: perl-Test-Pod-Coverage
@@ -29,7 +29,7 @@ BuildRequires:        perl-Test-Simple
 BuildRequires: perl-Time-HiRes
 BuildRequires: perl-XML-XPath
 %endif
-Requires:      libvirt >= 1.2.19
+Requires:      libvirt >= 9.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -44,12 +44,12 @@ jednolite API maszynami wirtualnymi działającymi w dowolnych
 kontenerach.
 
 %prep
-%setup -q -n %{pdir}-%{pnam}-%{version}
-%patch0 -p1
+%setup -q -n %{pdir}-%{pnam}-v%{version}
 
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
+
 %{__make} -j1 \
        CC="%{__cc}" \
        OPTIMIZE="%{rpmcflags}"
@@ -62,6 +62,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} pure_install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Sys/Virt/Virt.bs
+
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
This page took 0.092867 seconds and 4 git commands to generate.