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