2010-08-31 23:41:23 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2011-12-21 09:42:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-MooseX-SimpleConfig
|
|
|
|
#
|
2013-09-12 21:34:09 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-12-21 09:42:01 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2010-06-14 20:16:52 +00:00
|
|
|
|
2011-12-21 09:42:01 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2013-09-12 21:34:09 +00:00
|
|
|
|
|
|
|
|
2010-06-14 20:16:52 +00:00
|
|
|
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
|
2011-12-21 09:42:01 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-06-14 20:16:52 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2011-12-21 09:42:01 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/MooseX-SimpleConfig-%{version}.tar.gz
|
|
|
|
Url: http://search.cpan.org/dist/MooseX-SimpleConfig
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 13:50:20 +00:00
|
|
|
%{perl_requires}
|
2011-12-21 09:42:01 +00:00
|
|
|
BuildRequires: make
|
2010-08-31 23:41:23 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:43:29 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-08-31 23:41:23 +00:00
|
|
|
BuildRequires: perl(Config::Any) >= 0.13
|
2011-12-21 09:42:01 +00:00
|
|
|
BuildRequires: perl(Config::General)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
2010-08-31 23:41:23 +00:00
|
|
|
BuildRequires: perl(Moose) >= 0.35
|
2011-12-21 09:42:01 +00:00
|
|
|
BuildRequires: perl(MooseX::ConfigFromFile) >= 0.02
|
2013-09-12 21:34:09 +00:00
|
|
|
BuildRequires: perl(Path::Class)
|
2011-12-21 09:42:01 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2013-09-12 21:34:09 +00:00
|
|
|
BuildRequires: perl(YAML::XS)
|
2010-08-31 23:41:23 +00:00
|
|
|
Requires: perl(Config::Any) >= 0.13
|
|
|
|
Requires: perl(Moose) >= 0.35
|
2013-09-12 21:34:09 +00:00
|
|
|
Requires: perl(MooseX::ConfigFromFile) >= 0.02
|
|
|
|
Requires: perl(Test::More) >= 0.88
|
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}
|
|
|
|
|
2011-12-21 09:42:01 +00:00
|
|
|
%changelog
|