]> git.pld-linux.org Git - packages/perl-Devel-Mallinfo.git/blame - perl-Devel-Mallinfo.spec
adapter url
[packages/perl-Devel-Mallinfo.git] / perl-Devel-Mallinfo.spec
CommitLineData
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
8Summary: Devel::Mallinfo - mallinfo() memory statistics and more
9Summary(pl.UTF-8): Devel::Mallinfo - statystyki pamięci mallinfo()
10Name: perl-%{pdir}-%{pnam}
3155fa3f
AO
11Version: 13
12Release: 1
12ce6a57
AO
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
3155fa3f 17# Source0-md5: f3122dd6941edff1c469d3777b49edb5
da1f7fc2 18URL: http://search.cpan.org/dist/Devel-Mallinfo/
12ce6a57
AO
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Devel::Mallinfo is an interface to the C library mallinfo function
25giving various totals for memory used by malloc. It's meant for
26development use, to give you an idea how much memory your program and
27libraries are using. Interfaces to some GNU C Library specific malloc
28information are provided too, when available.
29
30%description -l pl.UTF-8
31Devel::Mallinfo jest interfejsem do funkcji mallinfo w bibliotece C,
da1f7fc2
ER
32służącej do tworzenia statystyk zajętości pamięci alokowane przez
33malloc. Przeznaczony jest dla programistów, do zobrazowania ile
12ce6a57 34pamięci zajmuje program i biblioteki. Dostarczany jest również
da1f7fc2
ER
35interfejs do różnych informacji o zajętości pamięci specyficznych dla
36biblioteki 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
51rm -rf $RPM_BUILD_ROOT
52
53%{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
55
56install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58
59%clean
60rm -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}/*
This page took 0.214224 seconds and 4 git commands to generate.