|
|
ca30f18 |
Summary: Load modules and create objects on demand
|
|
|
ca30f18 |
Name: perl-Class-Loader
|
|
|
ca30f18 |
Version: 2.03
|
|
|
2b741c3 |
Release: 8%{?dist}
|
|
|
5b3919f |
License: GPL+ or Artistic
|
|
|
ca30f18 |
Group: Development/Libraries
|
|
|
ca30f18 |
Url: http://search.cpan.org/dist/Class-Loader/
|
|
|
ca30f18 |
Source0: http://search.cpan.org/CPAN/authors/id/V/VI/VIPUL/Class-Loader-%{version}.tar.gz
|
|
|
ca30f18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
ca30f18 |
BuildArch: noarch
|
|
|
351cdc8 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
e730c88 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%description
|
|
|
ca30f18 |
Certain applications like to defer the decision to use a particular module till
|
|
|
ca30f18 |
runtime. This is possible in perl, and is a useful trick in situations where
|
|
|
ca30f18 |
the type of data is not known at compile time and the application doesn't wish
|
|
|
ca30f18 |
to pre-compile modules to handle all types of data it can work with. Loading
|
|
|
ca30f18 |
modules at runtime can also provide flexible interfaces for perl modules.
|
|
|
ca30f18 |
Modules can let the programmer decide what modules will be used by it instead
|
|
|
ca30f18 |
of hard-coding their names.
|
|
|
ca30f18 |
|
|
|
ca30f18 |
Class::Loader is an inheritable class that provides a method, _load(), to load
|
|
|
ca30f18 |
a module from disk and construct an object by calling its constructor. It also
|
|
|
ca30f18 |
provides a way to map modules' names and associated metadata with symbolic
|
|
|
ca30f18 |
names that can be used in place of module names at _load().
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%prep
|
|
|
ca30f18 |
%setup -q -n Class-Loader-%{version}
|
|
|
ca30f18 |
%{__sed} -i -e '/^#! *\/usr\/bin\/perl /d' lib/Class/*.pm
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%build
|
|
|
ca30f18 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
ca30f18 |
%{__make} %{?_smp_mflags}
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%check
|
|
|
ca30f18 |
%{__make} test
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%install
|
|
|
ca30f18 |
%{__rm} -rf %{buildroot}
|
|
|
ca30f18 |
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
|
ca30f18 |
/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
|
|
|
e730c88 |
/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
|
|
|
e730c88 |
%{__chmod} -R u+w %{buildroot}
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%clean
|
|
|
ca30f18 |
%{__rm} -rf %{buildroot}
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%files
|
|
|
1d1b2e3 |
%defattr(-,root,root,-)
|
|
|
ca30f18 |
%doc ARTISTIC Changes
|
|
|
ca30f18 |
%{perl_vendorlib}/Class/
|
|
|
ca30f18 |
%{_mandir}/man3/Class::Loader.3pm*
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%changelog
|
|
|
e730c88 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 2.03-8
|
|
|
2b741c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
2b741c3 |
|
|
|
e730c88 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 2.03-7
|
|
|
d1e61c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
d1e61c1 |
|
|
|
5922aab |
* Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.03-6
|
|
|
e730c88 |
- Rebuild for new perl
|
|
|
5922aab |
|
|
|
5b3919f |
* Fri Aug 10 2007 Paul Howarth <paul@city-fan.org> 2.03-5
|
|
|
5b3919f |
- Clarify license as GPL v1 or later, or Artistic (same as perl)
|
|
|
5b3919f |
|
|
|
351cdc8 |
* Wed Apr 18 2007 Paul Howarth <paul@city-fan.org> 2.03-4
|
|
|
351cdc8 |
- Buildrequire perl(ExtUtils::MakeMaker)
|
|
|
1d1b2e3 |
- Fix argument order for find with -depth
|
|
|
1d1b2e3 |
|
|
|
facf192 |
* Tue Aug 29 2006 Paul Howarth <paul@city-fan.org> 2.03-3
|
|
|
facf192 |
- FE6 mass rebuild
|
|
|
facf192 |
|
|
|
16e8154 |
* Wed Feb 15 2006 Paul Howarth <paul@city-fan.org> 2.03-2
|
|
|
16e8154 |
- Rebuild for perl 5.8.8 (FC5)
|
|
|
16e8154 |
|
|
|
ca30f18 |
* Mon Dec 5 2005 Paul Howarth <paul@city-fan.org> 2.03-1
|
|
|
ca30f18 |
- Initial build
|