forked from pool/perl-MooseX-SimpleConfig
63 lines
1.9 KiB
RPMSpec
63 lines
1.9 KiB
RPMSpec
![]() |
# norootforbuild
|
||
|
|
||
|
Name: perl-MooseX-SimpleConfig
|
||
|
Version: 0.07
|
||
|
Release: 0
|
||
|
Summary: Moose Role for Setting Attributes from a Simple Config File
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/MooseX-SimpleConfig-%{version}.tar.gz
|
||
|
URL: http://search.cpan.org/dist/MooseX-SimpleConfig/
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
Requires: perl
|
||
|
Requires: perl(Moose)
|
||
|
Requires: perl(Config::Any)
|
||
|
Requires: perl(MooseX::ConfigFromFile)
|
||
|
BuildRequires: make perl
|
||
|
BuildRequires: perl(Test::More)
|
||
|
BuildRequires: perl(Moose)
|
||
|
BuildRequires: perl(Config::Any)
|
||
|
BuildRequires: perl(MooseX::ConfigFromFile)
|
||
|
|
||
|
%description
|
||
|
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.
|
||
|
|
||
|
%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
|
||
|
%__rm -rf "%{buildroot}"
|
||
|
|
||
|
%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}
|
||
|
/var/adm/perl-modules/%{name}
|
||
|
|
||
|
%changelog
|
||
|
# vim: set sw=4 ts=4 et nu:
|