]>
Commit | Line | Data |
---|---|---|
12ce6a57 AO |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do perform "make test" | |
da1f7fc2 | 4 | |
12ce6a57 AO |
5 | %define pdir Devel |
6 | %define pnam Mallinfo | |
da1f7fc2 | 7 | %include /usr/lib/rpm/macros.perl |
12ce6a57 AO |
8 | Summary: Devel::Mallinfo - mallinfo() memory statistics and more |
9 | Summary(pl.UTF-8): Devel::Mallinfo - statystyki pamięci mallinfo() | |
10 | Name: perl-%{pdir}-%{pnam} | |
3155fa3f AO |
11 | Version: 13 |
12 | Release: 1 | |
12ce6a57 AO |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
3155fa3f | 17 | # Source0-md5: f3122dd6941edff1c469d3777b49edb5 |
da1f7fc2 | 18 | URL: http://search.cpan.org/dist/Devel-Mallinfo/ |
12ce6a57 AO |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Devel::Mallinfo is an interface to the C library mallinfo function | |
25 | giving various totals for memory used by malloc. It's meant for | |
26 | development use, to give you an idea how much memory your program and | |
27 | libraries are using. Interfaces to some GNU C Library specific malloc | |
28 | information are provided too, when available. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Devel::Mallinfo jest interfejsem do funkcji mallinfo w bibliotece C, | |
da1f7fc2 ER |
32 | służącej do tworzenia statystyk zajętości pamięci alokowane przez |
33 | malloc. Przeznaczony jest dla programistów, do zobrazowania ile | |
12ce6a57 | 34 | pamięci zajmuje program i biblioteki. Dostarczany jest również |
da1f7fc2 ER |
35 | interfejs do różnych informacji o zajętości pamięci specyficznych dla |
36 | biblioteki GNU C. | |
12ce6a57 AO |
37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} \ | |
45 | CC="%{__cc}" \ | |
46 | OPTIMIZE="%{rpmcflags}" | |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} pure_install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc README | |
65 | %{perl_vendorarch}/%{pdir}/%{pnam}.pm | |
66 | %dir %{perl_vendorarch}/auto/%{pdir}/%{pnam} | |
12ce6a57 AO |
67 | %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/%{pnam}/%{pnam}.so |
68 | %{_mandir}/man3/* | |
69 | %dir %{_examplesdir}/%{name}-%{version}/ | |
70 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/* |