Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Class-Factory
perl-Class-Factory.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Class-Factory.spec of Package perl-Class-Factory
# # spec file for package perl-Class-Factory (Version 1.06) # # Copyright (c) 2009 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/ # # norootforbuild Name: perl-Class-Factory %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: Base class for dynamic factory classes Version: 1.06 Release: 1 License: artistic Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Class-Factory Source0: %{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: perl BuildRequires: perl-macros #BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) >= 0.62 Provides: %{cpan_name} %description This is a simple module that factory classes can use to generate new types of objects on the fly, providing a consistent interface to common groups of objects. Factory classes are used when you have different implementations for the same set of tasks but may not know in advance what implementations you will be using. Configuration files are a good example of this. There are four basic operations you would want to do with any configuration: read the file in, lookup a value, set a value, write the file out. There are also many different types of configuration files, and you may want users to be able to provide an implementation for their own home-grown configuration format. Authors: Fred Moyer <fred@redhotpenguin.com> is the current maintainer. Chris Winters <chris@cwinters.com> Eric Andreychek <eric@openthought.net> implemented overridable log/error capability and prodded the module into a simpler design. Srdjan Jankovic <srdjan@catalyst.net.nz> contributed the idea for 'get_my_factory()' and 'get_my_factory_type()' Sebastian Knapp <giftnuss@netscape.net> contributed the idea for 'get_registered_class()' Marcel Gruenauer <marcel@cpan.org> contributed the methods 'remove_factory_type()' and 'unregister_factory_type()'. %prep %setup -q -n %{cpan_name}-%{version} %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" %{__make} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf $RPM_BUILD_ROOT %files -f %{name}.files # normally you only need to check for doc files %defattr(-,root,root) %doc Changes README %changelog * Sun Feb 03 2008 - rpm@scorpio-it.net - 1.06 - first run
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