Sophie

Sophie

distrib > Mageia > 2 > x86_64 > by-pkgid > 031427576440852d7be210fa276e2957 > files > 2

perl-macro-0.60.0-1.mga2.src.rpm

%define upstream_name    macro
%define upstream_version 0.06

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 1

Summary:    Macro.pm compiler backend
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Filter::Util::Call)
BuildRequires: perl(PPI)
BuildRequires: perl(Test::Warn)
BuildArch: noarch

%description
The 'macro' pragma provides macros, a sort of inline functions, which is
like C pre-processor's macro.

The macros are very fast (about 200% faster than subroutines), but they
have some limitations that C pre-processor's macros have, e.g. they cannot
call 'return()' expectedly, although they seem anonymous subroutines.

Try 'PERL_MACRO_DEBUG=2' if you want to know how this module works.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*




%changelog

* Sun Nov 06 2011 kharec <kharec> 0.60.0-1.mga2
+ Revision: 164245
- imported package perl-macro


* Sun Nov 06 2011 cpan2dist 0.06-1mga
- initial mageia release, generated with cpan2dist