]> git.pld-linux.org Git - packages/perl-Devel-Size.git/commitdiff
new spec
authorMaciej Pijanka <agaran@pld-linux.org>
Sun, 11 Apr 2004 10:39:36 +0000 (10:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Devel-Size.spec -> 1.1

perl-Devel-Size.spec [new file with mode: 0644]

diff --git a/perl-Devel-Size.spec b/perl-Devel-Size.spec
new file mode 100644 (file)
index 0000000..4b1f7e5
--- /dev/null
@@ -0,0 +1,51 @@
+
+# Conditional build:
+%bcond_without tests   # do perform "make test"
+
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Devel
+%define        pnam    Size
+Summary:       Devel::Size - Perl extension for finding the memory usage of Perl variables
+Name:          perl-Devel-Size
+Version:       0.58
+Release:       1
+# same as perl
+License:       GPL/Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 3043357cff650863b00cb54e511e38f0
+BuildRequires: perl-devel >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:make test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{perl_vendorarch}/Devel/Size.pm
+%{perl_vendorarch}/auto/Devel/Size/Size.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Devel/Size/Size.so
+%{_mandir}/man3/*
This page took 0.129824 seconds and 4 git commands to generate.