#
# Conditional build:
%bcond_without tests # do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
+
%define pdir Class
%define pnam BlackHole
+%include /usr/lib/rpm/macros.perl
Summary: Class::BlackHole - base class to treat unhandled method calls as no-ops
Summary(pl.UTF-8): Class::BlackHole - bazowa klasa do ignorowania nie obsługiwanych metod
Name: perl-Class-BlackHole
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: a11985779f85aeece9f9f0df823c4dda
+URL: http://search.cpan.org/dist/Class-BlackHole/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Normally, if you try to call a method that there's no handler for,
-you get an error: Can't locate object method "flork" via package "X".
-But for classes that inherit from Class::BlackHole, unhandled methods
+Normally, if you try to call a method that there's no handler for, you
+get an error: Can't locate object method "flork" via package "X". But
+for classes that inherit from Class::BlackHole, unhandled methods
become just no-operations.
%description -l pl.UTF-8