forked from pool/perl-Class-MethodMaker
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Class-MethodMaker?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
fff95fb659
commit
34c8618d06
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
11
suppress_warning.diff
Normal file
11
suppress_warning.diff
Normal file
@@ -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 {
|
Reference in New Issue
Block a user