From 16c1295ab16424d06b9ea22d50ada5b00bdaf84d Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Fri, 17 Jun 2016 12:23:55 +0100 Subject: [PATCH] Update to 0.19 - New upstream release 0.19 - Removed dependencies on namespace::clean, Sub::Exporter, File::Find::Rule - Simplify find command using -delete - Downgrade Role::Tiny dependency to Recommends: on Fedora - BR: perl-generators where available --- perl-Test-CleanNamespaces.spec | 45 ++++++++++++++++++++++++---------- sources | 2 +- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/perl-Test-CleanNamespaces.spec b/perl-Test-CleanNamespaces.spec index 03c9b96..477fe05 100644 --- a/perl-Test-CleanNamespaces.spec +++ b/perl-Test-CleanNamespaces.spec @@ -1,41 +1,49 @@ Name: perl-Test-CleanNamespaces Summary: Check for uncleaned imports -Version: 0.18 -Release: 7%{?dist} +Version: 0.19 +Release: 1%{?dist} License: GPL+ or Artistic URL: https://metacpan.org/release/Test-CleanNamespaces Source0: http://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-CleanNamespaces-%{version}.tar.gz BuildArch: noarch # Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl +%if 0%{?fedora} > 20 || 0%{?rhel} > 7 +BuildRequires: perl-generators +%endif +BuildRequires: perl(CPAN::Meta::Requirements) >= 2.120620 BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Module::Metadata) # Module -BuildRequires: perl(File::Find::Rule) -BuildRequires: perl(File::Find::Rule::Perl) -BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Spec) BuildRequires: perl(Module::Runtime) -BuildRequires: perl(namespace::clean) BuildRequires: perl(Package::Stash) >= 0.14 BuildRequires: perl(Package::Stash::XS) BuildRequires: perl(strict) -BuildRequires: perl(Sub::Exporter) +BuildRequires: perl(Sub::Exporter::Progressive) BuildRequires: perl(Sub::Identify) BuildRequires: perl(Test::Builder) BuildRequires: perl(warnings) +# Optional Runtime +BuildRequires: perl(Role::Tiny) >= 1.003000 # Test Suite BuildRequires: perl(constant) BuildRequires: perl(CPAN::Meta) >= 2.120900 BuildRequires: perl(CPAN::Meta::Prereqs) -BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(File::Spec) +BuildRequires: perl(Exporter) >= 5.57 +BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(if) BuildRequires: perl(lib) BuildRequires: perl(Module::Runtime) +BuildRequires: perl(namespace::clean) BuildRequires: perl(overload) BuildRequires: perl(parent) -BuildRequires: perl(Role::Tiny) >= 1.003000 BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Sub::Exporter) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::More) >= 0.94 BuildRequires: perl(Test::Requires) @@ -58,7 +66,11 @@ BuildRequires: perl(Mouse::Role) BuildRequires: perl(Test::Warnings) >= 0.009 # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +%if 0%{?fedora} +Recommends: perl(Role::Tiny) >= 1.003000 +%else Requires: perl(Role::Tiny) >= 1.003000 +%endif %description This module lets you check your module's namespaces for imported functions you @@ -75,19 +87,26 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name .packlist -delete %{_fixperms} %{buildroot} %check make test %{!?perl_bootstrap:AUTOMATED_TESTING=1} %files -%license LICENSE +%license LICENCE %doc Changes CONTRIBUTING README %{perl_vendorlib}/Test/ %{_mandir}/man3/Test::CleanNamespaces.3* %changelog +* Fri Jun 17 2016 Paul Howarth - 0.19-1 +- Update to 0.19 + - Removed dependencies on namespace::clean, Sub::Exporter, File::Find::Rule +- Simplify find command using -delete +- Downgrade Role::Tiny dependency to Recommends: on Fedora +- BR: perl-generators where available + * Wed May 18 2016 Jitka Plesnikova - 0.18-7 - Perl 5.24 re-rebuild of bootstrapped packages diff --git a/sources b/sources index 6da0af0..91b773b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1d410cd60d6620a9d0b07bb4c23e8a44 Test-CleanNamespaces-0.18.tar.gz +6f8a8cc3e5c350cfcf2e768da0d364bb Test-CleanNamespaces-0.19.tar.gz