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