]>
Commit | Line | Data |
---|---|---|
09025588 | 1 | # |
2 | # Conditional build: | |
7836888c | 3 | %bcond_without tests # do not perform "make test" |
41498648 | 4 | # |
23458b40 | 5 | %include /usr/lib/rpm/macros.perl |
9c508d68 | 6 | %define pdir Devel |
7 | %define pnam StackTrace | |
34c0f634 | 8 | Summary: Devel::StackTrace - stack trace and stack trace frame objects |
7be672c2 | 9 | Summary(pl.UTF-8): Devel::StackTrace - śledzenie stosu i ramek obiektów |
849f2751 | 10 | Name: perl-Devel-StackTrace |
0924d9d2 | 11 | Version: 1.13 |
93f705d1 | 12 | Release: 1 |
7836888c | 13 | # same as perl |
569cd649 | 14 | License: GPL v1+ or Artistic |
23458b40 | 15 | Group: Development/Languages/Perl |
72cc565e | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
0924d9d2 ER |
17 | # Source0-md5: 35d85c3f2c91c1de389b13436659551a |
18 | URL: http://search.cpan.org/dist/Devel-StackTrace/ | |
7836888c JB |
19 | BuildRequires: perl-Module-Build |
20 | %{?with_tests:BuildRequires: perl-Test-Simple >= 0.46} | |
21 | BuildRequires: perl-devel >= 1:5.8.0 | |
f6d5cedd | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
23458b40 | 23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | The Devel::StackTrace module contains two classes, Devel::StackTrace | |
0924d9d2 ER |
28 | and Devel::StackTraceFrame. The goal of this object is to encapsulate |
29 | the information that can found through using the caller() function, as | |
30 | well as providing a simple interface to this data. | |
23458b40 | 31 | |
db78a4f7 JR |
32 | %description -l pl.UTF-8 |
33 | Moduł Devel::StackTrace zawiera dwie klasy: Devel::StackTrace i | |
0924d9d2 | 34 | Devel::StackTraceFrame. Zadaniem tego obiektu jest obudowanie |
db78a4f7 JR |
35 | znalezionej przy użyciu funkcji caller() informacji, oraz |
36 | udostępnienie prostego interfejsu do tych danych. | |
23458b40 | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
7836888c JB |
42 | %{__perl} Build.PL \ |
43 | installdirs=vendor | |
44 | ./Build | |
09025588 | 45 | |
7836888c | 46 | %{?with_tests:./Build test} |
23458b40 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
7836888c JB |
51 | ./Build install \ |
52 | destdir=$RPM_BUILD_ROOT | |
23458b40 | 53 | |
23458b40 | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc LICENSE Changes README | |
7836888c | 60 | %{perl_vendorlib}/Devel/StackTrace.pm |
23458b40 | 61 | %{_mandir}/man3/* |