]>
Commit | Line | Data |
---|---|---|
e212e5bb | 1 | # |
0ce7090d | 2 | # Conditional build: |
e212e5bb | 3 | %bcond_without tests # do not perform "make test" |
0ce7090d | 4 | # |
0ce7090d ER |
5 | %define pdir debug |
6 | Summary: Perl pragma for debugging and logging of debug lines | |
f5d9c131 | 7 | Summary(pl.UTF-8): Pakiet Perla do śledzenia i logowania linii diagnostycznych |
0ce7090d | 8 | Name: perl-debug |
7ad49e65 | 9 | Version: 0.04 |
10 | Release: 1 | |
0ce7090d ER |
11 | # same as perl |
12 | License: Artistic | |
13 | Group: Development/Languages/Perl | |
05bb0f91 | 14 | Source0: http://search.cpan.org/CPAN/authors/id/S/ST/STEVAN/debug-%{version}.tar.gz |
7ad49e65 | 15 | # Source0-md5: b68f551c947039ee6e7f578ba72d8beb |
e212e5bb | 16 | URL: http://search.cpan.org/dist/debug/ |
0ce7090d ER |
17 | %if %{with tests} |
18 | BuildRequires: perl-Test-Pod >= 1.14 | |
19 | BuildRequires: perl-Test-Pod-Coverage >= 1.04 | |
20 | %endif | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | The debug pragma provides a very simple way of turning on and off your | |
26 | debugging lines, as well as a very flexible way of logging those lines | |
27 | to literally anywhere you want. | |
28 | ||
a7d5b5e4 JR |
29 | %description -l pl.UTF-8 |
30 | Pakiet debug udostępnia bardzo prosty sposób włączania i wyłączania | |
31 | linii diagnostycznych, a także bardzo elastyczny sposób logowania tych | |
32 | linii dosłownie wszędzie, gdzie chcemy. | |
e212e5bb | 33 | |
0ce7090d ER |
34 | %prep |
35 | %setup -q -n %{pdir}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | ||
41 | %{__make} | |
42 | %{?with_tests:%{__make} test} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} pure_install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc Changes README | |
56 | %{perl_vendorlib}/debug.pm | |
57 | %{_mandir}/man3/* |