2010-08-31 23:41:23 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2010-06-14 20:16:52 +00:00
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-MooseX-SimpleConfig
|
2010-08-31 23:41:23 +00:00
|
|
|
Version: 0.09
|
2010-06-14 20:16:52 +00:00
|
|
|
Release: 0
|
2010-08-31 23:41:23 +00:00
|
|
|
Summary: A Moose role for setting attributes from a simple configfile
|
2010-06-14 20:16:52 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/MooseX-SimpleConfig-%{version}.tar.gz
|
2010-08-31 23:41:23 +00:00
|
|
|
URL: http://search.cpan.org/dist/MooseX-SimpleConfig
|
2010-06-14 20:16:52 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-12-01 13:50:20 +00:00
|
|
|
%{perl_requires}
|
2010-08-31 23:41:23 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(MooseX::ConfigFromFile) >= 0.02
|
|
|
|
BuildRequires: perl(Config::Any) >= 0.13
|
|
|
|
BuildRequires: perl(Moose) >= 0.35
|
|
|
|
BuildRequires: perl(YAML)
|
|
|
|
BuildRequires: perl(Config::General)
|
|
|
|
Requires: perl(Test::More) >= 0.88
|
|
|
|
Requires: perl(MooseX::ConfigFromFile) >= 0.02
|
|
|
|
Requires: perl(Config::Any) >= 0.13
|
|
|
|
Requires: perl(Moose) >= 0.35
|
2010-06-14 20:16:52 +00:00
|
|
|
|
|
|
|
%description
|
2010-08-31 23:41:23 +00:00
|
|
|
This role loads simple configfiles to set object attributes. It is based
|
|
|
|
on the abstract role MooseX::ConfigFromFile, and uses Config::Any to load
|
|
|
|
your configfile. Config::Any will in turn support any of a variety of
|
|
|
|
different config formats, detected by the file extension. See Config::Any
|
|
|
|
for more details about supported formats.
|
|
|
|
Like all MooseX::ConfigFromFile -derived configfile loaders, this module
|
|
|
|
is automatically supported by the MooseX::Getopt role as well, which
|
|
|
|
allows specifying "-configfile" on the commandline.
|
2010-06-14 20:16:52 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "MooseX-SimpleConfig-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
2010-08-31 23:41:23 +00:00
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
2010-06-14 20:16:52 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog README
|
|
|
|
%dir %{perl_vendorlib}/MooseX
|
|
|
|
%{perl_vendorlib}/MooseX/SimpleConfig.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/MooseX
|
|
|
|
%{perl_vendorarch}/auto/MooseX/SimpleConfig
|
|
|
|
%doc %{perl_man3dir}/MooseX::SimpleConfig.%{perl_man3ext}%{ext_man}
|
|
|
|
|