ppisar pushed to perl-Module-Pluggable (master). "5.2 bump (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Aug 31 13:16:17 UTC 2015


From 3a9046a14c7ee4f72d87385cbe2f1e0c18b39f6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Mon, 31 Aug 2015 15:07:03 +0200
Subject: 5.2 bump

Upstream stick on 1-decimal-point release number. Let's follow it
despite the cost of increasing epoch.

diff --git a/.gitignore b/.gitignore
index 8995193..d755314 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
 /Module-Pluggable-4.8.tar.gz
 /Module-Pluggable-5.0.tar.gz
 /Module-Pluggable-5.1.tar.gz
+/Module-Pluggable-5.2.tar.gz
diff --git a/perl-Module-Pluggable.spec b/perl-Module-Pluggable.spec
index 7f3f444..600cc3e 100644
--- a/perl-Module-Pluggable.spec
+++ b/perl-Module-Pluggable.spec
@@ -1,51 +1,53 @@
-%global cpan_version 5.1
 Name:           perl-Module-Pluggable
-# Epoch to compete with perl.spec
-Epoch:          1
-# Keep two digit decimal part
-Version:        %{cpan_version}0
-Release:        6%{?dist}
+Epoch:          2
+Version:        5.2
+Release:        1%{?dist}
 Summary:        Automatically give your module the ability to have plugins
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Module-Pluggable/
-Source0:        http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{cpan_version}.tar.gz
+Source0:        http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  coreutils
+BuildRequires:  findutils
+BuildRequires:  make
 BuildRequires:  perl
-BuildRequires:  perl(FindBin)
-BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Spec::Functions) >= 3.00
 BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
 # Run-time:
-BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
 %if 0%(perl -e 'print $] > 5.017')
 BuildRequires:  perl(deprecate)
 %endif
-BuildRequires:  perl(Exporter)
+BuildRequires:  perl(Exporter) >= 5.57
 BuildRequires:  perl(File::Basename)
 BuildRequires:  perl(File::Find)
-BuildRequires:  perl(File::Spec::Functions) >= 3.00
 BuildRequires:  perl(if)
 BuildRequires:  perl(vars)
+# Recommended run-time:
+BuildRequires:  perl(Module::Runtime) >= 0.012
 # Tests:
+BuildRequires:  perl(base)
 BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(FindBin)
 BuildRequires:  perl(lib)
 BuildRequires:  perl(Test::More) >= 0.62
-BuildRequires:  perl(warnings)
+# IncTest is a locally overloaded module in t/lib/Text/Abbrev.pm
 # Optional tests:
-# App::FatPacker not yet packaged
-#%%if !%%{defined perl_bootstrap}
-#BuildRequires:  perl(App::FatPacker) >= 0.10.0
-#BuildRequires:  perl(Cwd)
-#BuildRequires:  perl(File::Copy)
-#BuildRequires:  perl(File::Path)
-#BuildRequires:  perl(File::Temp)
-#%%endif
+BuildRequires:  perl(App::FatPacker) >= 0.10.0
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(File::Copy)
+BuildRequires:  perl(File::Path)
+BuildRequires:  perl(File::Temp)
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(File::Spec::Functions) >= 3.00
 %if 0%(perl -e 'print $] > 5.017')
 Requires:       perl(deprecate)
 %endif
+# Recommended run-time:
+Recommends:     perl(Module::Runtime) >= 0.012
 
 # Filter under-specified dependencies
 %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec::Functions\\)$
@@ -57,19 +59,20 @@ your name space that looks through a search path for .pm files and turn those
 into class names. Optionally it instantiates those classes for you.
 
 %prep
-%setup -q -n Module-Pluggable-%{cpan_version}
+%setup -q -n Module-Pluggable-%{version}
 find -type f -exec chmod -x {} +
 
 %build
-perl Build.PL installdirs=vendor
-./Build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+%{_fixperms} %{buildroot}/*
 
 %check
-./Build test
+make test
 
 %files
 %doc Changes README
@@ -77,6 +80,9 @@ perl Build.PL installdirs=vendor
 %{_mandir}/man3/*
 
 %changelog
+* Mon Aug 31 2015 Petr Pisar <ppisar at redhat.com> - 2:5.2-1
+- 5.2 bump
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:5.10-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
diff --git a/sources b/sources
index 636cf1e..3b106e5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1b71ed7a67ad8c048d1499540bc892ba  Module-Pluggable-5.1.tar.gz
+87ce2971662efd0b69a81bb4dc9ea76c  Module-Pluggable-5.2.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Module-Pluggable.git/commit/?h=master&id=3a9046a14c7ee4f72d87385cbe2f1e0c18b39f6d


More information about the perl-devel mailing list