Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
perl-MooseX-ConfigFromFile
perl-MooseX-ConfigFromFile.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-MooseX-ConfigFromFile.spec of Package perl-MooseX-ConfigFromFile
# # spec file for package perl-MooseX-ConfigFromFile # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-MooseX-ConfigFromFile Version: 0.03 Release: 0 %define cpan_name MooseX-ConfigFromFile Summary: An abstract Moose role for setting attributes from a configfile License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/MooseX-ConfigFromFile/ #Source: http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-0.04.tar.gz Source: MooseX-ConfigFromFile-0.03.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Moose) >= 0.35 BuildRequires: perl(MooseX::Types::Path::Class) >= 0.04 BuildRequires: perl(Test::Fatal) BuildRequires: perl(Try::Tiny) BuildRequires: perl(namespace::autoclean) #BuildRequires: perl(A) #BuildRequires: perl(inc::Module::Install) >= 0.75 #BuildRequires: perl(JSON) #BuildRequires: perl(LWP::Simple) #BuildRequires: perl(Module::Build) #BuildRequires: perl(Module::Install::Base) #BuildRequires: perl(Moose::Role) #BuildRequires: perl(MooseX::ConfigFromFile) #BuildRequires: perl(Parse::CPAN::Meta) #BuildRequires: perl(YAML::Tiny) Requires: perl(Moose) >= 0.35 Requires: perl(MooseX::Types::Path::Class) >= 0.04 Requires: perl(namespace::autoclean) Requires: perl(Try::Tiny) %{perl_requires} %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' supercede those in the configfile. the MooseX::Getopt manpage knows about this abstract role, and will use it if available to load attributes from the file specified by the commandline flag '--configfile' during its normal 'new_with_options'. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc ChangeLog README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor