]> git.pld-linux.org Git - packages/perl-debug.git/blame - perl-debug.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-debug.git] / perl-debug.spec
CommitLineData
e212e5bb 1#
0ce7090d 2# Conditional build:
e212e5bb 3%bcond_without tests # do not perform "make test"
0ce7090d 4#
0ce7090d
ER
5%define pdir debug
6Summary: Perl pragma for debugging and logging of debug lines
f5d9c131 7Summary(pl.UTF-8): Pakiet Perla do śledzenia i logowania linii diagnostycznych
0ce7090d 8Name: perl-debug
7ad49e65 9Version: 0.04
10Release: 1
0ce7090d
ER
11# same as perl
12License: Artistic
13Group: Development/Languages/Perl
05bb0f91 14Source0: http://search.cpan.org/CPAN/authors/id/S/ST/STEVAN/debug-%{version}.tar.gz
7ad49e65 15# Source0-md5: b68f551c947039ee6e7f578ba72d8beb
e212e5bb 16URL: http://search.cpan.org/dist/debug/
0ce7090d
ER
17%if %{with tests}
18BuildRequires: perl-Test-Pod >= 1.14
19BuildRequires: perl-Test-Pod-Coverage >= 1.04
20%endif
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The debug pragma provides a very simple way of turning on and off your
26debugging lines, as well as a very flexible way of logging those lines
27to literally anywhere you want.
28
a7d5b5e4
JR
29%description -l pl.UTF-8
30Pakiet debug udostępnia bardzo prosty sposób włączania i wyłączania
31linii diagnostycznych, a także bardzo elastyczny sposób logowania tych
32linii 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
45rm -rf $RPM_BUILD_ROOT
46
47%{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
49
50%clean
51rm -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/*
This page took 0.085216 seconds and 4 git commands to generate.