Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mpavuk:bz-modules
perl-Class-Loader
perl-Class-Loader.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Class-Loader.spec of Package perl-Class-Loader
# # spec file for package perl-Class-Loader # # 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/ # %define modname Class-Loader Name: perl-%{modname} Version: 2.03 Release: 1 Summary: Load modules and create objects on demand BuildRequires: perl BuildRequires: perl-macros License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl Source: %{modname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} %description Certain applications like to defer the decision to use a particular module till runtime. This is possible in perl, and is a useful trick in situations where the type of data is not known at compile time and the application doesn't wish to pre-compile modules to handle all types of data it can work with. Loading modules at runtime can also provide flexible interfaces for perl modules. Modules can let the programmer decide what modules will be used by it instead of hard-coding their names. Class::Loader is an inheritable class that provides a method, _load(), to load a module from disk and construct an object by calling its constructor. It also provides a way to map modules names and associated metadata with symbolic names that can be used in place of module names at _load(). Authors: -------- Vipul Ved Prakash <mail@vipul.net> %prep %setup -q -n %{modname}-%{version} %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make make test %install rm -rf %{buildroot} make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc ARTISTIC Changes %doc %{_mandir}/man?/* %{perl_vendorlib}/Class %{perl_vendorarch}/auto/Class %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