diff --git a/perl-Class-MethodMaker.changes b/perl-Class-MethodMaker.changes index 4e582a4..85443e2 100644 --- a/perl-Class-MethodMaker.changes +++ b/perl-Class-MethodMaker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 15:04:20 CEST 2008 - ug@suse.de + +- fixed a warning + ------------------------------------------------------------------- Fri Apr 4 11:13:04 CEST 2008 - ug@suse.de diff --git a/perl-Class-MethodMaker.spec b/perl-Class-MethodMaker.spec index daa2838..e6d9cfc 100644 --- a/perl-Class-MethodMaker.spec +++ b/perl-Class-MethodMaker.spec @@ -19,9 +19,10 @@ Requires: perl = %{perl_version} AutoReqProv: on Summary: Class::MethodMaker Version: 2.11 -Release: 1 +Release: 13 Source: Class-MethodMaker-%{version}.tar.gz Patch: Class-MethodMaker-Makefile.PL.diff +Patch1: suppress_warning.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -37,6 +38,7 @@ Authors: %prep %setup -n Class-MethodMaker-%{version} %patch +%patch1 %build ./configure @@ -71,6 +73,8 @@ make DESTDIR=$RPM_BUILD_ROOT \ /var/adm/perl-modules/%{name} %changelog +* Wed Jun 11 2008 ug@suse.de +- fixed a warning * Fri Apr 04 2008 ug@suse.de - update to version 2.11 - Drop Module::Build support diff --git a/suppress_warning.diff b/suppress_warning.diff new file mode 100644 index 0000000..ef87acc --- /dev/null +++ b/suppress_warning.diff @@ -0,0 +1,11 @@ +--- lib/Class/MethodMaker/Engine.pm ++++ lib/Class/MethodMaker/Engine.pm 2008/06/11 12:03:16 +@@ -778,6 +778,8 @@ + *{$methname} = $code; + # Generate a unique stash name for the sub. Use a preceding space + # to avoid collisions with anything in the Perl space. ++ # Turn off warnings about 'Name " Foo::Bar" used only once'. ++ no warnings "once"; + Class::MethodMaker::set_sub_name($code, $target, $name, " ${target}::${name}"); + } + } else {