3 %bcond_without tests # do not perform "make test"
7 Summary: Class::WhiteHole - prevent from inheriting AUTOLOAD
8 Summary(pl.UTF-8): Class::WhiteHole - ochrona przed dziedziczeniem AUTOLOAD
9 Name: perl-Class-WhiteHole
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 43b986ad7d5d186a9a43d2d69a2ef327
17 URL: http://search.cpan.org/dist/Class-WhiteHole/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Its possible to accidentally inherit an AUTOLOAD method. Often this
25 will happen if a class somewhere in the chain uses AutoLoader or
26 defines one of their own. This can lead to confusing error messages
27 when method lookups fail.
29 Sometimes you want to avoid this accidental inheritance. In that case,
30 inherit from Class::WhiteHole. All unhandled methods will produce
31 normal Perl error messages.
33 %description -l pl.UTF-8
34 Istnieje możliwość przypadkowego odziedziczenia metody AUTOLOAD.
35 Często zdarzy się to, gdy jedna z łańcucha klas stosuje AutoLoader lub
36 definiuje własną. Może to spowodować dziwne komunikaty błędów, gdy
37 odszukanie metody nie powiedzie się.
39 Czasami chcesz uniknąć przypadkowego dziedziczenia. W takim wypadku,
40 odziedzicz po Class::WhiteHole. Każde wywołanie nieistniejącej metody
41 spowoduje zwyczajną informację o błędzie Perla.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %{perl_vendorlib}/%{pdir}/*.pm