%include /usr/lib/rpm/macros.perl %define pdir Class %define pnam WhiteHole Summary: %{pdir}::%{pnam} - prevent from inheriting AUTOLOAD Summary(pl): %{pdir}::%{pnam} - ochrona przed dziedziczeniem AUTOLOAD Name: perl-Class-WhiteHole Version: 0.03 Release: 2 License: GPL/Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: c14e55c571adbf1cd181aae61d99ab9e BuildRequires: perl-devel >= 5 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Its possible to accidentally inherit an AUTOLOAD method. Often this will happen if a class somewhere in the chain uses AutoLoader or defines one of their own. This can lead to confusing error messages when method lookups fail. Sometimes you want to avoid this accidental inheritance. In that case, inherit from Class::WhiteHole. All unhandled methods will produce normal Perl error messages. %description -l pl Istnieje możliwość przypadkowego odziedziczenia metody AUTOLOAD. Często zdarzy się to, gdy jedna z łańcucha klas stosuje AutoLoader lub definiuje własną. Może to spowodować dziwne komunikaty błędów, gdy odszukanie metody nie powiedzie się. Czasami chcesz uniknąć przypadkowego dziedziczenia. W takim wypadku, odziedzicz po Class::WhiteHole. Każde wywołanie nieistniejącej metody spowoduje zwyczajną informację o błędzie perla. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} #%%{__make} test %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_vendorlib}/%{pdir}/*.pm %{_mandir}/man3/*