rpms/perl-Class-Loader/devel perl-Class-Loader.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Paul Howarth (pghmcfc) fedora-extras-commits at redhat.com
Wed Feb 1 08:18:44 UTC 2006


Author: pghmcfc

Update of /cvs/extras/rpms/perl-Class-Loader/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16405/devel

Modified Files:
	.cvsignore sources 
Added Files:
	perl-Class-Loader.spec 
Log Message:
auto-import perl-Class-Loader-2.03-1 on branch devel from perl-Class-Loader-2.03-1.src.rpm


--- NEW FILE perl-Class-Loader.spec ---
Summary:	Load modules and create objects on demand
Name:		perl-Class-Loader
Version:	2.03
Release:	1%{?dist}
License:	GPL or Artistic
Group:		Development/Libraries
Url:		http://search.cpan.org/dist/Class-Loader/
Source0:	http://search.cpan.org/CPAN/authors/id/V/VI/VIPUL/Class-Loader-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch:	noarch

%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().

%prep
%setup -q -n Class-Loader-%{version}
%{__sed} -i -e '/^#! *\/usr\/bin\/perl /d' lib/Class/*.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
/usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';'
%{__chmod} -R u+w %{buildroot}/*

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%doc ARTISTIC Changes
%{perl_vendorlib}/Class/
%{_mandir}/man3/Class::Loader.3pm*

%changelog
* Mon Dec  5 2005 Paul Howarth <paul at city-fan.org> 2.03-1
- Initial build


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-Class-Loader/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Feb 2006 08:16:29 -0000	1.1
+++ .cvsignore	1 Feb 2006 08:18:44 -0000	1.2
@@ -0,0 +1 @@
+Class-Loader-2.03.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-Class-Loader/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Feb 2006 08:16:29 -0000	1.1
+++ sources	1 Feb 2006 08:18:44 -0000	1.2
@@ -0,0 +1 @@
+2e2ace3429380e2dad2f0e82137511b8  Class-Loader-2.03.tar.gz




More information about the fedora-extras-commits mailing list