%define module Devel-Size %define name perl-%{module} %define version 0.66 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} Summary: Find the memory usage of Perl variables License: GPL or Artistic Group: Development/Perl Source0: %{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: perl-devel %description This module figures out the real sizes of Perl variables in bytes. Call functions with a reference to the variable you want the size of. If the variable is a plain scalar it returns the size of the scalar. If the variable is a hash or an array, use a reference when calling. %prep %setup -q -n %{module}-%{version} %build %__perl Makefile.PL INSTALLDIRS=vendor %__make %check %__make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES SIGNATURE %{perl_vendorarch}/Devel/* %{perl_vendorarch}/auto/Devel/* %{_mandir}/*/* %changelog * Sat Mar 03 2007 Olivier Thauvin <nanardon@mandriva.org> 0.66-1mdv2007.0 + Revision: 131642 - 0.66 + Guillaume Rousse <guillomovitch@mandriva.org> - Import perl-Devel-Size * Wed Jan 11 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.64-1mdk - 0.64 * Sat Jul 02 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.63-1mdk - 0.63 * Tue Jun 28 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.62-1mdk - Initial Mandriva release.