Name: perl-MooseX-ConfigFromFile Version: 0.14 Release: 8%{?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/E/ET/ETHER/MooseX-ConfigFromFile-%{version}.tar.gz Url: http://search.cpan.org/dist/MooseX-ConfigFromFile BuildArch: noarch # Module Build BuildRequires: perl-interpreter BuildRequires: perl-generators 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::Pod::Coverage) 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) # MooseX::SimpleConfig requires MooseX::ConfigFromFile %if 0%{!?perl_bootstrap:1} BuildRequires: perl(MooseX::SimpleConfig) %endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %{?perl_default_filter} %description This is an abstract role which provides an alternate constructor for creating objects using parameters passed in from a configuration file. The actual implementation of reading the configuration file is left to concrete subroles. 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' supersede those in the configfile. %prep %setup -q -n MooseX-ConfigFromFile-%{version} sed -i '1s,#!perl,#!%{__perl},' t/*.t %build perl Build.PL --installdirs=vendor ./Build %install ./Build install --destdir=%{buildroot} --create_packlist=0 %check ./Build test %files %doc Changes CONTRIBUTING README t/ %license LICENSE %{perl_vendorlib}/MooseX/ %{_mandir}/man3/MooseX::ConfigFromFile.3* %changelog * Thu Jul 27 2017 Fedora Release Engineering - 0.14-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jun 07 2017 Jitka Plesnikova - 0.14-7 - Perl 5.26 re-rebuild of bootstrapped packages * Tue Jun 06 2017 Jitka Plesnikova - 0.14-6 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.14-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed May 18 2016 Jitka Plesnikova - 0.14-4 - Perl 5.24 re-rebuild of bootstrapped packages * Mon May 16 2016 Jitka Plesnikova - 0.14-3 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Aug 19 2015 Emmanuel Seyman - 0.14-1 - Update to 0.14 * Thu Jun 18 2015 Fedora Release Engineering - 0.13-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 10 2015 Jitka Plesnikova - 0.13-7 - Perl 5.22 re-rebuild of bootstrapped packages * Mon Jun 08 2015 Jitka Plesnikova - 0.13-6 - Perl 5.22 rebuild * Sun Sep 07 2014 Jitka Plesnikova - 0.13-5 - Perl 5.20 re-rebuild of bootstrapped packages * Mon Sep 01 2014 Jitka Plesnikova - 0.13-4 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Apr 8 2014 Paul Howarth - 0.13-2 - Don't BR: perl(MooseX::SimpleConfig) when bootstrapping * Wed Mar 26 2014 Paul Howarth - 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 - 0.04-7 - Perl 5.18 rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.04-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.04-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.04-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 22 2012 Petr Pisar - 0.04-3 - Perl 5.16 rebuild * Tue Jan 17 2012 Iain Arnell - 0.04-2 - rebuilt again for F17 mass rebuild * Fri Jan 13 2012 Iain Arnell 0.04-1 - update to latest upstream version * Fri Jan 13 2012 Fedora Release Engineering - 0.03-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Jul 20 2011 Petr Sabata - 0.03-2 - Perl mass rebuild * Sun Mar 06 2011 Iain Arnell 0.03-1 - update to latest upstream version - clean up spec for modern rpmbuild - use perl_default_filter * Tue Feb 08 2011 Fedora Release Engineering - 0.02-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Marcela Maslanova - 0.02-6 - 661697 rebuild for fixing problems with vendorach/lib * Mon May 03 2010 Marcela Maslanova - 0.02-5 - Mass rebuild with perl-5.12.0 * Fri Dec 4 2009 Stepan Kasal - 0.02-4 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering - 0.02-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.02-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Nov 05 2008 Chris Weyl 0.02-1 - brush up for submission * Mon Oct 27 2008 Chris Weyl 0.02-0.1 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)