3 %bcond_without tests # do perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Devel::Size - Perl extension for finding the memory usage of Perl variables
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 3043357cff650863b00cb54e511e38f0
17 BuildRequires: perl-devel >= 5.6
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This module figures out the real sizes of Perl variables in bytes.
23 Call functions with a reference to the variable you want the size
24 of. If the variable is a plain scalar it returns the size of
25 the scalar. If the variable is a hash or an array, use a reference
29 %setup -q -n %{pdir}-%{pnam}-%{version}
32 %{__perl} Makefile.PL \
35 OPTIMIZE="%{rpmcflags}"
37 %{?with_tests:make test}
40 rm -rf $RPM_BUILD_ROOT
42 DESTDIR=$RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %{perl_vendorarch}/Devel/Size.pm
50 %{perl_vendorarch}/auto/Devel/Size/Size.bs
51 %attr(755,root,root) %{perl_vendorarch}/auto/Devel/Size/Size.so