OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-Loader?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
a8c71e1eab
commit
41c02e707c
59
perl-Class-Loader.spec
Normal file
59
perl-Class-Loader.spec
Normal file
@@ -0,0 +1,59 @@
|
||||
%define modname Class-Loader
|
||||
Name: perl-%{modname}
|
||||
Version: 2.03
|
||||
Release: 1
|
||||
Summary: Load modules and create objects on demand
|
||||
Requires: perl = %{perl_version}
|
||||
BuildRequires: perl
|
||||
License: GPL/Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Source: %{modname}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
|
||||
%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/Loader.pm
|
||||
%{perl_vendorlib}/Class/LoaderTest.pm
|
||||
%{perl_vendorarch}/auto/Class/Loader
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
%changelog
|
||||
|
||||
* Tue Sep 12 2006 - James Oakley <jfunk@funktronics.ca> - 2.03-1
|
||||
- Initial release
|
||||
Reference in New Issue
Block a user