]>
Commit | Line | Data |
---|---|---|
a254752e | 1 | # |
6eeffd80 MP |
2 | # Conditional build: |
3 | %bcond_without tests # do perform "make test" | |
a254752e | 4 | # |
a79ad1f1 | 5 | %define pdir Devel |
6 | %define pnam Size | |
676d84a8 | 7 | Summary: Devel::Size - finding the memory usage of Perl variables |
98f380d9 | 8 | Summary(pl.UTF-8): Devel::Size - określanie zużycia pamięci przez zmienne Perla |
6eeffd80 | 9 | Name: perl-Devel-Size |
abf10886 | 10 | Version: 0.82 |
f2789ccd | 11 | Release: 3 |
8492d92a MP |
12 | # same as perl itself (as stated in COPYRIGHT section of pod) |
13 | License: GPL v1+ or Artistic | |
6eeffd80 | 14 | Group: Development/Languages/Perl |
5ba56454 | 15 | Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz |
abf10886 | 16 | # Source0-md5: 4d13a65774d06ff116c374d9a851a8b9 |
5ba56454 | 17 | URL: http://search.cpan.org/dist/Devel-Size/ |
a254752e | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
6eeffd80 MP |
19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | This module figures out the real sizes of Perl variables in bytes. | |
24 | Call functions with a reference to the variable you want the size | |
25 | of. If the variable is a plain scalar it returns the size of | |
26 | the scalar. If the variable is a hash or an array, use a reference | |
27 | when calling. | |
28 | ||
c4bcc59d JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł oblicza prawdziwe rozmiary zmiennych perlowych w bajtach. | |
31 | Wystarczy wywołać funkcję z referencją do zmiennej, której rozmiar | |
32 | chce się poznać. Jeśli zmienna jest skalarem, zwraca rozmiar skalara. | |
33 | Jeśli zmienna jest haszem lub tablicą, należy użyć referencji przy | |
34 | wywołaniu. | |
a254752e | 35 | |
6eeffd80 MP |
36 | %prep |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
fd789f08 | 42 | %{__make} \ |
b3674dc3 | 43 | CC="%{__cc}" \ |
fd789f08 | 44 | OPTIMIZE="%{rpmcflags}" |
6eeffd80 | 45 | |
a254752e | 46 | %{?with_tests:%{__make} test} |
6eeffd80 MP |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
a254752e JB |
50 | |
51 | %{__make} install \ | |
fd789f08 | 52 | DESTDIR=$RPM_BUILD_ROOT |
6eeffd80 MP |
53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
7d8ac60f | 59 | %doc CHANGES |
6eeffd80 | 60 | %{perl_vendorarch}/Devel/Size.pm |
a254752e | 61 | %dir %{perl_vendorarch}/auto/Devel/Size |
6eeffd80 | 62 | %attr(755,root,root) %{perl_vendorarch}/auto/Devel/Size/Size.so |
5b4cb382 | 63 | %{_mandir}/man3/Devel::Size.3pm* |