From 814182a7fa59961d9ab22c6929bcec8034f5cfc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 25 Nov 2014 11:12:05 +0200 Subject: [PATCH] use generic url --- perl-Class-BlackHole.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/perl-Class-BlackHole.spec b/perl-Class-BlackHole.spec index fcb4a12..09d9416 100644 --- a/perl-Class-BlackHole.spec +++ b/perl-Class-BlackHole.spec @@ -1,10 +1,10 @@ # # 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 @@ -15,15 +15,16 @@ License: GPL v1+ or Artistic 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 -- 2.44.0