]>
Commit | Line | Data |
---|---|---|
3b7f1ebc | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
37595e71 | 5 | %define pdir Devel |
6 | %define pnam Leak | |
8d4e1616 | 7 | Summary: Devel::Leak - utility for looking for Perl objects that are not reclaimed |
766ba171 | 8 | Summary(pl.UTF-8): Devel::Leak - narzędzie do wyszukiwania niezwolnionych obiektów Perla |
6ab1382e | 9 | Name: perl-Devel-Leak |
d9ae6bd0 | 10 | Version: 0.03 |
90f5d1cd | 11 | Release: 15 |
8d4e1616 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
6ab1382e | 14 | Group: Development/Languages/Perl |
da1e80ba | 15 | Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz |
d9ae6bd0 | 16 | # Source0-md5: 9ee2cf88bd1dbc6091e38ef4597b54bb |
da1e80ba | 17 | URL: http://search.cpan.org/dist/Devel-Leak/ |
41a8b7c0 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
da1e80ba | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
bfece565 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6ab1382e | 21 | |
22 | %description | |
8d4e1616 | 23 | Devel::Leak is a utility for looking for Perl objects that are not |
330d9599 | 24 | reclaimed. |
6ab1382e | 25 | |
d495666d JR |
26 | %description -l pl.UTF-8 |
27 | Devel::Leak jest narzędziem służącym do wyszukiwania niezwolnionych | |
28 | obiektów Perla. | |
6ab1382e | 29 | |
30 | %prep | |
e5d4412e | 31 | %setup -q -n %{pdir}-%{pnam}-%{version} |
6ab1382e | 32 | |
33 | %build | |
2b4ba138 | 34 | %{__perl} Makefile.PL \ |
300c8668 | 35 | INSTALLDIRS=vendor |
3b7f1ebc | 36 | %{__make} \ |
268c9e6c | 37 | CC="%{__cc}" \ |
3b7f1ebc | 38 | OPTIMIZE="%{rpmcflags}" |
39 | ||
40 | %{?with_tests:%{__make} test} | |
6ab1382e | 41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
6ab1382e | 44 | |
3b7f1ebc | 45 | %{__make} install \ |
46 | DESTDIR=$RPM_BUILD_ROOT | |
6ab1382e | 47 | |
6ab1382e | 48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
ac5b31e9 | 53 | %doc README |
2b4ba138 | 54 | %{perl_vendorarch}/Devel/Leak.pm |
55 | %dir %{perl_vendorarch}/auto/Devel/Leak | |
2b4ba138 | 56 | %attr(755,root,root) %{perl_vendorarch}/auto/Devel/Leak/Leak.so |
21d77528 | 57 | %{_mandir}/man3/Devel::Leak.3pm* |