- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Devel-StackTrace-AsHTML.git] / perl-Devel-StackTrace-AsHTML.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4
5 %define         pdir    Devel
6 %define         pnam    StackTrace-AsHTML
7 Summary:        Devel::StackTrace::AsHTML - Displays stack trace in HTML
8 Name:           perl-Devel-StackTrace-AsHTML
9 Version:        0.15
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  4ec8bd92e4a765a7cabf402db9640412
16 URL:            http://search.cpan.org/dist/Devel-StackTrace-AsHTML/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-Devel-StackTrace
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Devel::StackTrace::AsHTML adds as_html method to Devel::StackTrace
27 which displays the stack trace in beautiful HTML, with code snippet
28 context and function parameters. If you call it on an instance of
29 Devel::StackTrace::WithLexicals, you even get to see the lexical
30 variables of each stack frame.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
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}/Devel/StackTrace/*.pm
57 %{_mandir}/man3/*
58 %{_examplesdir}/%{name}-%{version}
This page took 0.084836 seconds and 4 git commands to generate.