psabata pushed to perl-Sys-Virt (master). "1.2.15 bump (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed May 6 08:06:57 UTC 2015


>From cce76eba246204435e92f236a8d83efc188e8592 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Wed, 6 May 2015 10:06:40 +0200
Subject: 1.2.15 bump

- Sanitize the spec
- Correct the dependency list

diff --git a/perl-Sys-Virt.spec b/perl-Sys-Virt.spec
index b4d6279..53a42cd 100644
--- a/perl-Sys-Virt.spec
+++ b/perl-Sys-Virt.spec
@@ -1,21 +1,31 @@
-# Automatically generated by perl-Sys-Virt.spec.PL
-
 Name:           perl-Sys-Virt
-Version:        1.2.14
-Release:        1%{?dist}%{?extra_release}
+Version:        1.2.15
+Release:        1%{?dist}
 Summary:        Represent and manage a libvirt hypervisor connection
 License:        GPLv2+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Sys-Virt/
 Source0:        http://www.cpan.org/authors/id/D/DA/DANBERR/Sys-Virt-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Test::Pod)
-BuildRequires:  perl(Test::Pod::Coverage)
-BuildRequires:  perl(Test::CPAN::Changes)
-BuildRequires:  perl(XML::XPath)
-BuildRequires:  perl(Time::HiRes)
 BuildRequires:  libvirt-devel >= %{version}
+# Build
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(overload)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(XSLoader)
+# Tests only
+BuildRequires:  perl(base)
+BuildRequires:  perl(Sys::Hostname)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Time::HiRes)
+BuildRequires:  perl(XML::XPath)
+BuildRequires:  perl(XML::XPath::XMLParser)
+# Optional tests only
+BuildRequires:  perl(Test::CPAN::Changes)
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
@@ -25,40 +35,35 @@ virtualization containers to be managed with a consistent API.
 
 %prep
 %setup -q -n Sys-Virt-%{version}
-
-sed -i -e '/Sys-Virt\.spec/d' Makefile.PL
-sed -i -e '/\.spec\.PL$/d' MANIFEST
+#sed -i -e '/Sys-Virt\.spec/d' Makefile.PL
+#sed -i -e '/\.spec\.PL$/d' MANIFEST
 rm -f *.spec.PL
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f \( -name .packlist -o -name '*.bs' -empty \) |
-	xargs rm -f
-find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir {} \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} +
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
-%doc AUTHORS Changes LICENSE README examples/
+%license LICENSE
+%doc AUTHORS Changes README examples/
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/Sys*
 %{_mandir}/man3/*
 
 %changelog
+* Wed May 06 2015 Petr Ĺ abata <contyk at redhat.com> - 1.2.15-1
+- 1.2.15 bump
+- Sanitize the spec
+- Correct the dependency list
+
 * Thu Apr  9 2015 Daniel P. Berrange <berrange at redhat.com> - 1.2.14-1
 - Update to 1.2.14 release
 
diff --git a/sources b/sources
index be1c272..7a8fea3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-092f7156ad2435d61869003b0d43adf6  Sys-Virt-1.2.14.tar.gz
+42c4eb2d1272a9526d7ba8dfd5168364  Sys-Virt-1.2.15.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Sys-Virt.git/commit/?h=master&id=cce76eba246204435e92f236a8d83efc188e8592


More information about the perl-devel mailing list