]> git.pld-linux.org Git - packages/perl-Test-Memory-Cycle.git/blob - perl-Test-Memory-Cycle.spec
- updated to 1.06
[packages/perl-Test-Memory-Cycle.git] / perl-Test-Memory-Cycle.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Test
7 %define pnam    Memory-Cycle
8 Summary:        Test::Memory::Cycle - Check for memory leaks and circular memory references
9 Summary(pl.UTF-8):      Test::Memory::Cycle - kontrola wycieków pamięci i zapętlonych odniesień
10 Name:           perl-Test-Memory-Cycle
11 Version:        1.06
12 Release:        1
13 License:        Artistic v2.0
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Test/Test-Memory-Cycle-%{version}.tar.gz
16 # Source0-md5:  397e709ba33d3883b5fb2bc49e3a70b0
17 URL:            http://search.cpan.org/dist/Test-Memory-Cycle/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Devel-Cycle >= 1.07
22 BuildRequires:  perl-PadWalker
23 BuildRequires:  perl-Test-Builder-Tester
24 BuildRequires:  perl-Test-Pod >= 1.14
25 BuildRequires:  perl-Test-Pod-Coverage >= 1.04
26 BuildRequires:  perl-Test-Simple >= 0.62
27 %endif
28 Requires:       perl-Devel-Cycle >= 1.07
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 This module checks for memory leaks and circular memory references.
34
35 %description -l pl.UTF-8
36 Ten moduł sprawdza występowanie wycieków pamięci i zapętlonych
37 odniesień.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Changes README.md
61 %dir %{perl_vendorlib}/Test/Memory
62 %{perl_vendorlib}/Test/Memory/Cycle.pm
63 %{_mandir}/man3/Test::Memory::Cycle.3pm*
This page took 0.179381 seconds and 3 git commands to generate.