[perl-MooseX-ConfigFromFile] Update to 0.13
Paul Howarth
pghmcfc at fedoraproject.org
Mon Mar 31 13:28:05 UTC 2014
commit e0ca4c194f3d0d9487a7c86c50d151e4f47ebb26
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Mar 28 10:41:39 2014 +0000
Update to 0.13
- New upstream release 0.13
- Documentation corrected to demostrate how to properly override the
configfile method to provide a default from the consuming class, without
having to redefine the attribute itself
- If MooseX::Getopt is installed, the configfile attribute has the Getopt
trait applied
- The configfile attribute is now a Path::Tiny, not a Path::Class (coercions
from strings are still supported, and now also from any other type that has
a string coercion)
- Allow configfiles called "0"
- configfile value now passed through to new()
- New _get_default_configfile method added, which consumers can override to
provide a default value without having to redefine the attribute itself
(via CPAN RT#79746) - PLEASE READ THE DOCUMENTATION if you override the
configfile attribute!
- Allow clean composition into a role, without requiring an -exclude
- Bump prereq version for MooseX::Types::Path::Tiny to ensure a broken
version is not installed
- Warnings tests bypassed during installation
- Repository migrated from shadowcat to the github moose organization
- This release by ETHER -> update source URL
- Switch to Module::Build::Tiny flow
- Classify buildreqs by usage
- Package upstream's CONTRIBUTING, LICENSE and README.md files
.gitignore | 4 +-
perl-MooseX-ConfigFromFile.spec | 92 ++++++++++++++++++++++++++++-----------
sources | 2 +-
3 files changed, 69 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 870b00b..1781fa0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-MooseX-ConfigFromFile-0.02.tar.gz
-/MooseX-ConfigFromFile-0.03.tar.gz
-/MooseX-ConfigFromFile-0.04.tar.gz
+/MooseX-ConfigFromFile-[0-9.]*.tar.gz
diff --git a/perl-MooseX-ConfigFromFile.spec b/perl-MooseX-ConfigFromFile.spec
index 38ab1aa..4e7cec3 100644
--- a/perl-MooseX-ConfigFromFile.spec
+++ b/perl-MooseX-ConfigFromFile.spec
@@ -1,22 +1,42 @@
Name: perl-MooseX-ConfigFromFile
-Version: 0.04
-Release: 7%{?dist}
-# see lib/MooseX/ConfigFromFile.pm
+Version: 0.13
+Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Summary: An abstract Moose role for setting attributes from a configfile
-Source: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/MooseX-ConfigFromFile-%{version}.tar.gz
+Source: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/MooseX-ConfigFromFile-%{version}.tar.gz
Url: http://search.cpan.org/dist/MooseX-ConfigFromFile
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
-
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(Moose) >= 0.35
-BuildRequires: perl(MooseX::Types::Path::Class) >= 0.04
-BuildRequires: perl(Test::Fatal)
-BuildRequires: perl(Test::More) >= 0.42
-BuildRequires: perl(Try::Tiny)
-BuildRequires: perl(namespace::autoclean)
+# Module Build
+BuildRequires: perl
+BuildRequires: perl(Module::Build::Tiny) >= 0.030
+# Module Runtime
+BuildRequires: perl(Carp)
+BuildRequires: perl(Moose::Role)
+BuildRequires: perl(MooseX::Types::Moose)
+BuildRequires: perl(MooseX::Types::Path::Tiny) >= 0.005
+BuildRequires: perl(namespace::autoclean)
+BuildRequires: perl(warnings)
+# Test Suite
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(File::Spec::Functions)
+BuildRequires: perl(if)
+BuildRequires: perl(List::Util)
+BuildRequires: perl(Moose)
+BuildRequires: perl(Scalar::Util)
+BuildRequires: perl(strict)
+BuildRequires: perl(Test::Deep)
+BuildRequires: perl(Test::Fatal)
+BuildRequires: perl(Test::More) >= 0.88
+BuildRequires: perl(Test::Requires)
+BuildRequires: perl(Test::Without::Module)
+# Optional Test Requirements
+BuildRequires: perl(CPAN::Meta)
+BuildRequires: perl(CPAN::Meta::Requirements)
+BuildRequires: perl(MooseX::Getopt)
+BuildRequires: perl(MooseX::SimpleConfig)
+# Runtime
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%{?perl_default_filter}
@@ -30,32 +50,54 @@ It declares an attribute 'configfile' and a class method 'new_with_config',
and requires that concrete roles derived from it implement the class method
'get_config_from_file'.
-Attributes specified directly as arguments to 'new_with_config' supercede
+Attributes specified directly as arguments to 'new_with_config' supersede
those in the configfile.
%prep
%setup -q -n MooseX-ConfigFromFile-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+perl Build.PL --installdirs=vendor
+./Build
%install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
-
-%{_fixperms} %{buildroot}/*
+./Build install --destdir=%{buildroot} --create_packlist=0
%check
-make test
+./Build test
%files
-%doc ChangeLog README t/
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%doc Changes CONTRIBUTING LICENSE README README.md t/
+%{perl_vendorlib}/MooseX/
+%{_mandir}/man3/MooseX::ConfigFromFile.3*
%changelog
+* Wed Mar 26 2014 Paul Howarth <paul at city-fan.org> - 0.13-1
+- Update to 0.13
+ - Documentation corrected to demostrate how to properly override the
+ configfile method to provide a default from the consuming class, without
+ having to redefine the attribute itself
+ - If MooseX::Getopt is installed, the configfile attribute has the Getopt
+ trait applied
+ - The configfile attribute is now a Path::Tiny, not a Path::Class (coercions
+ from strings are still supported, and now also from any other type that has
+ a string coercion)
+ - Allow configfiles called "0"
+ - configfile value now passed through to new()
+ - New _get_default_configfile method added, which consumers can override to
+ provide a default value without having to redefine the attribute itself
+ (via CPAN RT#79746) - PLEASE READ THE DOCUMENTATION if you override the
+ configfile attribute!
+ - Allow clean composition into a role, without requiring an -exclude
+ - Bump prereq version for MooseX::Types::Path::Tiny to ensure a broken
+ version is not installed
+ - Warnings tests bypassed during installation
+ - Repository migrated from shadowcat to the github moose organization
+- This release by ETHER -> update source URL
+- Switch to Module::Build::Tiny flow
+- Classify buildreqs by usage
+- Package upstream's CONTRIBUTING, LICENSE and README.md files
+
* Sun Aug 04 2013 Petr Pisar <ppisar at redhat.com> - 0.04-7
- Perl 5.18 rebuild
diff --git a/sources b/sources
index 622a0d5..eb58954 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d473a4379f05f8ea8f7aeac1b1662d2a MooseX-ConfigFromFile-0.04.tar.gz
+0912c7b626e2fd5088979b8223d58092 MooseX-ConfigFromFile-0.13.tar.gz
More information about the perl-devel
mailing list