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