%define module Devel-Size %define name perl-%{module} %define version 0.71 %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 * Sun Aug 31 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.71-1mdv2009.0 + Revision: 277948 - update to new version 0.71 * Thu Jul 31 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.69-4mdv2009.0 + Revision: 256659 - rebuild * Mon Jan 14 2008 Pixel <pixel@mandriva.com> 0.69-2mdv2008.1 + Revision: 151431 - rebuild for perl-5.10.0 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Wed Aug 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.69-1mdv2008.0 + Revision: 63954 - update to new version 0.69 * Sun Jul 01 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.68-1mdv2008.0 + Revision: 46621 - update to new version 0.68 * 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 * Sun Jul 03 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.63-1mdk - 0.63 * Wed Jun 29 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.62-1mdk - Initial Mandriva release.