Name: perl-Class-Loader Version: 2.02 Release: 2mdk License: Artistic %define realname Class-Loader Group: Development/Perl Summary: Load modules and create objects on demand Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Class/%{realname}-%{version}.tar.bz2 Url: http://www.cpan.org Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: perl-devel Requires: perl BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-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. %prep %setup -q -n %{realname}-%{version} %build CFLAGS="$RPM_OPT_FLAGS" echo | %{__perl} Makefile.PL INSTALLDIRS=vendor %make make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{perl_vendorlib}/Class %{_mandir}/*/* %changelog * Mon Feb 23 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.02-2mdk - rebuild - own dirs * Thu Nov 6 2003 Arnaud de Lorbeau <adelorbeau@mandrakesoft.com> 2.02-1mdk - New package