]>
Commit | Line | Data |
---|---|---|
0b609129 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
abeecf1c | 4 | |
d59771d9 | 5 | %define pdir Class |
6 | %define pnam WhiteHole | |
abeecf1c | 7 | %include /usr/lib/rpm/macros.perl |
85eef790 | 8 | Summary: Class::WhiteHole - prevent from inheriting AUTOLOAD |
6d17158e | 9 | Summary(pl.UTF-8): Class::WhiteHole - ochrona przed dziedziczeniem AUTOLOAD |
f97423a5 | 10 | Name: perl-Class-WhiteHole |
4ce2de5d | 11 | Version: 0.04 |
f1580083 | 12 | Release: 2 |
dd96bbd5 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
f97423a5 | 15 | Group: Development/Languages/Perl |
7dc634aa | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
4ce2de5d | 17 | # Source0-md5: 43b986ad7d5d186a9a43d2d69a2ef327 |
abeecf1c | 18 | URL: http://search.cpan.org/dist/Class-WhiteHole/ |
0df59bdf | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
ec3bf42a | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
f97423a5 | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
abeecf1c ER |
25 | Its possible to accidentally inherit an AUTOLOAD method. Often this |
26 | will happen if a class somewhere in the chain uses AutoLoader or | |
27 | defines one of their own. This can lead to confusing error messages | |
28 | when method lookups fail. | |
f97423a5 | 29 | |
abeecf1c ER |
30 | Sometimes you want to avoid this accidental inheritance. In that case, |
31 | inherit from Class::WhiteHole. All unhandled methods will produce | |
32 | normal Perl error messages. | |
f97423a5 | 33 | |
a2e80021 | 34 | %description -l pl.UTF-8 |
abeecf1c ER |
35 | Istnieje możliwość przypadkowego odziedziczenia metody AUTOLOAD. |
36 | Często zdarzy się to, gdy jedna z łańcucha klas stosuje AutoLoader lub | |
37 | definiuje własną. Może to spowodować dziwne komunikaty błędów, gdy | |
38 | odszukanie metody nie powiedzie się. | |
f97423a5 | 39 | |
abeecf1c ER |
40 | Czasami chcesz uniknąć przypadkowego dziedziczenia. W takim wypadku, |
41 | odziedzicz po Class::WhiteHole. Każde wywołanie nieistniejącej metody | |
a2e80021 | 42 | spowoduje zwyczajną informację o błędzie Perla. |
f97423a5 | 43 | |
f97423a5 | 44 | %prep |
45 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
46 | ||
47 | %build | |
ec3bf42a | 48 | %{__perl} Makefile.PL \ |
4db0e2fa | 49 | INSTALLDIRS=vendor |
f97423a5 | 50 | %{__make} |
0b609129 | 51 | |
52 | %{?with_tests:%{__make} test} | |
f97423a5 | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
0874a2ca | 56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
f97423a5 | 58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
ec3bf42a | 64 | %{perl_vendorlib}/%{pdir}/*.pm |
f97423a5 | 65 | %{_mandir}/man3/* |