|
|
ca30f18 |
Summary: Load modules and create objects on demand
|
|
|
ca30f18 |
Name: perl-Class-Loader
|
|
|
ca30f18 |
Version: 2.03
|
|
|
d49c6e5 |
Release: 40%{?dist}
|
|
|
5b3919f |
License: GPL+ or Artistic
|
|
|
1e2db02 |
URL: https://metacpan.org/release/Class-Loader
|
|
|
1e2db02 |
Source0: https://cpan.metacpan.org/modules/by-module/Class/Class-Loader-%{version}.tar.gz
|
|
|
ca30f18 |
BuildArch: noarch
|
|
|
1e2db02 |
# Build
|
|
|
1e2db02 |
BuildRequires: coreutils
|
|
|
1e2db02 |
BuildRequires: findutils
|
|
|
1e2db02 |
BuildRequires: make
|
|
|
64ff5f8 |
BuildRequires: perl-generators
|
|
|
1e2db02 |
BuildRequires: perl-interpreter
|
|
|
7f31682 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
1e2db02 |
BuildRequires: sed
|
|
|
1e2db02 |
# Module
|
|
|
1e2db02 |
BuildRequires: perl(Data::Dumper)
|
|
|
1e2db02 |
BuildRequires: perl(vars)
|
|
|
1e2db02 |
# Test Suite
|
|
|
1e2db02 |
BuildRequires: perl(lib)
|
|
|
7f31682 |
BuildRequires: perl(Test)
|
|
|
1e2db02 |
# Dependencies
|
|
|
26a6357 |
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}
|
|
|
1e2db02 |
|
|
|
1e2db02 |
# Fix shellbangs
|
|
|
26a6357 |
sed -i -e '/^#! *\/usr\/bin\/perl /d' lib/Class/*.pm
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%build
|
|
|
26a6357 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
26a6357 |
make %{?_smp_mflags}
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%install
|
|
|
26a6357 |
make pure_install DESTDIR=%{buildroot}
|
|
|
1e2db02 |
find %{buildroot} -type f -name .packlist -delete
|
|
|
1e2db02 |
%{_fixperms} -c %{buildroot}
|
|
|
26a6357 |
|
|
|
26a6357 |
%check
|
|
|
26a6357 |
make test
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%files
|
|
|
1e2db02 |
%license ARTISTIC
|
|
|
1e2db02 |
%doc Changes
|
|
|
ca30f18 |
%{perl_vendorlib}/Class/
|
|
|
1e2db02 |
%{_mandir}/man3/Class::Loader.3*
|
|
|
ca30f18 |
|
|
|
ca30f18 |
%changelog
|
|
|
d49c6e5 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-40
|
|
|
d49c6e5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
d49c6e5 |
|
|
|
1e2db02 |
* Fri Jan 8 2021 Paul Howarth <paul@city-fan.org> - 2.03-39
|
|
|
1e2db02 |
- Spec clean-up
|
|
|
1e2db02 |
- Specify all dependencies
|
|
|
1e2db02 |
- Use author-independent source URL
|
|
|
1e2db02 |
- Drop redundant buildroot cleaning in %%install section
|
|
|
1e2db02 |
- Simplify find command using -delete
|
|
|
1e2db02 |
- Fix permissions verbosely
|
|
|
1e2db02 |
- Use %%license macro
|
|
|
1e2db02 |
|
|
|
d797eed |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-38
|
|
|
d797eed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
d797eed |
|
|
|
aeea190 |
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.03-37
|
|
|
aeea190 |
- Perl 5.32 rebuild
|
|
|
aeea190 |
|
|
|
ee4478a |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-36
|
|
|
ee4478a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
ee4478a |
|
|
|
59e5005 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-35
|
|
|
59e5005 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
59e5005 |
|
|
|
e52ff49 |
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.03-34
|
|
|
e52ff49 |
- Perl 5.30 rebuild
|
|
|
e52ff49 |
|
|
|
b4236e2 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-33
|
|
|
b4236e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
b4236e2 |
|
|
|
b90c398 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-32
|
|
|
b90c398 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
b90c398 |
|
|
|
cabe457 |
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.03-31
|
|
|
cabe457 |
- Perl 5.28 rebuild
|
|
|
cabe457 |
|
|
|
09bfb40 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-30
|
|
|
09bfb40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
09bfb40 |
|
|
|
7d24087 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-29
|
|
|
7d24087 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
7d24087 |
|
|
|
d0befa1 |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.03-28
|
|
|
d0befa1 |
- Perl 5.26 rebuild
|
|
|
d0befa1 |
|
|
|
81a6297 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-27
|
|
|
81a6297 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
81a6297 |
|
|
|
537fe7d |
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.03-26
|
|
|
537fe7d |
- Perl 5.24 rebuild
|
|
|
537fe7d |
|
|
|
40ea24b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.03-25
|
|
|
40ea24b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
40ea24b |
|
|
|
a000c3e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-24
|
|
|
a000c3e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a000c3e |
|
|
|
178a553 |
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.03-23
|
|
|
178a553 |
- Perl 5.22 rebuild
|
|
|
178a553 |
|
|
|
d903d97 |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.03-22
|
|
|
d903d97 |
- Perl 5.20 rebuild
|
|
|
d903d97 |
|
|
|
5cef242 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-21
|
|
|
5cef242 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
5cef242 |
|
|
|
db830de |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-20
|
|
|
db830de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
db830de |
|
|
|
035a47f |
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.03-19
|
|
|
035a47f |
- Perl 5.18 rebuild
|
|
|
035a47f |
|
|
|
7f31682 |
* Thu Feb 14 2013 Paul Howarth <paul@city-fan.org> 2.03-18
|
|
|
7f31682 |
- Don't need to remove empty directories from the buildroot
|
|
|
7f31682 |
- Drop %%defattr, redundant since rpm 4.4
|
|
|
7f31682 |
|
|
|
7f31682 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 2.03-17
|
|
|
92fa385 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
92fa385 |
|
|
|
7f31682 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 2.03-16
|
|
|
c775d7a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c775d7a |
|
|
|
7f31682 |
* Fri Jun 8 2012 Petr Pisar <ppisar@redhat.com> 2.03-15
|
|
|
41d92fc |
- Perl 5.16 rebuild
|
|
|
38c0a30 |
- Specify all dependencies
|
|
|
41d92fc |
|
|
|
26a6357 |
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> 2.03-14
|
|
|
26a6357 |
- Nobody else likes macros for commands
|
|
|
26a6357 |
|
|
|
26a6357 |
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> 2.03-13
|
|
|
f8ae430 |
- Perl mass rebuild
|
|
|
f8ae430 |
|
|
|
26a6357 |
* Tue Feb 8 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 2.03-12
|
|
|
5ca65df |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
5ca65df |
|
|
|
26a6357 |
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> 2.03-11
|
|
|
26a6357 |
- Rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
aa86556 |
|
|
|
26a6357 |
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> 2.03-10
|
|
|
75a5f8a |
- Mass rebuild with perl-5.12.0
|
|
|
75a5f8a |
|
|
|
26a6357 |
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> 2.03-9
|
|
|
26a6357 |
- Rebuild against perl 5.10.1
|
|
|
3957e9c |
|
|
|
26a6357 |
* 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 |
|
|
|
26a6357 |
* 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
|
|
|
26a6357 |
- 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
|