File perl-Class-OOorNO.spec of Package perl-Class-OOorNO

# vim: set sw=4 ts=4 et nu:

Name:           perl-Class-OOorNO
Version:        0.011
Release:        0
Summary:        Give your module classic and OO interfaces
Group:          Development/Libraries/Perl
License:        Perl License
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
BuildRequires:  perl-macros
BuildRequires:  perl(ExtUtils::MakeMaker)
%if 0%{?suse_version} >= 1120
BuildArch:      noarch

Class::OOorNO helps your module handle the input for its subroutines whether
called in object-oriented style (as object methods or class methods with the
arrow syntax ->), or in functional programming style (as subroutines imported
to the caller's namespace via Exporter).

The bulk of this module comprises a lightweight, pure-Perl emulation of the
Devel::Caller library's called_as_method() routine which is written in C.

Devel::Caller dives deep into the internals of of the Perl interpreter (see
perlguts) to trace stack frames and can get the input for any call in the
stack. It's really handy for Devel::opment and debugging.

This module is much more lightweight and focuses more on your module's Class::
methods themselves.

%setup -q -n "Class-OOorNO-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%__sed -i 's/\r$//' *.pod

%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}


%__make test

%{?buildroot:%__rm -rf "%{buildroot}"}

%doc README Changes
%dir %{perl_vendorlib}/Class
%doc %{perl_vendorlib}/Class/OOorNO.pod
%doc %{perl_man3dir}/Class::OOorNO.%{perl_man3ext}%{ext_man}

openSUSE Build Service is sponsored by