1 | %define perl_bootstrap 1 |
---|
2 | |
---|
3 | Name: perl-Class-Load |
---|
4 | Version: 0.18 |
---|
5 | Release: 1%{?dist} |
---|
6 | Summary: A working (require "Class::Name") and more |
---|
7 | Group: Development/Libraries |
---|
8 | License: GPL+ or Artistic |
---|
9 | URL: http://search.cpan.org/dist/Class-Load/ |
---|
10 | Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Load-%{version}.tar.gz |
---|
11 | BuildArch: noarch |
---|
12 | # =================================================================== |
---|
13 | # Module build requirements |
---|
14 | # =================================================================== |
---|
15 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
16 | # =================================================================== |
---|
17 | # Module requirements |
---|
18 | # =================================================================== |
---|
19 | BuildRequires: perl(base) |
---|
20 | BuildRequires: perl(Carp) |
---|
21 | BuildRequires: perl(Data::OptList) |
---|
22 | BuildRequires: perl(Module::Implementation) >= 0.04 |
---|
23 | BuildRequires: perl(Module::Runtime) >= 0.012 |
---|
24 | BuildRequires: perl(Package::Stash) >= 0.14 |
---|
25 | BuildRequires: perl(strict) |
---|
26 | BuildRequires: perl(Try::Tiny) |
---|
27 | BuildRequires: perl(warnings) |
---|
28 | # =================================================================== |
---|
29 | # Regular test suite requirements |
---|
30 | # =================================================================== |
---|
31 | # Class::Load::XS -> Class::Load |
---|
32 | %if 0%{!?perl_bootstrap:1} |
---|
33 | BuildRequires: perl(Class::Load::XS) |
---|
34 | %endif |
---|
35 | BuildRequires: perl(Test::Fatal) |
---|
36 | BuildRequires: perl(Test::More) |
---|
37 | BuildRequires: perl(Test::Without::Module) |
---|
38 | BuildRequires: perl(version) |
---|
39 | # =================================================================== |
---|
40 | # Author/Release test requirements |
---|
41 | # =================================================================== |
---|
42 | # Pod::Coverage::Moose -> Moose -> Class::Load |
---|
43 | %if 0%{!?perl_bootstrap:1} |
---|
44 | BuildRequires: perl(Pod::Coverage::Moose) |
---|
45 | %endif |
---|
46 | BuildRequires: perl(Test::CPAN::Changes) |
---|
47 | BuildRequires: perl(Test::EOL) |
---|
48 | BuildRequires: perl(Test::NoTabs) |
---|
49 | BuildRequires: perl(Test::Pod) |
---|
50 | BuildRequires: perl(Test::Pod::Coverage) |
---|
51 | BuildRequires: perl(Test::Requires) |
---|
52 | BuildRequires: perl(Test::Spelling), aspell-en |
---|
53 | # =================================================================== |
---|
54 | # Runtime requirements |
---|
55 | # =================================================================== |
---|
56 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
57 | # Also requires core module perl(Exporter) via a "use base" construct |
---|
58 | |
---|
59 | %description |
---|
60 | require EXPR only accepts Class/Name.pm style module names, not Class::Name. |
---|
61 | How frustrating! For that, we provide load_class 'Class::Name'. |
---|
62 | |
---|
63 | It's often useful to test whether a module can be loaded, instead of throwing |
---|
64 | an error when it's not available. For that, we provide |
---|
65 | try_load_class 'Class::Name'. |
---|
66 | |
---|
67 | Finally, sometimes we need to know whether a particular class has been loaded. |
---|
68 | Asking %%INC is an option, but that will miss inner packages and any class for |
---|
69 | which the filename does not correspond to the package name. For that, we |
---|
70 | provide is_class_loaded 'Class::Name'. |
---|
71 | |
---|
72 | %prep |
---|
73 | %setup -q -n Class-Load-%{version} |
---|
74 | |
---|
75 | %build |
---|
76 | perl Makefile.PL INSTALLDIRS=vendor |
---|
77 | make %{?_smp_mflags} |
---|
78 | |
---|
79 | %install |
---|
80 | make pure_install DESTDIR=%{buildroot} |
---|
81 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
82 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
83 | %{_fixperms} %{buildroot} |
---|
84 | |
---|
85 | %check |
---|
86 | make test %{!?perl_bootstrap:RELEASE_TESTING=1} |
---|
87 | |
---|
88 | %files |
---|
89 | %doc Changes LICENSE README |
---|
90 | %{perl_vendorlib}/Class/ |
---|
91 | %{_mandir}/man3/Class::Load.3pm* |
---|
92 | |
---|
93 | %changelog |
---|
94 | * Sat Feb 18 2012 Paul Howarth <paul@city-fan.org> - 0.18-1 |
---|
95 | - Update to 0.18: |
---|
96 | - Require Package::Stash ≥ 0.14 (CPAN RT#75095) |
---|
97 | |
---|
98 | * Sun Feb 12 2012 Paul Howarth <paul@city-fan.org> - 0.17-1 |
---|
99 | - Update to 0.17: |
---|
100 | - Require Module::Runtime 0.012, which has a number of useful bug fixes |
---|
101 | - A bug in Class::Load caused test failures when Module::Runtime 0.012 was |
---|
102 | used with Perl 5.8.x (CPAN RT#74897) |
---|
103 | |
---|
104 | * Thu Feb 9 2012 Paul Howarth <paul@city-fan.org> - 0.15-1 |
---|
105 | - Update to 0.15: |
---|
106 | - Small test changes to accomodate latest version of Module::Implementation |
---|
107 | - BR: at least version 0.04 of perl(Module::Implementation) |
---|
108 | |
---|
109 | * Tue Feb 7 2012 Paul Howarth <paul@city-fan.org> - 0.14-1 |
---|
110 | - Update to 0.14: |
---|
111 | - Use Module::Implementation to handle loading the XS or PP versions of the |
---|
112 | code; using this module fixes a few bugs |
---|
113 | - Under taint mode, setting an implementation in the |
---|
114 | CLASS_LOAD_IMPLEMENTATION env var caused a taint error |
---|
115 | - An invalid value in the CLASS_LOAD_IMPLEMENTATION env var is now detected |
---|
116 | and reported immediately; no attempt is made to load an invalid |
---|
117 | implementation |
---|
118 | - BR: perl(Module::Implementation) |
---|
119 | - BR: perl(base), perl(Carp), perl(strict) and perl(warnings) for completeness |
---|
120 | - Drop version requirement for perl(Package::Stash), no longer present upstream |
---|
121 | - Drop explicit runtime dependencies, no longer needed |
---|
122 | - Don't BR: perl(Class::Load::XS) or perl(Pod::Coverage::Moose) if we're |
---|
123 | bootstrapping |
---|
124 | - Don't run the release tests when bootstrapping as the Pod coverage test will |
---|
125 | fail in the absence of Pod::Coverage::Moose |
---|
126 | |
---|
127 | * Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 0.13-2 |
---|
128 | - Fedora 17 mass rebuild |
---|
129 | |
---|
130 | * Thu Dec 22 2011 Paul Howarth <paul@city-fan.org> - 0.13-1 |
---|
131 | - Update to 0.13: |
---|
132 | - Fix some bugs with our use of Try::Tiny, which could cause warnings on some |
---|
133 | systems where Class::Load::XS wasn't installed (CPAN RT#72345) |
---|
134 | - BR: perl(Test::Without::Module) |
---|
135 | |
---|
136 | * Tue Oct 25 2011 Paul Howarth <paul@city-fan.org> - 0.12-1 |
---|
137 | - Update to 0.12: |
---|
138 | - Require Module::Runtime ≥ 0.011, which fixes problems with Catalyst under |
---|
139 | Perl 5.8 and 5.10 |
---|
140 | - Add versioned runtime dependencies for Module::Runtime and Package::Stash |
---|
141 | |
---|
142 | * Wed Oct 5 2011 Paul Howarth <paul@city-fan.org> - 0.11-1 |
---|
143 | - Update to 0.11: |
---|
144 | - Don't accept package names that start with a digit |
---|
145 | - Rewrite some of the guts to use Module::Runtime rather than reimplementing |
---|
146 | its functionality |
---|
147 | - BR: perl(Module::Runtime) ≥ 0.009 |
---|
148 | - Drop all support for older distributions as required module |
---|
149 | Module::Runtime ≥ 0.009 will not be available prior to F-16 |
---|
150 | |
---|
151 | * Tue Sep 6 2011 Paul Howarth <paul@city-fan.org> - 0.10-1 |
---|
152 | - Update to 0.10: |
---|
153 | - Fix is_class_loaded to ignore $ISA (but still look for @ISA) when trying to |
---|
154 | determine whether a class is loaded |
---|
155 | - Lots of internals cleanup |
---|
156 | - BR: perl(Package::Stash) ≥ 0.32 and perl(Try::Tiny) |
---|
157 | - Update patches to apply cleanly |
---|
158 | |
---|
159 | * Tue Aug 16 2011 Paul Howarth <paul@city-fan.org> - 0.08-1 |
---|
160 | - Update to 0.08: |
---|
161 | - The previous version was missing a prereq declaration for Data::OptList |
---|
162 | (CPAN RT#70285) |
---|
163 | - This release by DROLSKY -> update source URL |
---|
164 | - Package new documentation: LICENSE and README |
---|
165 | - Add build requirements for new release tests and run them: |
---|
166 | - perl(Pod::Coverage::Moose) |
---|
167 | - perl(Test::CPAN::Changes) |
---|
168 | - perl(Test::EOL) |
---|
169 | - perl(Test::NoTabs) |
---|
170 | - perl(Test::Pod) |
---|
171 | - perl(Test::Pod::Coverage) |
---|
172 | - perl(Test::Requires) |
---|
173 | - perl(Test::Spelling) and aspell-en |
---|
174 | - Add patch for building with ExtUtils::MakeMaker < 6.30 |
---|
175 | - Add patch for building with Test::More < 0.88 |
---|
176 | - Add patch for building without Test::Requires |
---|
177 | - Add patch for fixing spell checker word list |
---|
178 | - Don't try to run the POD Coverage test if we don't have Pod::Coverage::Moose |
---|
179 | |
---|
180 | * Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-5 |
---|
181 | - Perl mass rebuild |
---|
182 | |
---|
183 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-4 |
---|
184 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
185 | |
---|
186 | * Tue Dec 21 2010 Paul Howarth <paul@city-fan.org> - 0.06-3 |
---|
187 | - Drop explicit dependency on core module perl(Exporter) (#656408) |
---|
188 | |
---|
189 | * Tue Nov 23 2010 Paul Howarth <paul@city-fan.org> - 0.06-2 |
---|
190 | - Sanitize spec for Fedora submission |
---|
191 | |
---|
192 | * Mon Nov 22 2010 Paul Howarth <paul@city-fan.org> - 0.06-1 |
---|
193 | - Initial RPM version |
---|