[perl-MetaCPAN-API] Update to 0.50

Paul Howarth pghmcfc at fedoraproject.org
Tue Jan 27 11:19:28 UTC 2015


commit 95a278506a148392fded6493a5ef45cfa18588a4
Author: Paul Howarth <paul at city-fan.org>
Date:   Mon Jan 26 22:03:59 2015 +0000

    Update to 0.50
    
    - New upstream release 0.50
      - Convert to Moo
      - Use Types::Standard
      - Remove Module::Build
      - Deprecate using x_deprecate meta-data
    - Classify buildreqs by usage
    - Use %license where possible
    - No longer need to avoid network tests as they're skipped automatically in
      koji
    - Switch to ExtUtils::MakeMaker flow

 .gitignore             |    3 +-
 perl-MetaCPAN-API.spec |   80 ++++++++++++++++++++++++++++--------------------
 sources                |    2 +-
 3 files changed, 49 insertions(+), 36 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 62c9cdb..860b14c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-/MetaCPAN-API-0.43.tar.gz
-/MetaCPAN-API-0.44.tar.gz
+/MetaCPAN-API-[0-9.]*.tar.gz
diff --git a/perl-MetaCPAN-API.spec b/perl-MetaCPAN-API.spec
index 342bf52..8a06fa1 100644
--- a/perl-MetaCPAN-API.spec
+++ b/perl-MetaCPAN-API.spec
@@ -1,37 +1,43 @@
 Name:           perl-MetaCPAN-API
-Version:        0.44
-Release:        3%{?dist}
+Version:        0.50
+Release:        1%{?dist}
 Summary:        Comprehensive, DWIM-featured API to MetaCPAN
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/MetaCPAN-API/
 Source0:        http://www.cpan.org/authors/id/X/XS/XSAWYERX/MetaCPAN-API-%{version}.tar.gz
 BuildArch:      noarch
+# Build
 BuildRequires:  perl
-BuildRequires:  perl(Any::Moose)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Module
 BuildRequires:  perl(Carp)
-BuildRequires:  perl(IO::Handle)
-BuildRequires:  perl(IPC::Open3)
 BuildRequires:  perl(HTTP::Tiny)
 BuildRequires:  perl(JSON)
-BuildRequires:  perl(Module::Build)
-BuildRequires:  perl(Pod::Coverage::TrustPod)
+BuildRequires:  perl(Moo) >= 1.000001
+BuildRequires:  perl(Moo::Role)
+BuildRequires:  perl(namespace::autoclean)
+BuildRequires:  perl(Try::Tiny)
+BuildRequires:  perl(Types::Standard)
+BuildRequires:  perl(URI::Escape)
+# Test suite
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(IO::Handle)
+BuildRequires:  perl(IPC::Open3)
 BuildRequires:  perl(Test::Fatal)
 BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Perl::Critic)
-BuildRequires:  perl(Test::Pod)
-BuildRequires:  perl(Test::Pod::Coverage)
+BuildRequires:  perl(Test::RequiresInternet)
 BuildRequires:  perl(Test::TinyMocker)
-BuildRequires:  perl(Try::Tiny)
-BuildRequires:  perl(URI::Escape)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Author/Release tests
+BuildRequires:  perl(Pod::Coverage::TrustPod)
+BuildRequires:  perl(Test::Perl::Critic)
+BuildRequires:  perl(Test::Pod) >= 1.41
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
+# Runtime
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %{?perl_default_filter}
 
-# skip tests that require network access in koji
-# rpmbuild --with network-tests to re-enable
-%bcond_with network_tests
-
 %description
 This is a hopefully-complete API-compliant interface to MetaCPAN
 (https://metacpan.org) with DWIM capabilities, to make your life easier.
@@ -45,32 +51,40 @@ Please do not use this module.
 %setup -q -n MetaCPAN-API-%{version}
 
 %build
-%{__perl} Build.PL installdirs=vendor
-./Build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
-./Build install destdir=%{buildroot} create_packlist=0
-
-%{_fixperms} %{buildroot}/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}
 
 %check
-# avoid tests that require network access in koji
-%if !%{with network_tests}
-mv t/{author,autocomplete,distribution,favorite,file,module,pod,release,source}.t ./
-%endif
-
-AUTHOR_TESTING=1 RELEASE_TESTING=1 ./Build test
-
-%if !%{with network_tests}
-mv ./{author,autocomplete,distribution,favorite,file,module,pod,release,source}.t t/
-%endif
+make test AUTHOR_TESTING=1 RELEASE_TESTING=1
 
 %files
-%doc Changes LICENSE README
+%if 0%{?_licensedir:1}
+%license LICENSE
+%else
+%doc LICENSE
+%endif
+%doc Changes README
 %{perl_vendorlib}/MetaCPAN/
 %{_mandir}/man3/*
 
 %changelog
+* Mon Jan 26 2015 Paul Howarth <paul at city-fan.org> - 0.50-1
+- Update to 0.50
+  - Convert to Moo
+  - Use Types::Standard
+  - Remove Module::Build
+  - Deprecate using x_deprecate meta-data
+- Classify buildreqs by usage
+- Use %%license where possible
+- No longer need to avoid network tests as they're skipped automatically in
+  koji
+- Switch to ExtUtils::MakeMaker flow
+
 * Mon Sep 01 2014 Jitka Plesnikova <jplesnik at redhat.com> - 0.44-3
 - Perl 5.20 rebuild
 
diff --git a/sources b/sources
index 3120a74..dbd1270 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-36fc3f00d380473e1819354581869d0a  MetaCPAN-API-0.44.tar.gz
+06967b570f5eae2ef627c3667e40a55f  MetaCPAN-API-0.50.tar.gz


More information about the scm-commits mailing list